Mantis - cfengine
Viewing Issue Advanced Details
5010 regular use minor always 2012-10-05 17:59 2012-11-16 15:13
jamest  
bonivart  
normal  
assigned  
open  
none    
none  
0005010: cfexecd tries to exec /var/cfengine/bin/cfagent
Clean install of CSWcfengine-2.2.10,REV=2009.11.11 from testing repo...

root@OCS-Server:~# /opt/csw/sbin/cfexecd -Fv
No schedule defined in cfagent.conf, defaulting to Min00_05
Checking integrity of the state database
Checking integrity of the module directory
Checking integrity of the input data for RPC
Checking integrity of the output data for RPC
Checking integrity of the PKI directory
Making sure that locks are private...
Looking for a source of entropy in /var/cfengine/state/cf_observations.db
cfexecd: Could not read sufficient randomness from /var/cfengine/state/cf_observations.db
---------------------------------------------------------------------
Starting server
---------------------------------------------------------------------

No schedule defined in cfagent.conf, defaulting to Min00_05
------------------------------------------------------------------

  LocalExec(not scheduled) at Fri Oct 5 10:51:06 2012

------------------------------------------------------------------
cfexecd: cfexecd: Couldn't run /var/cfengine/bin/cfagent
cfexecd: cfexecd: execv: Bad file number


I also tried CSWcfengine-2.2.10,REV=2012.06.07 from unstable with same results.
Issue History
2012-10-05 17:59 jamest New Issue
2012-10-15 10:13 bonivart Status new => assigned
2012-10-15 10:13 bonivart Assigned To => bonivart
2012-10-15 10:15 bonivart Note Added: 0010177
2012-10-15 10:53 bwalton Note Added: 0010178
2012-11-16 15:13 jamest Note Added: 0010221

Notes
(0010177)
bonivart   
2012-10-15 10:15   
Do you have a patch or at least a suggested solution? I don't use that package myself but if no one else is prepared to take it on I can respin it but I need some help to fix it.
(0010178)
bwalton   
2012-10-15 10:53   
This is the way cfengine has historically been configured. Short of patching paths in the source, it's likely best to just have /var/cfengine/bin/cfagent -> /opt/csw/sbin/cfagent as part of the package.

(This is my experience with cfengine2 for several years now.)
(0010221)
jamest   
2012-11-16 15:13   
I'll take a look at it next week to see what I can come up with for a patch.