Bug #3135
closed
Request Timeout on Puppet Class Import
Added by Shawn LoPresto over 11 years ago.
Updated over 6 years ago.
Description
This was working previously, but now when I attempt to import my puppet classes, I get a request timeout every time.
RestClient::RequestTimeout
Request Timeout
lib/proxy_api/resource.rb:68:in `get'
lib/proxy_api/puppet.rb:9:in `environments'
app/models/puppet_class_importer.rb:121:in `actual_environments'
app/models/puppet_class_importer.rb:21:in `changes'
lib/foreman/controller/environments.rb:9:in `import_environments'
lib/foreman/thread_session.rb:31:in `clear_thread'
- Target version deleted (
1.2.3)
I'd perhaps check your foreman-proxy service is up and fully accessible, perhaps restart it.
I think this is related to bug #2283. When trying to import many environments that each have many classes it can often take over the default 60 second rest client timeout.
- Related to Bug #2283: Need a way to configure proxy timeout added
I'm experiencing this same issue. I have 7 environments. I'm also on 3.6 RC1.
When I go to import a new environment, I get the following error:
Warning!
ERF12-4115 [ProxyAPI::ProxyException]: Unable to get classes from Puppet for development_nagios ([RestClient::RequestTimeout]: Request Timeout) for proxy https://FQDN:8443/puppet
The full trace is:
ProxyAPI::ProxyException
ERF12-4115 [ProxyAPI::ProxyException]: Unable to get classes from Puppet for development_nagios ([RestClient::RequestTimeout]: Request Timeout) for proxy https://FQDN:8443/puppet
lib/proxy_api/puppet.rb:27:in `rescue in classes'
lib/proxy_api/puppet.rb:21:in `classes'
app/services/puppet_class_importer.rb:155:in `actual_classes'
app/services/puppet_class_importer.rb:78:in `new_classes_for'
app/services/puppet_class_importer.rb:25:in `block in changes'
app/services/puppet_class_importer.rb:24:in `each'
app/services/puppet_class_importer.rb:24:in `changes'
app/controllers/concerns/foreman/controller/environments.rb:11:in `import_environments'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
- Status changed from New to Ready For Testing
- Target version set to 1.7.2
- Pull request https://github.com/theforeman/foreman/pull/1839 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 21
Also available in: Atom
PDF