Project

General

Profile

Actions

Bug #2607

closed

Launching Cfengine Community cf-serverd... make an error

Added by Francois BAYART over 12 years ago. Updated about 12 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 :
  1. 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"
  2. 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)
  3. 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

patch (5.97 KB) patch Jonathan CLARKE, 2012-09-25 15:33
Actions

Also available in: Atom PDF