Puppet daemon not running

284 views
Skip to first unread message

Balasubramaniam Natarajan

unread,
Apr 25, 2016, 9:33:53 AM4/25/16
to puppet-users group
I have installed stock puppet (3.7.2) on Debian 8 and my puppet is refusing to run as a service when I try to invoke it.  I can see that puppet.service start operation is timing out on a cronjob which restarts my puppet every day at a fixed time.  Some amount of searching got me to [1] however the solution on that did not help me either.

[1]

root@myServer:~# dpkg -l | grep puppet
ii  puppet                         3.7.2-4                     all          configuration management system, agent
ii  puppet-common                  3.7.2-4                     all          configuration management system
root@myServer:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.4 (jessie)
Release:        8.4
Codename:       jessie
root@myServer:~# /etc/init.d/puppet status
● puppet.service - Puppet agent
   Loaded: loaded (/lib/systemd/system/puppet.service; enabled)
   Active: failed (Result: timeout) since Mon 2016-04-25 07:02:45 EDT; 3h 55min ago
  Process: 33758 ExecStart=/usr/bin/puppet agent $DAEMON_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 977 (code=exited, status=0/SUCCESS)

Apr 25 05:01:27 myServer puppet-agent[33771]: (/Stage[main]/process/File[/file/file1/data0818]/group) group changed 'root' to 'data'
Apr 25 05:01:27 myServer puppet-agent[33771]: (/Stage[main]/process/File[/file/file1/data0818]/mode) mode changed '0644' to '0640'
Apr 25 05:01:27 myServer puppet-agent[33771]: (/Stage[main]/process/File[/file/file1/data0811]/group) group changed 'root' to 'data'
Apr 25 05:01:27 myServer puppet-agent[33771]: (/Stage[main]/process/File[/file/file1/data0811]/mode) mode changed '0644' to '0640'
Apr 25 05:01:27 myServer puppet-agent[33771]: (/Stage[main]/Naigos/Exec[linux-headers-uname-r]/returns) executed successfully
Apr 25 05:02:32 myServer systemd[1]: puppet.service start operation timed out. Terminating.
Apr 25 05:02:32 myServer puppet-agent[33771]: Caught TERM; calling stop
Apr 25 05:02:32 myServer puppet-agent[33767]: Caught TERM; calling stop
Apr 25 05:02:45 myServer systemd[1]: Failed to start Puppet agent.
Apr 25 05:02:45 myServer systemd[1]: Unit puppet.service entered failed state.
root@myServer:~# ps aux | grep puppet
root     16276  0.0  0.0  12728  2208 pts/2    S+   09:07   0:00 grep puppet
root@myServer:~# /etc/init.d/puppet start
[....] Starting puppet (via systemctl): puppet.serviceJob for puppet.service failed. See 'systemctl status puppet.service' and 'journalctl -xn' for details.
 failed!
root@myServer:~# ps aux | grep puppet
root     17331  0.0  0.0  12728  2208 pts/2    S+   09:13   0:00 grep puppet
root@myServer:~# ls -ltrhd /run/puppet
drwxr-xr-x 2 puppet puppet 40 Apr  8 05:01 /run/puppet
root@myServer:~# ls -ltrhd /var/run/puppet/
drwxr-xr-x 2 puppet puppet 4.0K Apr 25 09:28 /var/run/puppet/
root@myServer:~#

--

Balasubramaniam Natarajan

unread,
Apr 25, 2016, 11:29:15 AM4/25/16
to puppet-users group
I guess I figured out,  the "run" directory inside the /var should be a soft link to /run.  Then it works normally.
Reply all
Reply to author
Forward
0 new messages