1

I installed puppet 2.6.12 on CentOS 6. When I try to start the puppetmaster service using the command service puppetmaster start I get the error:

Starting puppetmaster: /usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:142:in open: Permission denied - /var/lib/puppet/ssl/ca (Errno::EACCES).

If I do sudo service puppetmaster start I get the error

 Starting puppetmaster: Could not prepare for execution: Could not find a default provider for user

I have ruby 1.8.7,ruby-libs and ruby-shadow installed. How can I fix this problem ?

4
  • Do you have SELinux installed and active? Dec 20, 2011 at 14:23
  • I had done a fresh install of CentOS6. Dont have any idea about SELinux. Is that the cause of the problem ?
    – jimcgh
    Dec 20, 2011 at 16:35
  • Run getenforce to check the SELinux status on the box. I believe default is to enable it. Dec 20, 2011 at 16:55
  • When i run the command getenforce it shows Enforcing. Does that mean its already enabled ?.
    – jimcgh
    Dec 20, 2011 at 19:24

1 Answer 1

0

Try to disable SELinux or at least put it into Permissive mode and see if the issue resolves. To do this just edit the /etc/sysconfig/selinux file and change the value of SELINUX as directed in the file.

If this solves the problem then SELinux is interfering with Puppet's operation and you can either keep it disabled/permissive if having SELinux enabled is not required or would require determining why SELinux is having problems. This question related as to whether or not SELinux should be enabled or disabled.

2
  • Terrible advice. Simply to say 'disable selinux' does not solve anyone's problem. Dec 4, 2012 at 1:18
  • Try re-reading the answer Mike as I wasn't simply saying to disable selinux but mark it to 'Permissive' which allows the actions to take place but logs the action as a means of troubleshooting to see if selinux is the cause for the failure. Dec 4, 2012 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .