Ask Your Question
0

puppetmaster start fails (agent node setup quest)

asked 2016-02-06 17:52:15 -0600

ReneCD gravatar image

updated 2016-02-06 17:53:36 -0600

As I'm running "puppet agent -t" in the second task in the "agent node setup" quest, I get an error that connection is refused to port 8140. After some checking I find in /var/log/puppetlabs/puppetserver/puppetserver.log following:

2016-02-06 22:58:34,024 ERROR [main] [p.t.internal] Error during service init!!! org.eclipse.jgit.api.errors.JGitInternalException: /etc/puppetlabs/code/environments/production/modules/sshd/files/sshd_config (Permission denied)

followed by a million java errors.

Permission for this file appears to be connect (0600) so what's going on? Everything was going fine up until the preceeding quest.

edit retag flag offensive close merge delete

Comments

The pe-puppetserver process runs as user 'pe-puppet' in Puppet Enterprise. Did you try recursively setting the owner on all files under /etc/puppetlabs/code and /etc/puppetlabs/code-staging to pe-puppet? See https://docs.puppetlabs.com/pe/latest/cmgmt_filesync.html#permissions.

camlow325 gravatar imagecamlow325 ( 2016-02-07 10:27:47 -0600 )edit

Perfect, thanks! Wonder how it got changed, I'm certain I haven't been in there changing things ;)

ReneCD gravatar imageReneCD ( 2016-02-07 12:59:24 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-02-07 15:00:22 -0600

ReneCD gravatar image

Answered by camlow325 :)

edit flag offensive delete link more
0

answered 2016-02-07 22:40:09 -0600

Kevin gravatar image

https://tickets.puppetlabs.com/browse...

Task 5 in the Resource Ordering quest asks you to copy /etc/ssh/sshd_config to sshd/files/sshd_config. The puppet user doesn't have permissions to read that file, hence the permission denied error you're seeing. We're planning to release a fix for this in the coming week, but until then, changing the permissions will fix it and allow you to properly restart the service.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-06 17:52:15 -0600

Seen: 113 times

Last updated: Feb 07 '16