Issue #2509 has been updated by Adam Stephens.
Affected version changed from 0.25.0rc1 to 0.25.4
I just ran across this on 0.25.4 due to a syntax error in a template file. I
had failed to terminate a tag on an if statement. Luckily this bug existed, but
looks like it has never been fixed. I should be able to reproduce this easily
in a test environment.
<pre>
r...@puppet /etc/puppet# puppetd -t
info: Retrieving plugin
warning: Fact syncing is deprecated as of 0.25 -- use 'pluginsync' instead
info: Retrieving fact
info: Loading facts in hugepagesize
info: Loading facts in hugepagesize
info: Loading facts in hugepagesize
info: Loading facts in hugepagesize
err: Could not retrieve catalog from remote server: Error 502 on SERVER:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at puppet.private Port 8140</address>
</body></html>
</pre>
<pre>
r...@puppet /etc/puppet/environments/production/modules/puppet/templates# erb
-x -T '-' puppet.conf.erb | ruby -c
-:28: unknown regexp options - lb
-:29: unknown regexp options - lb
-:32: syntax error
<% if fqdn != "puppet.public"
^
-:32: syntax error
<% if fqdn != "puppet.public"
^
-:36: syntax error
</pre>
apache error_log:
<pre>
[Thu Mar 04 18:04:53 2010] [warn] proxy: bad HTTP/1.1 header returned by
/production/catalog/puppet.public (GET)
</pre>
----------------------------------------
Bug #2509: err: Could not retrieve catalog from remote server: Error 502 on
SERVER: Proxy Error
http://projects.reductivelabs.com/issues/2509
Author: Robin Bowes
Status: Closed
Priority: Normal
Assigned to:
Category: usability
Target version: 0.25.0
Affected version: 0.25.4
Keywords:
Branch:
I'm using puppetmaster with mongrel/apache.
I had a syntax error in a manifest and got this error:
err: Could not retrieve catalog from remote server: Error 502 on SERVER: Proxy
Error
Further, when I fixed the syntax error, it doesn't always work first run, eg:
Syntax OK:
<pre>
[r...@a001 puppet]# puppetd --test
info: Caching catalog for a001.private.statcounter.com
info: Applying configuration version '1249597134'
notice: Finished catalog run in 1.12 seconds
</pre>
Introduce an error:
<pre>
[r...@a001 puppet]# vi /etc/puppet/modules/core/manifests/firewall.pp
[r...@a001 puppet]# puppetd --test
err: Could not retrieve catalog from remote server: Error 502 on SERVER: Proxy
Error
notice: Using cached catalog
info: Applying configuration version '1249597134'
notice: Finished catalog run in 1.15 seconds
</pre>
Fix the error and retry. Notice the configuration version is the old one for
the first two tries.
<pre>
[r...@a001 puppet]# vi /etc/puppet/modules/core/manifests/firewall.pp
[r...@a001 puppet]# puppetd --test
err: Could not retrieve catalog from remote server: Error 502 on SERVER: Proxy
Error
notice: Using cached catalog
info: Applying configuration version '1249597134'
notice: Finished catalog run in 1.26 seconds
[r...@a001 puppet]# puppetd --test
err: Could not retrieve catalog from remote server: Error 502 on SERVER: Proxy
Error
notice: Using cached catalog
info: Applying configuration version '1249597134'
notice: Finished catalog run in 1.14 seconds
[r...@a001 puppet]# puppetd --test
info: Caching catalog for a001.private.statcounter.com
info: Applying configuration version '1249597175'
notice: Finished catalog run in 1.45 seconds
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.