--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/93e0e0e8-2b10-48ea-82c3-40fa8ec86d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e2741ca6-5d04-4949-b214-4b11775c4d37%40googlegroups.com.
2016-08-03 17:12:31,742 ERROR [async-dispatch-2] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: Missing authorization service configuration.
That indicates that /etc/puppetlabs/puppetserver/conf.d/auth.conf (https://docs.puppet.com/puppetserver/2.4/config_file_auth.html) is empty or doesn't exist. The file that is laid down by default by our packages is here: https://github.com/puppetlabs/puppetserver/blob/master/ezbake/config/conf.d/auth.conf. If you drop that file into /etc/puppetlabs/puppetserver/conf.d/auth.conf the service should start successfully. If not, attach the new log and I'd be happy to help debug further.
Hope that helps,
-Matthaus
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/695e4bc4-cc4f-4c96-98ef-5fa06705a53a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/524f9812-0df8-43d0-8fa7-773cd28e4e42%40googlegroups.com.
path /puppet/v3/environments
method find
allow *
...
authorization: {
version: 1
rules: [
{
# Allow nodes to retrieve their own catalog
match-request: {
path: "^/puppet/v3/catalog/([^/]+)$"
type: regex
method: [get, post]
}
allow: "$1"
sort-order: 500
name: "puppetlabs catalog"
},
...
]
}
java.lang.IllegalStateException: Cannot initialize master with partial state; need all files or none.
Found:
/etc/puppetlabs/puppet/ssl/private_keys/puppetserver.localdomain.pem
Missing:
/etc/puppetlabs/puppet/ssl/certs/puppetserver.localdomain.pem
rm -rf /etc/puppetlabs/puppet/ssl
I removed the ssl folder and restarted the service.But now it say that there is one file missing.>>java.lang.IllegalStateException: Cannot initialize master with partial state; need all files or none.Found:/etc/puppetlabs/puppet/ssl/private_keys/puppetserver.localdomain.pemMissing:/etc/puppetlabs/puppet/ssl/certs/puppetserver.localdomain.pem<<Is it possible to delete >>/etc/puppetlabs/puppet/ssl/private_keys/puppetserver.localdomain.pem<<?I attached the output of the log. Just in case this wasn't the problem.
/opt/puppetlabs/puppet/bin/puppet cert generate puppetserver.localdomain
webserver: {
...
ssl-cert: /etc/puppetlabs/puppet/ssl/certs/puppetserver.localdomain.pem
ssl-key: /etc/puppetlabs/puppet/ssl/private_keys/puppetserver.localdomain.pem
ssl-ca-cert: /etc/puppetlabs/puppet/ssl/certs/ca.pem
...
}