Cannot import classes and environments from Foreman Proxy

Hello,

I am trying to import environment and classes in Forman, but I get the
following error:

ProxyAPI::ProxyException
ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments from
Puppet ([Errno::ECONNREFUSED]: Connection refused - connect(2)) for proxy
https://puppet.scytl.net:8443/puppet

lib/proxy_api/puppet.rb:11:in rescue in environments' lib/proxy_api/puppet.rb:9:inenvironments'
app/services/puppet_class_importer.rb:133:in actual_environments' app/services/puppet_class_importer.rb:24:inchanges'
app/controllers/concerns/foreman/controller/environments.rb:11:in
import_environments' app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

I tried to google it, but couldn't find anything.
I am not very familiar with Foreman so any help will be much appreciated.

Thank you :slight_smile:

Hi,

The error message says "Connection refused". Have you tried if the proxy is reachable from the master? The easiest way would be to check with curl -v https://puppet.scytl.net:8443/puppet. There are multiple reasons the proxy might not be reachable, among them firewalls, general network issues, wrong hostname for the proxy, proxy actually not running etc, but that's impossible to diagnose for us outsiders.

Best
Felix Gilcher

··· -- Felix Gilcher Geschäftsführer

m. +49 172 840 88 28

asquera GmbH
Ohlauer Straße 43
D-10999 Berlin

AG Charlottenburg, HRB 140808 B
Geschäftsführung: Felix Gilcher, Florian Gilcher

On 03 Nov 2014, at 09:44, Polina Despotova pdespotova@gmail.com wrote:

Hello,

I am trying to import environment and classes in Forman, but I get the following error:

ProxyAPI::ProxyException
ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments from Puppet ([Errno::ECONNREFUSED]: Connection refused - connect(2)) for proxy https://puppet.scytl.net:8443/puppet
lib/proxy_api/puppet.rb:11:in rescue in environments' lib/proxy_api/puppet.rb:9:inenvironments’
app/services/puppet_class_importer.rb:133:in actual_environments' app/services/puppet_class_importer.rb:24:inchanges’
app/controllers/concerns/foreman/controller/environments.rb:11:in import_environments' app/models/concerns/foreman/thread_session.rb:33:inclear_thread’
lib/middleware/catch_json_parse_errors.rb:9:in `call’

I tried to google it, but couldn’t find anything.
I am not very familiar with Foreman so any help will be much appreciated.

Thank you :slight_smile:


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.