[Lxc-users] Puppetmaster (server) in container

Kaj Wiik kaj.wiik at iki.fi
Thu Oct 3 12:15:18 UTC 2013


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?

Thanks,
Kaj




More information about the lxc-users mailing list