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 ?

user9517
  • 114,104
  • 20
  • 206
  • 289
jimcgh
  • 123
  • 1
  • 4

1 Answers1

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.

Jeremy Bouse
  • 11,241
  • 2
  • 27
  • 40
  • Terrible advice. Simply to say 'disable selinux' does not solve anyone's problem. – Mike Purcell Dec 04 '12 at 01: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. – Jeremy Bouse Dec 04 '12 at 12:49