Bug #3135
closedRequest Timeout on Puppet Class Import
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'
Updated by Dominic Cleal almost 11 years ago
- Target version deleted (
1.2.3)
I'd perhaps check your foreman-proxy service is up and fully accessible, perhaps restart it.
Updated by Jason Smith almost 11 years ago
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.
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #2283: Need a way to configure proxy timeout added
Updated by Paul Calabro almost 10 years ago
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'
Updated by The Foreman Bot almost 10 years ago
- 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
Updated by Anonymous almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e18c940f61d196adad4e97891410281b21f551b7.
Updated by Dominic Cleal almost 10 years ago
- Translation missing: en.field_release set to 21