Bug #5792
closed
406 Not acceptable when I click 'Import Puppet classess'
Added by Edson Manners over 10 years ago.
Updated over 10 years ago.
Description
Full trace
RestClient::NotAcceptable
406 Not Acceptable
lib/proxy_api/resource.rb:68:in `get'
lib/proxy_api/puppet.rb:9:in `environments'
app/services/puppet_class_importer.rb:121:in `actual_environments'
app/services/puppet_class_importer.rb:21:in `changes'
app/controllers/concerns/foreman/controller/environments.rb:10:in `import_environments'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
Files
puppet.conf |
puppet.conf |
2.43 KB
|
My (hopefully) sanitized puppet.conf (with no recent changes that I know of) |
Edson Manners, 05/19/2014 02:21 PM
|
|
- Status changed from New to Need more information
This is reporting the HTTP error received from your smart proxy. Check the log file on the proxy (usually /var/log/foreman-proxy/proxy.log) for a possible cause.
Ah... I was stuck thinking that itt had something to do with the Apache server. Here are the two applicable lines from the proxy log:
[root@foreman individualhosts]# tail f /var/log/foreman-proxy/proxy.log
I, [2014-05-19T09:57:58.433096 #25830] INFO - : Initializing from Puppet config file: /etc/puppet/puppet.conf
E, [2014-05-19T09:57:58.509187 #25830] ERROR -- : Failed to list puppet environments: undefined method `[]' for nil:NilClass
Ah. Upgrading to foreman-proxy-1.4.4-1.el6 definitely fixed it. Thanks. I'll lock my puppet upgrades in the future. You can close the ticket.
- Status changed from Need more information to Resolved
Also available in: Atom
PDF