Re: command/module promise laments about return code 1

Xander Cage <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Hi Nick,

clairvoyant *g*...yes there is indeed a cf-check call...

gist -> https://gist.github.com/flynn1973/b50011df9cbf9b6a0cdb59838a145ad4



On Wednesday, March 15, 2023 at 7:02:37 PM UTC+1 [email protected] 
wrote:

> 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/304e883f-e3a6-41f9-9185-2c813a25fc68n%40googlegroups.com.
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.