Project

General

Profile

Actions

Bug #5792

closed

406 Not acceptable when I click 'Import Puppet classess'

Added by Edson Manners almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
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'


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
Actions #1

Updated by Dominic Cleal almost 10 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.

Actions #2

Updated by Edson Manners almost 10 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

Actions #3

Updated by Dominic Cleal almost 10 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.

Actions #4

Updated by Edson Manners almost 10 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.

Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Status changed from Need more information to Resolved

Good to hear, thanks.

Actions

Also available in: Atom PDF