Re: an error occurred, returned 127
Xander Cage <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
the module code:
https://github.com/flynn1973/snipsnaps/blob/main/cfe_db_check
On Friday, July 9, 2021 at 8:10:16 AM UTC+2 Xander Cage wrote:
>
> hi all,
>
> got the following in the outputs...
>
> root@aixtest01: /var/cfengine/outputs # cat
> cf_aixtest01__1625771019_Thu_Jul__8_21_03_39_2021_180
> error: Finished command related to promiser
> '/var/cfengine/modules/cfe_db_check' -- an error occurred, returned 127
> error: Method 'cfe_db_check' failed in some repairs
> error: Method 'b0021_cfengine_internal_db_check' failed in some repairs
> error: Method 'itsv_autorun' failed in some repairs
>
> when i run the module "per hand", it works.
>
> root@aixtest01: /var/cfengine/outputs #
> /var/cfengine/modules/cfe_db_check;echo $?
> +CFE_DB_OK
> 0
>
> also when running the bundle manually it works...
>
> root@aixtest01: /var/cfengine/outputs # /var/cfengine/bin/cf-agent -KI -b
> cfe_db_check --show-evaluated-classes=CFE.*
> info: Using command line specified bundlesequence
> info: Executing 'no timeout' ... '/var/cfengine/modules/cfe_db_check'
> info: Completed execution of '/var/cfengine/modules/cfe_db_check'
> R: CFE internal Databases are good.
> Class name Meta tags
> CFE_DB_OK
>
> any idea whats going on?
>
> policy:
>
> bundle agent cfe_db_check {
>
>
> commands:
>
> "$(sys.workdir)/modules/cfe_db_check"
> module => "true";
>
> reports:
>
> CFAGENT_HANGS::
>
> "Agent hangs: The Purge was initiated.";
>
> CFE_DB_ERRORS_FATAL::
>
> "Fatal: CFE internal Databases are bonkers,
> cfengine killed and cleanup procedures triggered.";
>
> CFE_DB_IN_DIFFICULTIES::
>
> "CFE internal Databases are in danger.";
>
> CFE_DB_OK::
>
> "CFE internal Databases are good.";
>
>
> }
>
>
> wbr
>
> chris
>
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/9f1b964e-34ee-4e75-ba7f-f099d806e64dn%40googlegroups.com.