Anatoliy Lisovskiy
2012-Oct-09 02:29 UTC
[Puppet Users] After upgrade to 3.0: Warning: Error 400 on SERVER: Could not retrieve facts for
I auto-upgraded puppet (as usual) using "yum upgrade -y", and now all agents are getting error 400. # puppet --version 3.0.0 On agent (any!) # puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Could not retrieve facts for build6.[censored]: Failed to find facts from PuppetDB at abyss.[censored]:8081: Connection refused - connect(2) Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/lib/puppet/lib/facter/postgres_default_version.rb Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit ''replace facts'' command for build6.[censored] to PuppetDB at abyss.[censored]:8081: Connection refused - connect(2) Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run On server: [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET /production/node/build6.[censored]? HTTP/1.1" 400 156 [2012-10-08 19:25:51] - -> /production/node/build6.[censored]? [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 HTTP/1.1" 200 32704 [2012-10-08 19:25:51] - -> /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "POST /production/catalog/build6.[censored] HTTP/1.1" 400 148 [2012-10-08 19:25:53] - -> /production/catalog/build6.[censored] [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "PUT /production/report/build6.[censored] HTTP/1.1" 200 35 [2012-10-08 19:25:53] - -> /production/report/build6.[censored] -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Anatoliy Lisovskiy
2012-Oct-09 03:48 UTC
[Puppet Users] Re: After upgrade to 3.0: Warning: Error 400 on SERVER: Could not retrieve facts for
Problem solved: found that in database.ini it had been changed to Postgres (?!), but Postgres was not configured to start automatically upon reboot (?!). Some mystery. Anatoliy On Mon, Oct 8, 2012 at 7:29 PM, Anatoliy Lisovskiy <wavebourn@gmail.com>wrote:> I auto-upgraded puppet (as usual) using "yum upgrade -y", and now all > agents are getting error 400. > > # puppet --version > 3.0.0 > > On agent (any!) > > # puppet agent --test > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Could not retrieve facts for > build6.[censored]: Failed to find facts from PuppetDB at > abyss.[censored]:8081: Connection refused - connect(2) > Info: Retrieving plugin > Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb > Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb > Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb > Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb > Info: Loading facts in > /var/lib/puppet/lib/facter/postgres_default_version.rb > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed to submit ''replace facts'' command for build6.[censored] to PuppetDB > at abyss.[censored]:8081: Connection refused - connect(2) > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > On server: > > > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET > /production/node/build6.[censored]? HTTP/1.1" 400 156 > [2012-10-08 19:25:51] - -> /production/node/build6.[censored]? > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET > /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 > HTTP/1.1" 200 32704 > [2012-10-08 19:25:51] - -> > /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "POST > /production/catalog/build6.[censored] HTTP/1.1" 400 148 > [2012-10-08 19:25:53] - -> /production/catalog/build6.[censored] > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "PUT > /production/report/build6.[censored] HTTP/1.1" 200 35 > [2012-10-08 19:25:53] - -> /production/report/build6.[censored] > > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Deepak Giridharagopal
2012-Oct-09 04:01 UTC
Re: [Puppet Users] Re: After upgrade to 3.0: Warning: Error 400 on SERVER: Could not retrieve facts for
Are you using the puppetdb puppet module? If so, please file a bug about the restart issue and we''ll take a look! Deepak On Monday, October 8, 2012 at 9:48 PM, Anatoliy Lisovskiy wrote:> Problem solved: found that in database.ini it had been changed to Postgres (?!), but Postgres was not configured to start automatically upon reboot (?!). Some mystery. > > > Anatoliy > > > On Mon, Oct 8, 2012 at 7:29 PM, Anatoliy Lisovskiy <wavebourn@gmail.com (mailto:wavebourn@gmail.com)> wrote: > > I auto-upgraded puppet (as usual) using "yum upgrade -y", and now all agents are getting error 400. > > > > # puppet --version > > 3.0.0 > > > > On agent (any!) > > > > # puppet agent --test > > Warning: Unable to fetch my node definition, but the agent run will continue: > > Warning: Error 400 on SERVER: Could not retrieve facts for build6.[censored]: Failed to find facts from PuppetDB at abyss.[censored]:8081: Connection refused - connect(2) > > Info: Retrieving plugin > > Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb > > Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb > > Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb > > Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb > > Info: Loading facts in /var/lib/puppet/lib/facter/postgres_default_version.rb > > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit ''replace facts'' command for build6.[censored] to PuppetDB at abyss.[censored]:8081: Connection refused - connect(2) > > Warning: Not using cache on failed catalog > > Error: Could not retrieve catalog; skipping run > > > > On server: > > > > > > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET /production/node/build6.[censored]? HTTP/1.1" 400 156 > > [2012-10-08 19:25:51] - -> /production/node/build6.[censored]? > > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 HTTP/1.1" 200 32704 > > [2012-10-08 19:25:51] - -> /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 > > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "POST /production/catalog/build6.[censored] HTTP/1.1" 400 148 > > [2012-10-08 19:25:53] - -> /production/catalog/build6.[censored] > > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "PUT /production/report/build6.[censored] HTTP/1.1" 200 35 > > [2012-10-08 19:25:53] - -> /production/report/build6.[censored] > > > > > > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Anatoliy Lisovskiy
2012-Oct-09 05:49 UTC
Re: [Puppet Users] Re: After upgrade to 3.0: Warning: Error 400 on SERVER: Could not retrieve facts for
I am not sure if it was caused by upgrade. I upgraded it today, but database.ini has October, 1 time stamp. I''ll ask if somebody in our company did that. -rw-r----- 1 puppetdb puppetdb 1009 Oct 1 15:58 database.ini Anatoliy On Mon, Oct 8, 2012 at 9:01 PM, Deepak Giridharagopal <deepak@puppetlabs.com> wrote:> Are you using the puppetdb puppet module? If so, please file a bug about > the restart issue and we''ll take a look! > > Deepak > > On Monday, October 8, 2012 at 9:48 PM, Anatoliy Lisovskiy wrote: > > Problem solved: found that in database.ini it had been changed to > Postgres (?!), but Postgres was not configured to start automatically upon > reboot (?!). Some mystery. > > > Anatoliy > > > On Mon, Oct 8, 2012 at 7:29 PM, Anatoliy Lisovskiy <wavebourn@gmail.com>wrote: > > I auto-upgraded puppet (as usual) using "yum upgrade -y", and now all > agents are getting error 400. > > # puppet --version > 3.0.0 > > On agent (any!) > > # puppet agent --test > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Could not retrieve facts for > build6.[censored]: Failed to find facts from PuppetDB at > abyss.[censored]:8081: Connection refused - connect(2) > Info: Retrieving plugin > Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb > Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb > Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb > Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb > Info: Loading facts in > /var/lib/puppet/lib/facter/postgres_default_version.rb > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed to submit ''replace facts'' command for build6.[censored] to PuppetDB > at abyss.[censored]:8081: Connection refused - connect(2) > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > On server: > > > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET > /production/node/build6.[censored]? HTTP/1.1" 400 156 > [2012-10-08 19:25:51] - -> /production/node/build6.[censored]? > [2012-10-08 19:25:51] 10.1.10.50 - - [08/Oct/2012:19:25:51 PDT] "GET > /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 > HTTP/1.1" 200 32704 > [2012-10-08 19:25:51] - -> > /production/file_metadatas/plugins?&links=manage&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true&checksum_type=md5 > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "POST > /production/catalog/build6.[censored] HTTP/1.1" 400 148 > [2012-10-08 19:25:53] - -> /production/catalog/build6.[censored] > [2012-10-08 19:25:53] 10.1.10.50 - - [08/Oct/2012:19:25:53 PDT] "PUT > /production/report/build6.[censored] HTTP/1.1" 200 35 > [2012-10-08 19:25:53] - -> /production/report/build6.[censored] > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.