Bug #5785
closeddpkg configure error prevents installing rudder-agent due to cf-serverd error
Description
While upgrading rudder-agent I sometimes see this:
rudder-agent[21002]: [INFO] Launching CFEngine Community cf-serverd... 2014-11-19T11:18:32+0100 error: listen failed. (listen: Bad file descriptor) rudder-agent[21233]: [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[21463]: [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[21615]: [ALERT] no PID file for cf-serverd after 70 seconds rudder-agent[21616]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[21728]: [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.
Updated by Matthieu CERDA about 10 years ago
- Category set to System integration
- Status changed from New to Discussion
- Assignee set to Dennis Cabooter
- Priority changed from N/A to 3
Hello Dennis !
Do you see this while upgrading on a Rudder node or a server ?
Updated by Jonathan CLARKE about 10 years ago
- Subject changed from Dpkg configure error to dpkg configure error prevents installing rudder-agent due to cf-serverd error
- Status changed from Discussion to 8
- Assignee changed from Dennis Cabooter to Matthieu CERDA
- Priority changed from 3 to 2
- Target version set to 2.10.8
I'm not sure why this is happening, but I'm quite sure that it shouldn't break package installation.
Let's start by adding a "|| true" to the end of the line that runs "service rudder-agent [re]start", and avoid this breaking package install. Rudder agent will relaunch cf-serverd if it's not running anyway.
Updated by Benoît PECCATTE about 10 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/550
Updated by Benoît PECCATTE about 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:rudder-packages|commit:b2d77e8733c45de5266dffc59b1095fd347e98ec.
Updated by Jonathan CLARKE about 10 years ago
Applied in changeset packages:rudder-packages|commit:6581d14fce709f496cb1b079af63f831bda6365f.
Updated by Vincent MEMBRÉ about 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.8 and 2.11.5, which were released today (16/12/14)
- Announcement 2.10 2.11
- Changelog 2.10 2.11
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/