Bug #7420
closedcf-execd is running twice after a reboot or after running rudder-agent twice
Description
cf-execd is running twice after a reboot or after running rudder-agent twice.
# ps wwwuax|grep cf- |grep -v grep root 2960 0.0 0.5 44028 5836 ? Ss 11:49 0:00 /var/rudder/cfengine-community/bin/cf-serverd root 3137 0.0 0.3 107860 3880 ? Ss 11:49 0:00 /var/rudder/cfengine-community/bin/cf-execd root 3504 0.0 0.3 107868 3880 ? Ss 11:49 0:00 /var/rudder/cfengine-community/bin/cf-execd
All I can do now is stop rudder-agent, kill the left cf-execd process and start rudder-agent again.
# /etc/init.d/rudder-agent stop rudder-agent[8821]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[8824]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[8825]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[8833]: [OK] CFEngine Community cf-serverd stopped after 2 seconds rudder-agent[8834]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[8913]: [OK] CFEngine Community cf-execd stopped after 2 seconds
# ps wwwuax|grep cf- |grep -v grep root 3137 0.0 0.3 107860 3880 ? Ss 11:49 0:00 /var/rudder/cfengine-community/bin/cf-execd # kill 3137
# /etc/init.d/rudder-agent start rudder-agent[10066]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[10069]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[10070]: [INFO] Launching CFEngine Community cf-serverd... rudder-agent[10245]: [OK] CFEngine Community cf-serverd started after 1 seconds rudder-agent[10246]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[10422]: [OK] CFEngine Community cf-execd started after 1 seconds
# ps wwwuax|grep cf- |grep -v grep root 10242 0.0 0.5 44032 5764 ? Ss 13:11 0:00 /var/rudder/cfengine-community/bin/cf-serverd root 10419 0.0 0.2 40276 2860 ? Ss 13:11 0:00 /var/rudder/cfengine-community/bin/cf-execd
And now everything is fine again, untill the next time, which is annoying.
Updated by Nicolas CHARLES about 9 years ago
Dennis,
Just to be sure: it happens if you run twice /etc/init.d/rudder-agent start ; or is it another condition ?
Which version of the agent are you using ?
Which OS and version of the OS are you using?
Thank you !
Updated by Dennis Cabooter about 9 years ago
Nicolas,
As far as I know it happens always after a reboot and it happens when I start rudder-agent twice. To be honest it doesn't make much sense to start rudder-agent twice, but sometimes it happens accidently.
I use rudder-agent 3.1.4 on Ubuntu Trusty 14.04.1 LTS.
Regards,
Dennis
Updated by Nicolas CHARLES about 9 years ago
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
Ok, so this is clearly a problem in the init script to detect if the agent is running or not
Benoit, could you have a look at that please ?
Updated by Jonathan CLARKE about 9 years ago
- Has duplicate Bug #7537: /etc/init.d/rudder-agent start starts cf-execd even if it is running, resulting in 2 cf-execd running, and big problems added
Updated by Nicolas CHARLES about 9 years ago
- Priority changed from 3 to 1 (highest)
Updated by Benoît PECCATTE about 9 years ago
- Target version changed from 3.1.5 to 2.11.17
Updated by Benoît PECCATTE about 9 years ago
- Status changed from New to In progress
Updated by Benoît PECCATTE about 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/826
Updated by Benoît PECCATTE about 9 years ago
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
Updated by Benoît PECCATTE about 9 years ago
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
Updated by Benoît PECCATTE about 9 years ago
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
Updated by Benoît PECCATTE about 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|1ce7d92b30cc27c8cc232a1dc8a4474bcdcc82c8.
Updated by Jonathan CLARKE about 9 years ago
Applied in changeset rudder-packages|4a7d16ddaea8ae58cc7aef347b06d9a7e83a01fa.
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending release to Released