On 10/03/2013 02:15 PM, Kaj Wiik wrote:
> Hi!
>
> I am trying to run puppetmaster in a vanilla ubuntu lxc container.
> Upon startup, I get the following error:
>
> /usr/lib/ruby/1.8/puppet/util/pidlock.rb:39:in `initialize':
> Permission denied - /var/lib/puppet/run/master.pid (Errno::EACCES)
>     from /usr/lib/ruby/1.8/puppet/util/pidlock.rb:39:in `open'
>     from /usr/lib/ruby/1.8/puppet/util/pidlock.rb:39:in `lock'
>     from /usr/lib/ruby/1.8/puppet/daemon.rb:47:in `create_pidfile'
>     from /usr/lib/ruby/1.8/puppet/util.rb:42:in `synchronize_on'
>     from /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
>     from /usr/lib/ruby/1.8/puppet/util.rb:42:in `synchronize_on'
>     from /usr/lib/ruby/1.8/puppet/daemon.rb:46:in `create_pidfile'
>     from /usr/lib/ruby/1.8/puppet/daemon.rb:22:in `daemonize'
>     from /usr/lib/ruby/1.8/puppet/application/master.rb:191:in `main'
>     from /usr/lib/ruby/1.8/puppet/application/master.rb:144:in `run_command'
>     from /usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
>     from /usr/lib/ruby/1.8/puppet/application.rb:413:in `hook'
>     from /usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
>     from /usr/lib/ruby/1.8/puppet/application.rb:404:in `exit_on_fail'
>     from /usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
>     from /usr/lib/ruby/1.8/puppet/util/command_line.rb:69:in `execute'
>     from /usr/bin/puppet:4
>
> Touching /var/lib/puppet/run/master.pid works as root. Starting
> puppetmaster in a 'real' ubuntu (same version) works without problem
> so this must be lxc-related...? Am I missing some service in the
> minimal ubuntu server installation?
>

It's not running as root:

puppet    12914  1.3  0.0 185140 102864 ?       S    13:25   0:47
master                                                                          
                                                                

puppet    12924  1.3  0.0 188136 106340 ?       S    13:25   0:46
master                                                                          
                                                                

puppet    12935  1.2  0.0 184752 102648 ?       S    13:25   0:40 master

BTW, it works fine for me at various places.

Cheers,
tamas

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to