Hello, I'm new to Puppet, and I'm trying to configure my first Agent/Master node. It's running under 3 VM's (Ubuntu server 12.04), a master running with Passenger, and 2 Agents. (But I'm only configuring one at the moment)
Well, I followed this<http://engineering.yakaz.com/managing-an-infrastructure-datacenter-with-foreman-and-puppet.html> tutorial to install the master, and installed the agents as puppetlabs adviced <http://docs.puppetlabs.com/guides/installation.html#debian-and-ubuntu>it. I had to face with 2 problems : The application root didn't exist (/usr/share/puppet/rack/puppetmasterd) and the config.ru neither. So I downloaded default one (on github) and created the directory myself, and put it in. (I joined the config.ru file, just in case) Well, then I execute : *puppet agent --test > log.html* And I got the following error message : (I joined the full log .html file too) "Could not prepare for execution: Got 10 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/yaml; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/rrd; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/reports; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/facts; change from absent to file failed: Could not set 'file on ensure: Permission denied - /var/log/puppet/masterhttp.log; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/ssl; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/state; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/lib; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/bucket; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/server_data" Well, ok, I did what it needs to get the permission (on the master). I tried in different ways, classic chmod 644 or chown puppet:puppet. They both have no effect. I'm quite sure that I missed some directories in the installation of the master, maybe someone can link me to a better installation tutorial for the master ? If it's not, I don't know what I did wrong, if someone can tell me, I would really appreciate ! :) Thanks for reading. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.Title: Ruby (Rack) application could not be started [1;35merr: Could not request certificate: Error 500 on SERVER:
Ruby (Rack) application could not be started
The application has exited during startup (i.e. during the evaluation of
config/environment.rb).
The error message can be found below. To solve this problem, please
follow any instructions in the error message.
- Error message:
- Could not prepare for execution: Got 10 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/yaml; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/rrd; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/reports; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/facts; change from absent to file failed: Could not set 'file on ensure: Permission denied - /var/log/puppet/masterhttp.log; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/ssl; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/state; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/lib; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/bucket; change from absent to directory failed: Could not set 'directory on ensure: Permission denied - /var/lib/puppet/server_data
- Application root:
- /usr/share/puppet/rack/puppetmasterd
- Backtrace:
-
# File Line Location 0 /usr/lib/ruby/1.8/puppet/application.rb 408 in `exit' 1 /usr/lib/ruby/1.8/puppet/application.rb 408 in `exit_on_fail' 2 /usr/lib/ruby/1.8/puppet/application.rb 307 in `run' 3 /usr/lib/ruby/1.8/puppet/util/command_line.rb 69 in `execute' 4 config.ru 35 5 /usr/lib/ruby/vendor_ruby/rack/builder.rb 51 in `instance_eval' 6 /usr/lib/ruby/vendor_ruby/rack/builder.rb 51 in `initialize' 7 config.ru 1 in `new' 8 config.ru 1
config.ru
Description: Binary data
