alessandro mazzoli
2013-Oct-09 15:16 UTC
[Puppet Users] Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
Hi, i''m a newbie about Puppet( 1 month ~) i got error on generate temp file, i''ll explain my situation: -i have a puppetmaster(version: 3.3.0),executed on root and a puppet agent(version 2.7) provisioning by vagrant,executed on root -my site.pp, where webserv is a parametrized class, and typews is a parameter to choice nginx or lamp module, -i have my Enc node with path /var/lib/puppet/yaml/facts/ on my puppetmaster -Selinux disabled node ''vagrant1.localdomain''{ include webserv class{ ''webserv'': typews=>["nginx"], } } puppet agent -t --debug debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Failed to load library ''selinux'' for feature ''selinux'' debug: Failed to load library ''ldap'' for feature ''ldap'' debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring File[/var/lib/puppet/state] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state] debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/var/lib/puppet/classes.txt]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/run/puppet/agent.pid]: Autorequiring File[/var/run/puppet] debug: Finishing transaction -614883798 debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: Finishing transaction -615437368 debug: Using cached certificate for ca debug: Using cached certificate for vagrant1.localdomain debug: Finishing transaction -615696088 debug: Loaded state in 0.00 seconds debug: Executing ''/etc/puppet/etckeeper-commit-pre'' debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson debug: Using cached certificate for ca debug: Using cached certificate for vagrant1.localdomain debug: Using cached certificate_revocation_list for ca err: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'' warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run debug: Executing ''/etc/puppet/etckeeper-commit-post'' debug: report supports formats: b64_zlib_yaml pson raw yaml; using pson Security Problem?Suggestion? Thanks,A.M -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Jason Harmon
2013-Oct-09 15:34 UTC
[Puppet Users] Re: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
I had this come up a couple of weeks ago. Basic of the problem was that the source file it was looking for didn''t exist. In depth, the file it should have been grabbing did exist, but it wasn''t being evaluated correctly due to a missing rb file in facter. I was evaluating the source as puppet:///module/exmaple/file${operatingsystemmajversion}.ext and since facter on the client did not have the method for getting the major version it was returning nothing. It would try and get file.ext instead of file7.ext When it couldn''t find the file it gave me an error about not being able to create the temp file. On Wednesday, October 9, 2013 9:16:20 AM UTC-6, alessandro mazzoli wrote:> > Hi, > i''m a newbie about Puppet( 1 month ~) > i got error on generate temp file, i''ll explain my situation: > -i have a puppetmaster(version: 3.3.0),executed on root > and a puppet agent(version 2.7) provisioning by vagrant,executed on root > -my site.pp, where webserv is a parametrized class, and typews is a > parameter to choice nginx or lamp module, > -i have my Enc node with path /var/lib/puppet/yaml/facts/ on my > puppetmaster > -Selinux disabled > > node ''vagrant1.localdomain''{ > include webserv > class{ ''webserv'': > typews=>["nginx"], > } > > } > > > puppet agent -t --debug > debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not > exist > debug: Puppet::Type::User::ProviderPw: file pw does not exist > debug: Puppet::Type::User::ProviderLdap: true value when expecting false > debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl > does not exist > debug: Failed to load library ''selinux'' for feature ''selinux'' > debug: Failed to load library ''ldap'' for feature ''ldap'' > debug: /File[/var/lib/puppet/clientbucket]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/state/graphs]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/client_yaml]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/client_data]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/var/lib/puppet/classes.txt]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/var/run/puppet/agent.pid]: Autorequiring > File[/var/run/puppet] > debug: Finishing transaction -614883798 > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: Finishing transaction -615437368 > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Finishing transaction -615696088 > debug: Loaded state in 0.00 seconds > debug: Executing ''/etc/puppet/etckeeper-commit-pre'' > debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using > pson > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Using cached certificate_revocation_list for ca > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > cannot generate tempfile > `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'' > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > debug: Executing ''/etc/puppet/etckeeper-commit-post'' > debug: report supports formats: b64_zlib_yaml pson raw yaml; using pson > > Security Problem?Suggestion? > > Thanks,A.M >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
alessandro mazzoli
2013-Oct-09 15:38 UTC
[Puppet Users] Re: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
Il giorno mercoledì 9 ottobre 2013 17:16:20 UTC+2, alessandro mazzoli ha scritto:> > Hi, > i''m a newbie about Puppet( 1 month ~) > i got error on generate temp file, i''ll explain my situation: > -i have a puppetmaster(version: 3.3.0),executed on root > and a puppet agent(version 2.7) provisioning by vagrant,executed on root > -my site.pp, where webserv is a parametrized class, and typews is a > parameter to choice nginx or lamp module, > -i have my Enc node with path /var/lib/puppet/yaml/facts/ on my > puppetmaster > -Selinux disabled > > node ''vagrant1.localdomain''{ > include webserv > class{ ''webserv'': > typews=>["nginx"], > } > > } > > > puppet agent -t --debug > debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not > exist > debug: Puppet::Type::User::ProviderPw: file pw does not exist > debug: Puppet::Type::User::ProviderLdap: true value when expecting false > debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl > does not exist > debug: Failed to load library ''selinux'' for feature ''selinux'' > debug: Failed to load library ''ldap'' for feature ''ldap'' > debug: /File[/var/lib/puppet/clientbucket]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/state/graphs]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/client_yaml]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/client_data]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/var/lib/puppet/classes.txt]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/var/run/puppet/agent.pid]: Autorequiring > File[/var/run/puppet] > debug: Finishing transaction -614883798 > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: Finishing transaction -615437368 > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Finishing transaction -615696088 > debug: Loaded state in 0.00 seconds > debug: Executing ''/etc/puppet/etckeeper-commit-pre'' > debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using > pson > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Using cached certificate_revocation_list for ca > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > cannot generate tempfile > `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'' > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > debug: Executing ''/etc/puppet/etckeeper-commit-post'' > debug: report supports formats: b64_zlib_yaml pson raw yaml; using pson > > Security Problem?Suggestion? > > Thanks,A.M >permissions: for agent on root : ls -la /root total 24 drwx------ 2 root root 4096 Sep 27 16:34 . drwxr-xr-x 23 root root 4096 Oct 9 16:33 .. -rw------- 1 root root 8065 Oct 8 14:13 .bash_history -rw-r--r-- 1 root root 3106 Apr 19 2012 .bashrc -rw-r--r-- 1 root root 140 Apr 19 2012 .profile for puppetmaster on root: drwx------ 4 root root 4096 Oct 8 15:49 . drwxr-xr-x 23 root root 4096 Oct 1 15:54 .. -rw------- 1 root root 31949 Oct 9 15:35 .bash_history -rw-r--r-- 1 root root 3106 Apr 19 2012 .bashrc drwxr-xr-x 3 root root 4096 Oct 8 15:49 .gem -rw------- 1 root root 67 Oct 9 17:26 .nano_history -rw-r--r-- 1 root root 140 Apr 19 2012 .profile -rw-r--r-- 1 root root 3430 Apr 23 21:36 puppetlabs-release-precise.deb drwxr-xr-x 2 root root 4096 Oct 1 11:56 .rpmdb checked that i have both disk blocks and inodes free (df -h /root ; df -hi /root) -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Jennings, Jared L CTR USAF AFMC 96 SK/CCI
2013-Oct-09 19:52 UTC
RE: [Puppet Users] Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
err: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie 5i-9'' warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Security Problem?Suggestion? "Error 400 on SERVER" means that the problem outlined in the next words happened on the server, not the client. The details of the problem are after "Error 400:" there are dozens of things that can cause an error 400. In this case, a tempfile could not be written. Perhaps the directory /var/lib/puppet/yaml/facts does not exist; perhaps the user trying to create the tempfile cannot write to it (this user may well be puppet, not root, even if you ran the server as root); or perhaps the disk is full. That''s where to start; where you will end up I don''t know. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
alessandro mazzoli
2013-Oct-10 11:58 UTC
Re: [Puppet Users] Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
Thanks Jason and Jared, I think, like Jared said, that the user trying to create the tempfile cannot write to it (this user may well be puppet, not root. So i checked on puppetmaster: -permissions:/etc/init.d ls -la -rwsr-xr-x 1 root root 3727 Sep 12 22:57 puppetmaster /var/lib/puppet/yaml$ ls -la total 16 drwxr-xr-x 4 puppet puppet 4096 Sep 27 13:06 . drwxrwxrwx 15 puppet puppet 4096 Sep 27 17:59 .. drwxr-xr-x 2 root root 4096 Oct 9 15:33 facts I also checked for disk full and inodes too. Il giorno mercoledì 9 ottobre 2013 21:52:27 UTC+2, Jared Jennings ha scritto:> > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > cannot generate tempfile > `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'' > > warning: Not using cache on failed catalog > > err: Could not retrieve catalog; skipping run > > > > Security Problem?Suggestion? > > > > > > “Error 400 on SERVER” means that the problem outlined in the next words > happened on the server, not the client. The details of the problem are > after “Error 400:” there are dozens of things that can cause an error 400. > In this case, a tempfile could not be written. Perhaps the directory > /var/lib/puppet/yaml/facts does not exist; perhaps the user trying to > create the tempfile cannot write to it (this user may well be puppet, not > root, even if you ran the server as root); or perhaps the disk is full. > That’s where to start; where you will end up I don’t know. >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
jcbollinger
2013-Oct-10 14:23 UTC
Re: [Puppet Users] Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
On Thursday, October 10, 2013 6:58:10 AM UTC-5, alessandro mazzoli wrote:> > Thanks Jason and Jared, > I think, like Jared said, that the user trying to create the tempfile > cannot write to it (this user may well be puppet, not root. > So i checked on puppetmaster: > -permissions:/etc/init.d ls -la > -rwsr-xr-x 1 root root 3727 Sep 12 22:57 puppetmaster > >That''s bad. Initscripts should not be suid-root. Also, the master does not need to run as root and therefore should not do so (unlike the agent). If it is running as root then that could even be your problem.> /var/lib/puppet/yaml$ ls -la > total 16 > drwxr-xr-x 4 puppet puppet 4096 Sep 27 13:06 . > drwxrwxrwx 15 puppet puppet 4096 Sep 27 17:59 .. > drwxr-xr-x 2 root root 4096 Oct 9 15:33 facts > >That''s wrong. /var/lib/puppet/yaml/facts should be writable by the puppetmaster user, which should not be root. Typically, it''s a system user named ''puppet''. Hypothesis: the master is running as root, which is how the /var/lib/puppet/yaml/facts directory ended up with the ownership and permissions shown, but you are running SELinux in enforcing mode, and the installed policy and filesystem labels do not allow root to write to that directory. That could have resulted from a ''restorecon'' running after the directory and perhaps some contents were initially created. If that hypothesis is correct, then the best solution would be to shut down the master, completely remove the facts/ directory, and restart the master as the user it is expected to run as. It may be that turning off the setuid bit on the initscript (which you should do in any case) is all it takes to get the correct user for future puppetmaster processes. John -- 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. For more options, visit https://groups.google.com/groups/opt_out.
alessandro mazzoli
2013-Oct-10 15:29 UTC
[Puppet Users] Re: Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9''
Thx so much John as you explained was a permission problem: as you explained i fixed like this: On pupputmaster : service puppetmaster stop chown puppet:puppet /etc/init.d/puppetmaster rm -r /var/lib/puppet/yaml/facts chown puppet:puppet /var/lib/puppet/yaml/node/"hostname and "puppetmaster name", before has root permission(my bad) service puppetmaster restart I also checked that facts has been created with puppet permission Il giorno mercoledì 9 ottobre 2013 17:16:20 UTC+2, alessandro mazzoli ha scritto:> > Hi, > i''m a newbie about Puppet( 1 month ~) > i got error on generate temp file, i''ll explain my situation: > -i have a puppetmaster(version: 3.3.0),executed on root > and a puppet agent(version 2.7) provisioning by vagrant,executed on root > -my site.pp, where webserv is a parametrized class, and typews is a > parameter to choice nginx or lamp module, > -i have my Enc node with path /var/lib/puppet/yaml/facts/ on my > puppetmaster > -Selinux disabled > > node ''vagrant1.localdomain''{ > include webserv > class{ ''webserv'': > typews=>["nginx"], > } > > } > > > puppet agent -t --debug > debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not > exist > debug: Puppet::Type::User::ProviderPw: file pw does not exist > debug: Puppet::Type::User::ProviderLdap: true value when expecting false > debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl > does not exist > debug: Failed to load library ''selinux'' for feature ''selinux'' > debug: Failed to load library ''ldap'' for feature ''ldap'' > debug: /File[/var/lib/puppet/clientbucket]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/state/graphs]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/client_yaml]: Autorequiring > File[/var/lib/puppet] > debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring > File[/var/lib/puppet/state] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/client_data]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/var/lib/puppet/classes.txt]: Autorequiring > File[/var/lib/puppet] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/var/run/puppet/agent.pid]: Autorequiring > File[/var/run/puppet] > debug: Finishing transaction -614883798 > debug: /File[/etc/puppet/ssl/private_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/private_keys] > debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring > File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/certs/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/certs] > debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring > File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl/public_keys/vagrant1.localdomain.pem]: > Autorequiring File[/etc/puppet/ssl/public_keys] > debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] > debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] > debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] > debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring > File[/etc/puppet/ssl] > debug: Finishing transaction -615437368 > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Finishing transaction -615696088 > debug: Loaded state in 0.00 seconds > debug: Executing ''/etc/puppet/etckeeper-commit-pre'' > debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using > pson > debug: Using cached certificate for ca > debug: Using cached certificate for vagrant1.localdomain > debug: Using cached certificate_revocation_list for ca > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > cannot generate tempfile > `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'' > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > debug: Executing ''/etc/puppet/etckeeper-commit-post'' > debug: report supports formats: b64_zlib_yaml pson raw yaml; using pson > > Security Problem?Suggestion? > > Thanks,A.M >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- retrieving module directory
- Configuration is not applied notice: Finished catalog run in 0.01 seconds
- on puppet master server , puppet agent can't connect to itself
- Puppet master can not find file_metadata for my puppet module
- Next Problem: Puppet 2.7 + Passenger won't connect