Bug #2607
closedLaunching Cfengine Community cf-serverd... make an error
Description
Context :
- Debian VM in KVM
- installation with internal repository by a script making this actions :
* apt-get -y --force-yes install ntpdate
* ntpdate ntp.bedata.net
* apt-get -y --force-yes install rudder-agent
* echo cmdb.bedata.net > /var/rudder/cfengine-community/policy_server.dat
* /etc/init.d/rudder-agent start
This installation are working on my other nodes.
After this installation the rudder-agent doesn't work correctly, so if I make a "/etc/init.d/rudder-agent start" there are some errors like :
/etc/init.d/rudder-agent start rudder-agent[10797]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[10800]: [INFO] Using /var/rudder/cfengine-community for Cfengine workdir rudder-agent[10801]: [INFO] Launching Cfengine Community cf-serverd... Can't stat file "/var/rudder/cfengine-community/inputs/checkGenericFileContent/3.0/checkGenericFileContent.cf" for parsing !!! System error for stat: "No such file or directory"
I don't understand why, the host work without problem and my other new node don't have this problem. ncharles give me some directions :
- opt/rudder/sbin/cf-agent -KI -b update
Can't stat file "/var/rudder/cfengine-community/inputs/checkGenericFileContent/3.0/checkGenericFileContent.cf" for parsing !!! System error for stat: "No such file or directory" - check the content of /var/rudder/share/5bd89e6b-089d-4142-a895-df869396aa95 and in the subdirectories rules/cfengine-community & rules/cfengine-community/inputs (last one didn't exist)
- ls /var/rudder/share/5bd89e6b-089d-4142-a895-df869396aa95
rules
search the string chechG in rules/cfengine-community/promises.cf to try to find "checkGenericFileContent/3.0/" calls
After all of this I run this commands :
/opt/rudder/sbin/cf-agent -KI -f /var/rudder/cfengine-community/inputs/failsafe.cf
and the problem was solved
Files