Re: command/module promise laments about return code 1

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Xander Cage <[email protected]> writes:

> executing the python module directly in shell clearly returns zero...
>``` root@aixstp17t1: /var/cfengine/outputs #
>/var/cfengine/modules/cfe_db_check;echo $? +CFE_DB_OK 0 ``` including 1
>in kept_returncodes will silence this but i want to know the reason for
>this. cfengine version is 3.18.2 an idea whats wrong here...

I guess your `cfe_db_check' script runs `cf-check'? I suspicion that
whatever is happening might be related to running that while agents are
in motion vs running directly from the shell the agent is not in motion.

Care to share a gist or something with the source of your
`cfe_db_check'?

I recall, but don't immediately find reference to the specifics that
some of the `cf-check' functionality is automtic by the agent. Like if
there is a corrupt lmdb the agent will automatically attempt to export
and import the data and failing that just move it out of the way and let
it regenerate automatically.

-- 
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/87bkktq4ee.fsf%40northern.tech.



--
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
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/87bkktq4ee.fsf%40northern.tech.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.