Re: Re: an error occurred, returned 127
Xander Cage <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
ah, good point, this "find python and make sysmlink" is another thing which never worked in aix. i will take a look at it, and do a PR if i find out somehting. On Friday, July 9, 2021 at 8:09:00 PM UTC+2 [email protected] wrote: > We do not vendor aka provide a python interpreter. We do attempt to find > the "best one" and make a symlink to it for use in our package modules and > such. > > > https://github.com/cfengine/masterfiles/blob/0045adabe96b72a86555ea8c23139f3c284d680e/cfe_internal/update/update_policy.cf#L87 > > So you could use that path: $(sys.bindir)/cfengine-selected-python > typically that would be /var/cfengine/bin/cfengine-selected-python. > > -Craig > > On Friday, July 9, 2021 at 12:33:10 PM UTC-5 brontolinux wrote: > >> Doesn't CFEngine come with a python interpreter? Haven't the pc with me >> and can't check but if so, can't you use that one so that you are sure it's >> always there at a certain path? >> >> Ciao >> -- bronto >> >> >> On Fri, 9 Jul 2021, 16:29 Xander Cage, <[email protected]> wrote: >> >>> ok after setting module to false, this was shown... >>> >>> notice: Q: "...e_db_check ": python3: No such file or directory >>> >>> changed the python3 path in the script and error is gone, AIX >>> "speciality" like always, python3 was not in standard env and >>> of course cf-agent knows noting about this aix crap. >>> >>> On Friday, July 9, 2021 at 1:27:12 PM UTC+2 Xander Cage wrote: >>> >>>> the policy also returnes notkept...even if the command is running. >>>> strange >>>> >>>> >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug0179 >>>> >>>> Jul 9, 2021 @ 13:13:39.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> sag0167 >>>> >>>> Jul 9, 2021 @ 13:13:20.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug01155 >>>> >>>> Jul 9, 2021 @ 13:12:49.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug0167 >>>> >>>> Jul 9, 2021 @ 13:12:49.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug0111 >>>> >>>> Jul 9, 2021 @ 13:12:30.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug0176 >>>> >>>> Jul 9, 2021 @ 13:12:29.000 >>>> notkept >>>> >>>> call_to_cfe_db_check_handle_itsv_reporting_cfe_db_check_notkept >>>> >>>> kug01104 >>>> >>>> Jul 9, 2021 @ 13:12:26.000 >>>> >>>> >>>> On Friday, July 9, 2021 at 8:39:32 AM UTC+2 Xander Cage wrote: >>>> >>>>> 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/cbe034cd-dea8-4af5-b392-39feba4e6541n%40googlegroups.com >>> <https://groups.google.com/d/msgid/help-cfengine/cbe034cd-dea8-4af5-b392-39feba4e6541n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/7dfa3a44-0f39-4d79-a0e5-1823e376f12cn%40googlegroups.com.