I was getting this when starting puppetmasterd (puppet- server-0.25.5-1.el6.noarch RPM install): $ sudo /etc/init.d/puppetmaster start Starting puppetmaster: Could not run: Could not create PID file: /var/ lib/puppet/run/puppetmasterd.pid This change in the init script fixed the problem: #pidfile=/var/run/puppet/puppetmasterd.pid pidfile=/var/lib/puppet/run/puppetmasterd.pid Is that a bug worth reporting? Regards, Jim -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Russell Van Tassell
2011-Sep-07 18:38 UTC
Re: [Puppet Users] small problem with init script on RHEL6
I''ve seen a few conflicts between RPM and Source installations relating to path ... on an Ubuntu server, for example, the binaries landing in /usr/bin rather than /usr/sbin. Really gets frustrating when distro / repository maintainers move everything around "to suit their distro" -- it seems like it''s just asking for bugs creep in... Russell On Wed, Sep 7, 2011 at 11:32 AM, Jim N <jim.nachlin@gawker.com> wrote:> > I was getting this when starting puppetmasterd (puppet- > server-0.25.5-1.el6.noarch RPM install): > > $ sudo /etc/init.d/puppetmaster start > Starting puppetmaster: Could not run: Could not create PID file: /var/ > lib/puppet/run/puppetmasterd.pid > > > This change in the init script fixed the problem: > > #pidfile=/var/run/puppet/puppetmasterd.pid > pidfile=/var/lib/puppet/run/puppetmasterd.pid > > Is that a bug worth reporting? > > Regards, > Jim > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2011-Sep-07 20:01 UTC
Re: [Puppet Users] small problem with init script on RHEL6
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> This change in the init script fixed the problem: > > #pidfile=/var/run/puppet/puppetmasterd.pid > pidfile=/var/lib/puppet/run/puppetmasterd.pid > > Is that a bug worth reporting?I would, at least somebody can then decide if it''s really a bug or not. But as you are using 0.25.5 you better first check if it''s fixed in the latest version. I assume it to be fixed a long time ago... ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5nzZUACgkQbwltcAfKi38mowCfTaupFunS1SfblhIaWDFuXn2Z g6EAoIGoqqMzZovObtxk5joO/plFNL4C =CD/d -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2011-Sep-08 13:08 UTC
[Puppet Users] Re: small problem with init script on RHEL6
On Sep 7, 1:32 pm, Jim N <jim.nach...@gawker.com> wrote:> I was getting this when starting puppetmasterd (puppet- > server-0.25.5-1.el6.noarch RPM install): > > $ sudo /etc/init.d/puppetmaster start > Starting puppetmaster: Could not run: Could not create PID file: /var/ > lib/puppet/run/puppetmasterd.pid > > This change in the init script fixed the problem: > > #pidfile=/var/run/puppet/puppetmasterd.pid > pidfile=/var/lib/puppet/run/puppetmasterd.pid > > Is that a bug worth reporting?I won''t deny others'' affirmative responses, but I do observe that Puppet has used /var/run/puppet as its pidfile location for a very long time (since at least 0.19). Over here, that directory is owned by puppet:puppet, which allows puppetmasterd to write its PID file there. The few other services that manage their own PID files appear to do it the same way -- mysqld, for example. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2011-Sep-08 14:36 UTC
[Puppet Users] Re: small problem with init script on RHEL6
Note also that the Filesystem Hierarchy Standard directs that PID files should go under /var/run, and it explicitly permits programs to own subdirectories, as Puppet does. Thus Puppet''s standard configuration is FHS-compliant, but your variation is not. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Todd Zullinger
2011-Sep-08 22:35 UTC
Re: [Puppet Users] small problem with init script on RHEL6
Jim N wrote:> I was getting this when starting puppetmasterd (puppet- > server-0.25.5-1.el6.noarch RPM install): > > $ sudo /etc/init.d/puppetmaster start > Starting puppetmaster: Could not run: Could not create PID file: /var/ > lib/puppet/run/puppetmasterd.pid > > > This change in the init script fixed the problem: > > #pidfile=/var/run/puppet/puppetmasterd.pid > pidfile=/var/lib/puppet/run/puppetmasterd.pid > > Is that a bug worth reporting?I''m guessing you''ve changed puppet.conf such that it''s not using /var/run/puppet/puppetmasterd.pid. Can you run: rpm -V puppet puppet-server ? If any files are modified, check how they differ from the shipped files. We won''t be fixing any issues in puppet-0.25.5 in EPEL, as we''ve got 2.6.x in testing already. (In 2.6.x, the pid files have changed names, but the path is the same.) -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There is nothing government can give you that it hasn''t taken from you in the first place. -- Winston Churchill