Hi all, I''ve just installed puppet in my ubuntu gutsy 7.10 linux using gem: # sudo gem install puppet Then, I made a basic site.pp manifest and following the InstallationGuide I ran: $ sudo puppetmasterd --mkusers Could not configure for running; got 1 failure(s) What error? I managed to get an error message on /var/log/daemon.log Jan 30 16:22:13 acero puppetmasterd[13800]: (/Settings[top]/Settings[filebucket]/File[/var/puppet/clientbucket]/ensure) change from absent to directory failed: Cannot create /var/puppet/clientbucket; parent directory /var/puppet does not exist I had to manually create that directory: $ sudo mkdir /var/puppet $ sudo puppetmasterd --mkusers /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util/pidlock.rb:33:in `initialize'': Permission denied - /var/puppet/run/puppetmasterd.pid (Errno::EACCES) from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util/pidlock.rb:33:in `open'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util/pidlock.rb:33:in `lock'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/daemon.rb:63:in `setpidfile'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util.rb:385:in `threadlock'' from /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util.rb:384:in `threadlock'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/daemon.rb:62:in `setpidfile'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/daemon.rb:20:in `daemonize'' from /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/bin/puppetmasterd:275 from /usr/bin/puppetmasterd:19:in `load'' from /usr/bin/puppetmasterd:19 $ ls -l /var/puppet/ total 0 drwxr-x--- 2 puppet puppet 48 2008-01-30 16:24 bucket drwxr-x--- 2 root root 48 2008-01-30 16:24 clientbucket drwxr-xr-x 2 root root 48 2008-01-30 16:24 lib drwxr-x--- 2 puppet puppet 80 2008-01-30 16:24 log drwxr-x--- 2 puppet puppet 48 2008-01-30 16:24 reports drwxr-xr-x 2 puppet puppet 48 2008-01-30 16:24 rrd drwxr-xr-x 2 root root 88 2008-01-30 16:30 run drwxr-xr-t 2 root root 48 2008-01-30 16:24 state drwxr-x--- 2 puppet puppet 48 2008-01-30 16:24 yaml $ sudo chown puppet:puppet /var/puppet/run $ sudo puppetmasterd And that''s all. So, in summary: * I had to manually create the /var/puppet directory, but puppet took care of all the other directories. Why not automatically create this one too? * I had to change owner of /var/puppet/run from root to puppet. This one was created by puppet itself, so I''m pretty sure it''s a bug. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
On Jan 31, 2008, at 6:01 AM, Diego Algorta Casamayou wrote:> And that''s all. So, in summary: > * I had to manually create the /var/puppet directory, but puppet took > care of all the other directories. Why not automatically create this > one too?There might be a release that doesn''t order these dir creations correctly, I can''t remember for some reason. This shouldn''t be happening, I agree, but please only file a bug if you''re running 0.24.1.> > * I had to change owner of /var/puppet/run from root to puppet. This > one was created by puppet itself, so I''m pretty sure it''s a bug.This is fixed already and will be released in 0.24.2. -- I have never met a man so ignorant that I couldn''t learn something from him. --Galileo Galilei --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Jan 30, 2008 9:09 PM, Luke Kanies <luke@madstop.com> wrote:> On Jan 31, 2008, at 6:01 AM, Diego Algorta Casamayou wrote: > > > And that''s all. So, in summary: > > * I had to manually create the /var/puppet directory, but puppet took > > care of all the other directories. Why not automatically create this > > one too? > > There might be a release that doesn''t order these dir creations > correctly, I can''t remember for some reason. > > This shouldn''t be happening, I agree, but please only file a bug if > you''re running 0.24.1.You can see in the paths of the trace I sent before that the gem version is 0.24.1. But I understand that I should have been more explicit about it. /usr/lib/ruby/gems/1.8/gems/puppet-0.24.1/lib/puppet/util/pidlock.rb So here it is in a more explicit way: diego@acero:~$ gem list puppet *** LOCAL GEMS *** puppet (0.24.1) diego@acero:~$ gem list facter *** LOCAL GEMS *** facter (1.3.8)> > > > > * I had to change owner of /var/puppet/run from root to puppet. This > > one was created by puppet itself, so I''m pretty sure it''s a bug. > > > This is fixed already and will be released in 0.24.2.Cool. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net