Bug #5146
closedrudder-agent start shows an alert
Description
After installing rudder-agent on ubuntu, rudder-agent is started.
It tries to run cf-serverd and gives this error :
rudder-agent5202: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent5205: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent5206: [INFO] Launching CFEngine Community cf-serverd...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5343: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5482: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again...
rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar
rudder-agent5542: [ALERT] no PID file for cf-serverd after 70 seconds
rudder-agent5543: [INFO] Launching CFEngine Community cf-execd...
rudder-agent5566: [OK] CFEngine Community cf-execd started after 1 seconds
And cf-serverd is not started.
Updated by Matthieu CERDA over 10 years ago
- Target version changed from 2.11.0~beta2 to 2.11.0~rc1
Updated by Nicolas PERRON over 10 years ago
This is due to the initial promises containing:
[...] 77 # List here the IP masks that we grant access to on the server 78 79 policy_server:: 80 "acl" slist => { 81 '%%POLICY_SERVER_ALLOWED_NETWORKS%%' 82 }; [...]
This prevent cf-serverd to start since CFEngine 3.6.
Updated by Nicolas PERRON over 10 years ago
Nicolas PERRON wrote:
This is due to the initial promises containing:
[...]This prevent cf-serverd to start since CFEngine 3.6.
Hmmm... i'm not so sure about the reason. It could be due to the absence of /var/rudder/cfengine-community/policy_server.dat during the installation, too.
Updated by Nicolas PERRON over 10 years ago
Nicolas PERRON wrote:
Nicolas PERRON wrote:
This is due to the initial promises containing:
[...]This prevent cf-serverd to start since CFEngine 3.6.
Hmmm... i'm not so sure about the reason. It could be due to the absence of /var/rudder/cfengine-community/policy_server.dat during the installation, too.
That's it and only on CFEngine 3.6:
vagrant@node5:~> sudo ls -lh /var/rudder/cfengine-community/policy_server.dat -rw-r--r-- 1 root root 14 juil. 3 01:35 /var/rudder/cfengine-community/policy_server.dat vagrant@node5:~> sudo /etc/init.d/rudder-agent restart rudder-agent[6398]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[6401]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[6402]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[6406]: [OK] CFEngine Community cf-serverd stopped after 2 seconds rudder-agent[6407]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[6440]: [OK] CFEngine Community cf-execd stopped after 3 seconds rudder-agent[6441]: [INFO] Launching CFEngine Community cf-serverd... 2014-07-03T01:36:02-0700 notice: Server is starting... rudder-agent[6466]: [OK] CFEngine Community cf-serverd started after 1 seconds rudder-agent[6467]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[6500]: [OK] CFEngine Community cf-execd started after 1 seconds vagrant@node5:~> vagrant@node5:~> vagrant@node5:~> vagrant@node5:~> vagrant@node5:~> sudo rm /var/rudder/cfengine-community/policy_server.dat vagrant@node5:~> sudo /etc/init.d/rudder-agent restart rudder-agent[6532]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[6535]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[6536]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[6540]: [OK] CFEngine Community cf-serverd stopped after 2 seconds rudder-agent[6541]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[6574]: [OK] CFEngine Community cf-execd stopped after 3 seconds rudder-agent[6575]: [INFO] Launching CFEngine Community cf-serverd... 2014-07-03T01:36:21-0700 notice: Server is starting... rudder-agent[6600]: [OK] CFEngine Community cf-serverd started after 1 seconds rudder-agent[6601]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[6634]: [OK] CFEngine Community cf-execd started after 1 seconds vagrant@node5:~> vagrant@node5:~> sudo /var/rudder/cfengine-community/bin/cf-agent -V CFEngine Core 3.5.3
vagrant@node6:~> sudo ls -lh /var/rudder/cfengine-community/policy_server.dat -rw-r--r-- 1 root root 14 juil. 3 01:32 /var/rudder/cfengine-community/policy_server.dat vagrant@node6:~> sudo /etc/init.d/rudder-agent restart rudder-agent[8975]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[8978]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[8979]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[8980]: [INFO] can't read PID file, not stopping cf-serverd rudder-agent[8981]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[8982]: [INFO] can't read PID file, not stopping cf-execd rudder-agent[8983]: [INFO] Launching CFEngine Community cf-serverd... rudder-agent[9004]: [OK] CFEngine Community cf-serverd started after 1 seconds rudder-agent[9005]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[9027]: [OK] CFEngine Community cf-execd started after 1 seconds vagrant@node6:~> vagrant@node6:~> vagrant@node6:~> vagrant@node6:~> sudo rm /var/rudder/cfengine-community/policy_server.dat vagrant@node6:~> sudo /etc/init.d/rudder-agent restart rudder-agent[9060]: [INFO] Using /etc/default/rudder-agent for configuration rudder-agent[9063]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir rudder-agent[9064]: [INFO] Halting CFEngine Community cf-serverd... rudder-agent[9068]: [OK] CFEngine Community cf-serverd stopped after 2 seconds rudder-agent[9069]: [INFO] Halting CFEngine Community cf-execd... rudder-agent[9074]: [OK] CFEngine Community cf-execd stopped after 2 seconds rudder-agent[9075]: [INFO] Launching CFEngine Community cf-serverd... rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar rudder-agent[9211]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again... rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar rudder-agent[9350]: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again... rlist.c:80: Programming Error: Rlist value contains type f instead of expected scalar rudder-agent[9409]: [ALERT] no PID file for cf-serverd after 70 seconds rudder-agent[9410]: [INFO] Launching CFEngine Community cf-execd... rudder-agent[9432]: [OK] CFEngine Community cf-execd started after 1 seconds vagrant@node6:~> vagrant@node6:~> sudo /var/rudder/cfengine-community/bin/cf-agent -V CFEngine Core 3.6.0
And in the postinst of rudder-agent package, it seems that rudder-agent is started.... even though policy_server.dat does not exist.
Updated by Nicolas PERRON over 10 years ago
- Status changed from New to Discussion
- Assignee set to Jonathan CLARKE
It seems to happens during a migration of rudder-agent, at the start of rudder-agent service or if manually launch cf-serverd or cf-agent.
What should we do ?
Add an abortclass if the file does not exist ?
Prevent rudder-agent service to restart at an upgrade if the file does not exist ?
What's your opinion, Jon ?
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc1 to 2.11.0~rc2
Updated by Nicolas PERRON over 10 years ago
- Project changed from Rudder to 24
- Status changed from Discussion to Pending technical review
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/442
PR URL added: https://github.com/Normation/rudder-techniques/pull/442
Jon, could you review it please ?
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0~rc2 to 2.11.0
Updated by Nicolas PERRON over 10 years ago
Jon, I've added a comment in the Pull Request. Maybe you didn't notice.
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.11.0 to 2.11.1
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.11.1 to 2.11.2
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.11.2 to 2.11.3
Updated by Nicolas PERRON over 10 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:2759ac8ba9b85d9e718cbb6d06e50ad0c5a45627.
Updated by Nicolas PERRON over 10 years ago
Applied in changeset commit:0d306bd9270ce3522c294780b8be90927ba561cc.
Updated by Vincent MEMBRÉ about 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.3, which was released on the 25/09/2014.
- Announcement
- Changelog
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Benoît PECCATTE almost 10 years ago
- Project changed from 24 to Rudder
- Category set to Techniques