Puppet master does not start

101 views
Skip to first unread message

josec...@gmail.com

unread,
Oct 28, 2013, 5:03:12 PM10/28/13
to puppet...@googlegroups.com
I've tried to start puppet master but I'm getting next error traces:

# /usr/sbin/puppetmasterd start --trace
/usr/lib/ruby/site_ruby/1.8/puppet/util/suidmanager.rb:132:in `convert_xid'
/usr/lib/ruby/site_ruby/1.8/puppet/util/suidmanager.rb:89:in `change_group'
/usr/lib/ruby/site_ruby/1.8/puppet/util/suidmanager.rb:80:in `change_privileges'
/usr/lib/ruby/site_ruby/1.8/puppet/util/suidmanager.rb:62:in `asuser'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:728:in `writesub'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:758:in `readwritelock'
/usr/lib/ruby/site_ruby/1.8/puppet/external/lock.rb:34:in `lock_exclusive'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:751:in `readwritelock'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:750:in `open'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:750:in `readwritelock'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:749:in `readwritelock'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:205:in `next_serial'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:273:in `sign'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:153:in `generate_ca_certificate'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:242:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:166:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:48:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:48:in `init_singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:98:in `cached_value'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in `singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:62:in `instance'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:154:in `setup_ssl'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:171:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:420:in `hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run'
/usr/sbin/puppetmasterd:4
Could not prepare for execution: Invalid group: 0

Ruby version is 1.8.7 and Puppet version is 3.3.1. Could someone give me any clue of what is happenning?

Thanks in advance,
regards

josec...@gmail.com

unread,
Oct 28, 2013, 6:31:38 PM10/28/13
to puppet...@googlegroups.com
I realize that I had installed 2.6 version of puppet instead 3.3.1. It has been solved, I update previous version to 3.3.1. I;m still having same problem with new version. I paste here all details:

puppet.conf

[main]
    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

    server=test.example.com

[master]
    certname=test.example.com


# id
uid=0(root) gid=0(root) groups=0(root),503(puppet)


# ls -l /etc/puppet/
total 24
-rw-r--r-- 1 root root 4133 Oct  7 18:03 auth.conf
-rw-r--r-- 1 root root 1462 Oct  7 18:00 fileserver.conf
drwxr-xr-x 2 root root 4096 Oct  7 18:03 manifests
drwxr-xr-x 2 root root 4096 Oct  7 18:03 modules
-rw-r--r-- 1 root root  453 Oct 28 22:27 puppet.conf


# ls -l /var/lib/puppet/
total 52
drwxr-x--- 2 puppet puppet 4096 Oct 28 19:03 bucket
drwxr-x--- 2 root   root   4096 Oct 28 19:30 clientbucket
drwxr-x--- 2 root   root   4096 Oct 28 19:30 client_data
drwxr-x--- 2 root   root   4096 Oct 28 19:30 client_yaml
drwxr-xr-x 2 root   root   4096 Oct 28 19:03 facts
drwxr-xr-x 2 root   root   4096 Oct 28 19:03 lib
drwxr-x--- 2 puppet puppet 4096 Oct 28 19:03 reports
drwxr-x--- 2 puppet puppet 4096 Oct 28 19:03 rrd
drwx------ 2 root   root   4096 Oct 28 19:12 run
drwxr-x--- 2 puppet puppet 4096 Oct 28 19:03 server_data
drwxrwx--x 8 puppet root   4096 Oct 28 19:03 ssl
drwxr-xr-t 3 root   root   4096 Oct 28 19:30 state
drwxr-x--- 2 puppet puppet 4096 Oct 28 19:03 yaml

# /etc/init.d/puppetmaster start
Starting puppetmaster:                                     [FAILED]


Message in /var/log/messages file:
Oct 28 22:29:27 rhel6-64 puppet-master[5855]: Could not prepare for execution: Invalid group: 0







Sean Crosby

unread,
Oct 28, 2013, 6:39:40 PM10/28/13
to puppet...@googlegroups.com
On 29 October 2013 09:31, <josec...@gmail.com> wrote:
> # id
> uid=0(root) gid=0(root) groups=0(root),503(puppet)


Why have you added the root user to the group puppet? puppetmaster
normally runs using the puppet user in the puppet group.

What groups is your 'puppet' user part of?

Here's mine:

# id puppet
uid=52(puppet) gid=52(puppet) groups=52(puppet)

Sean

josec...@gmail.com

unread,
Oct 29, 2013, 5:53:38 AM10/29/13
to puppet...@googlegroups.com
Hi Sean,

updating the info, yesterday I removed root from puppet group and that is what I have now:

# id
uid=0(root) gid=0(root) groups=0(root)

# id root
uid=0(root) gid=0(root) groups=0(root)

# id puppet
uid=501(puppet) gid=503(puppet) groups=503(puppet)

And I getting the same error:


# /etc/init.d/puppetmaster start
Starting puppetmaster:                                     [FAILED]

# tail -f /var/log/messages
Oct 29 09:52:38 rhel6-64 puppet-master[9210]: Could not prepare for execution: Invalid group: 0




josec...@gmail.com

unread,
Oct 31, 2013, 9:54:59 AM10/31/13
to puppet...@googlegroups.com
Somebody has any idea what is happening? Can I provide more information (logs, command, etc) where we can find what is the problem?

Thanks!!

Bhuvnesh Chaudhary

unread,
Jan 28, 2014, 11:21:33 PM1/28/14
to puppet...@googlegroups.com
Facing the same error, did anyone figure out the reason for the same ?
Reply all
Reply to author
Forward
0 new messages