Charly Mathieu
2013-May-02 15:26 UTC
[Puppet Users] Beginner : First Agent/Master, Passenger Error
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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Charly Mathieu
2013-May-03 08:40 UTC
[Puppet Users] Re: Beginner : First Agent/Master, Passenger Error
I changed my installation way, following the one <https://docs.puppetlabs.com/guides/installation.html>adviced by Puppetlabs. It seems to be good, but when I try to "puppet agen --test" on the agent, I get the error : ERR_405 Method Not Allowed The requested method PUT is not allowed for the URL /production/certificate_request/database. Apache/2.2.22 (Ubuntu) Server at 192.168.56.250 Port 8140 The first thing I noticed, is that I don''t know why he wants to request at this URL, which actually doesn''t exist on server (neither on agent). I tried to fix this by enabling apache2 mods (actions and rewrite), but still the same problem. These are two different problems on differents VM (and different installation), if someone have an idea on one or the other. Regards. Le jeudi 2 mai 2013 17:26:05 UTC+2, Charly Mathieu a écrit :> > 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Reasonably Related Threads
- permission denied errors on /var/lib/puppet stuff during puppetd -t
- Puppet Dashboard Error 400 Invalid Parameter at passenger pp:48
- storeconfigs + environments issue
- How does puppetlabs-lvm determine if a filesystem is absent?
- puppet node clean using SQLite instead of PuppetDB