Yves Ntonfo
2012-Jul-09 09:12 UTC
[Puppet Users] Problem when starting puppet master daemon
Hi, I''m new in using Puppet as the most people here :-) I just have a problem when i want to start the puppet master daemon. I got this : [root@FRPARSRNLINNTO ~]# service puppetmaster start Démarrage de puppetmaster :/usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:77:in `unlink'': Permission denied - /var/lib/puppet/run/master.pid (Errno::EACCES) from /usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:77:in `clear_if_stale'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:11:in `locked?'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:33:in `lock'' from /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:46:in `create_pidfile'' from /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:43:in `synchronize_on'' from /usr/lib/ruby/1.8/sync.rb:229:in `synchronize'' from /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:43:in `synchronize_on'' from /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:45:in `create_pidfile'' from /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:21:in `daemonize'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:193:in `main'' from /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:144:in `run_command'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in `exit_on_fail'' from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:309:in `run'' from /usr/sbin/puppetmasterd:4 [ OK ] Please someone could help me? Thanks a lot. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/GfCQpDgIB1kJ. 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
2012-Jul-09 13:05 UTC
[Puppet Users] Re: Problem when starting puppet master daemon
On Monday, July 9, 2012 4:12:18 AM UTC-5, Yves Ntonfo wrote:> > Hi, > > I''m new in using Puppet as the most people here :-) > > I just have a problem when i want to start the puppet master daemon. I got > this : > > [root@FRPARSRNLINNTO ~]# service puppetmaster start > Démarrage de puppetmaster > :/usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:77:in `unlink'': > Permission denied - /var/lib/puppet/run/master.pid (Errno::EACCES) >Like many system services, the puppetmaster service normally runs as an unprivileged user (often one named "puppet" belonging to group "puppet"). That user must have sufficient access to the filesystem to do its job. In this particular case, it does not have sufficient access to remove an old PID file, /var/lib/puppet/run/master.pid, or perhaps to even to read the directory. The puppetmaster needs read access to /var/lib/puppet and everything in it (including list / traverse access for directories). Additionally, it needs write access to /var/lib/puppet/run. Under normal circumstances, nothing should be written in /var/lib/puppet/run that the master cannot access, but even if something is, the master should still be able to unlink it if it has write access to the directory (and otherwise, not). So either make /var/lib/puppet/run owned by user puppet, with user rwx permission, or make it owned by root, group puppet, with group rwx permission. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/RnfpUiLhYXkJ. 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.
Yves Ntonfo
2012-Jul-09 13:38 UTC
[Puppet Users] Re: Problem when starting puppet master daemon
Thx John. The puppet master is now daemonize Le lundi 9 juillet 2012 15:05:59 UTC+2, jcbollinger a écrit :> > > > On Monday, July 9, 2012 4:12:18 AM UTC-5, Yves Ntonfo wrote: >> >> Hi, >> >> I''m new in using Puppet as the most people here :-) >> >> I just have a problem when i want to start the puppet master daemon. I >> got this : >> >> [root@FRPARSRNLINNTO ~]# service puppetmaster start >> Démarrage de puppetmaster >> :/usr/lib/ruby/site_ruby/1.8/puppet/util/pidlock.rb:77:in `unlink'': >> Permission denied - /var/lib/puppet/run/master.pid (Errno::EACCES) >> > > Like many system services, the puppetmaster service normally runs as an > unprivileged user (often one named "puppet" belonging to group "puppet"). > That user must have sufficient access to the filesystem to do its job. In > this particular case, it does not have sufficient access to remove an old > PID file, /var/lib/puppet/run/master.pid, or perhaps to even to read the > directory. > > The puppetmaster needs read access to /var/lib/puppet and everything in it > (including list / traverse access for directories). Additionally, it needs > write access to /var/lib/puppet/run. Under normal circumstances, nothing > should be written in /var/lib/puppet/run that the master cannot access, but > even if something is, the master should still be able to unlink it if it > has write access to the directory (and otherwise, not). > > So either make /var/lib/puppet/run owned by user puppet, with user rwx > permission, or make it owned by root, group puppet, with group rwx > permission. > > > John > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/jirlZZGEnvIJ. 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.