Project

General

Profile

Bug #5792

406 Not acceptable when I click 'Import Puppet classess'

Added by Edson Manners over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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'

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

History

#1 Updated by Dominic Cleal over 5 years ago

  • 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.

#2 Updated by Edson Manners over 5 years ago

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

#3 Updated by Dominic Cleal over 5 years ago

This looks like #4658, an incompatibility between old proxy versions and Puppet 3.5. Please check you have a compatible version installed: http://theforeman.org/manuals/1.5/index.html#3.1.2PuppetCompatibility

It's OK to upgrade the proxy to 1.4 or 1.5 without updating Foreman itself, they're still compatible.

#4 Updated by Edson Manners over 5 years ago

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.

#5 Updated by Dominic Cleal over 5 years ago

  • Status changed from Need more information to Resolved

Good to hear, thanks.

Also available in: Atom PDF