[rudder-users] Agent execution hangs
Nicolas Charles
nicolas.charles at normation.com
Mon May 12 16:38:46 CEST 2014
Hi Olivier,
It's quite difficult to debug why it hangs there, without more details.
Most probable cause could be:
- a big copy over network; you are trying to copy a very large file that
takes a long time
- you are running a command that is long to execute
- you are running a deamon, or installing a package, that somehow starts
impromperly a daemon and it requests a terminal
- something bad with cf-agent is happening (like, you have a large
/var/rudder/cfengine-community/state/cf_lock.tcdb file (more than 100 MB).
Last case is easy to check, it your
/var/rudder/cfengine-community/state/cf_lock.tcdb is bigger than 100 MB,
you can simply remove it.
For all the other cases, could you run the agent in verbose mode, and
send the verbose output of where it hangs ? (there might be sensitive
data in there, that you may need to anonymize (hostname, password, etc))
Nicolas
On 12/05/2014 10:58, Olivier Desport wrote:
> Hi,
>
> One of my node agent execution hangs. So the Rudder configuration is
> never applies. It works on a tween server. I've removed the node on
> the server and I've added it again (it worked) but the confs are not
> applied on the client.
>
> /var/rudder/cfengine-community/bin/cf-agent -K
>
> 2014-05-12T10:54:38+0200 notice: R:
> @@Common@@log_info@@hasPolicyServer-root@@common-root@@189@@common@@StartRun@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Start execution
> 2014-05-12T10:54:38+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Update@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Rudder policy,
> tools and ncf instance are already up to date. No action required.
> 2014-05-12T10:54:38+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Security
> parameters@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#The internal
> environment security is acceptable
> 2014-05-12T10:54:38+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Red
> Button@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Red Button is
> not in effect, continuing as normal...
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Process
> checking@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#There is an
> acceptable number of CFEngine processes running on the machine
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@CRON
> Daemon@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#The CRON daemon
> is running
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Binaries
> update@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#The CFengine
> binaries in /var/rudder/cfengine-community/bin are up to date
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@log_info@@hasPolicyServer-root@@common-root@@189@@Log system
> for reports@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Detected running
> syslog as syslog-ng
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@log_info@@hasPolicyServer-root@@common-root@@189@@Log system
> for reports@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Detected running
> syslog as rsyslog
> 2014-05-12T10:54:39+0200 notice: R:
> @@Common@@result_success@@hasPolicyServer-root@@common-root@@189@@Log
> system for reports@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Logging system
> for report centralization is already correctly configured
> 2014-05-12T10:54:39+0200 notice: R:
> @@Inventory@@log_info@@inventory-all@@inventory-all@@188@@inventory@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#An inventory was
> already sent less than 8 hours ago
> 2014-05-12T10:54:39+0200 notice: R:
> @@Inventory@@result_success@@inventory-all@@inventory-all@@188@@inventory@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#Next inventory
> scheduled between 00:00 and 06:00
> 2014-05-12T10:54:39+0200 notice: R:
> @@cronConfiguration@@result_success@@308ad308-906d-4894-87b3-a5af5221e163@@b7763f07-5b9c-43d1-add3-bbb2e5124e69@@90@@Cron
> entry@@update-modstatd@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#The cron file
> update-modstatd was present. Skipping...
> 2014-05-12T10:54:39+0200 notice: R:
> @@cronConfiguration@@result_success@@308ad308-906d-4894-87b3-a5af5221e163@@b7763f07-5b9c-43d1-add3-bbb2e5124e69@@90@@Cron
> process@@None@@2014-05-12
> 10:54:38+02:00##0c458f7c-78e7-41cd-addc-378bf9e9d43c@#The cron process
> is running. Skipping...
>
> It hangs on this last line.
>
> Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140512/4963bf6d/attachment.html>
More information about the rudder-users
mailing list