I run /var/cfengine/bin/cf-agent -Kf failsafe.cf and get odd error messages

The error message says:

!! Your configuration promises no host_licenses_paid in common control

!! By doing this, you confirm that the terms of the contract are legally binding

!! Your configuration promises no host_licenses_paid in common control

!! By doing this, you confirm that the terms of the contract are legally binding

R: -> Updated local policy from policy server

R: !! Failed to start the server

R: !! Did not start the scheduler

 

You need to use an absolute path to failsafe, and with the new policy schema (as of CFEngine Enterprise 3.0) this file is located in a separate sub-folder: /var/cfengine/inputs/failsafe/failsafe.cf. This is the primary failsafe file that is used under normal operation. The file located in the inputs directory (/var/cfengine/inputs/failsafe.cf) is the secondary failsafe; it is a backup solution for when the user modifies the primary failsafe and breaks it's functionality in the process.

 

NOTE: Do not edit the /var/cfengine/inputs/failsafe.cf file, this is a CFEngine fall-back solution and should never be touched!

 

The first four lines in the error message are caused by cf-promises and cf-agent each running the secondary failsafe-file (where no license information is found). The three “R: “ prefixed lines show that policy was updated (as expected) and that cf-serverd and cf-execd were not started. The last two entries appear because cf-serverd and cf-execd are already running. Do not worry about either of these messages, they are benign and serve an informational purpose only.

 

You should not see any error message when you run the primary failsafe:

3.0.0   /var/cfengine/bin/cf-agent -Kf /var/cfengine/inputs/failsafe/failsafe.cf
3.0.0++ /var/cfengine/bin/cf-agent -Kf /var/cfengine/inputs/update.cf
Have more questions? Submit a request

Comments

Powered by Zendesk