dpkg configure error prevents installing rudder-agent due to cf-serverd error
While upgrading rudder-agent I sometimes see this:
rudder-agent: [INFO] Launching CFEngine Community cf-serverd... 2014-11-19T11:18:32+0100 error: listen failed. (listen: Bad file descriptor) rudder-agent: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again... 2014-11-19T11:19:02+0100 error: listen failed. (listen: Bad file descriptor) rudder-agent: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again... 2014-11-19T11:19:33+0100 error: listen failed. (listen: Bad file descriptor) rudder-agent: [ALERT] no PID file for cf-serverd after 70 seconds rudder-agent: [INFO] Launching CFEngine Community cf-execd... rudder-agent: [OK] CFEngine Community cf-execd started after 1 seconds dpkg: error processing package rudder-agent (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: rudder-agent E: Sub-process /usr/bin/dpkg returned an error code (1) W: Operation was interrupted before it could finish
I can imagine that it's not quitte clear what's going on. After manually killing all cf- processes and running apt-get -f install, the install finishes without problems.