Hi,
I'm getting following error while importing puppet classes. I'm searching
for the solution for past two days. I don't know where the issue. Please
help me.
]#curl https://puppet:8443/puppet/environments -k
Failed to list puppet environments: undefined method `[]' for nil:NilClass
]#cat /etc/puppet/puppet.conf
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
environment = production
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate puppet
executable using the --loadclasses
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
reports =true
[master]
autosign = true
autosign = $confdir/autosign.conf {owner = service, group = service,
mode = 664 }
reports = log, foreman
external_nodes = /etc/puppet/node.rb
node_terminus = exec
certname=<CERTNAME>
[production]
modulepath = /etc/puppet/environments/production/modules
manifestdir = /etc/puppet/environments/production/manifests
manifest = /etc/puppet/environments/production/manifests/site.pp
Regards,
Suresh
This sounds like a bug in the smart proxy when using Puppet 3.5 or
higher. Ensure you're using version 1.4.2 or higher with 3.5.
(Foreman :: Manual)
···
On 12/05/14 17:51, Suresh P wrote:
> Hi,
>
>
> I'm getting following error while importing puppet classes. I'm
> searching for the solution for past two days. I don't know where the
> issue. Please help me.
>
> ]#curl https://puppet:8443/puppet/environments -k
>
> Failed to list puppet environments: undefined method `[]' for nil:NilClass
–
Dominic Cleal
Red Hat Engineering
Hi Dominic Cleal,
Thank you so much…
Upgrading foreman-proxy fixed the issue.
Thanks,
Suresh.
···
On Monday, 12 May 2014 22:24:58 UTC+5:30, Dominic Cleal wrote:
>
> On 12/05/14 17:51, Suresh P wrote:
> > Hi,
> >
> >
> > I'm getting following error while importing puppet classes. I'm
> > searching for the solution for past two days. I don't know where the
> > issue. Please help me.
> >
> > ]#curl https://puppet:8443/puppet/environments -k
> >
> > Failed to list puppet environments: undefined method `[]' for
> nil:NilClass
>
> This sounds like a bug in the smart proxy when using Puppet 3.5 or
> higher. Ensure you're using version 1.4.2 or higher with 3.5.
>
> (http://theforeman.org/manuals/1.5/index.html#3.1.2PuppetCompatibility)
>
> --
> Dominic Cleal
> Red Hat Engineering
>
Hi,
I have just replaced my puppetmaster and installed foreman-proxy in new
puppet master. After that edited foreman-proxy url in foreman.
Now i'm getting following error.
Unable to communicate with the proxy: ERF12-2530
[ProxyAPI::ProxyException]: Unable to detect features ([Errno::ECONNRESET]:
Connection reset by peer) for proxy http://172.20.11.110:8443/features
Please check the proxy is configured and running on the host.
From foreman server
curl https://puppet:8443/puppet/environments -k
["production"]
Regards,
Suresh
···
On Monday, 12 May 2014 22:37:48 UTC+5:30, Suresh P wrote:
>
> Hi Dominic Cleal,
>
> Thank you so much..
>
> Upgrading foreman-proxy fixed the issue.
>
> Thanks,
> Suresh.
>
> On Monday, 12 May 2014 22:24:58 UTC+5:30, Dominic Cleal wrote:
>>
>> On 12/05/14 17:51, Suresh P wrote:
>> > Hi,
>> >
>> >
>> > I'm getting following error while importing puppet classes. I'm
>> > searching for the solution for past two days. I don't know where the
>> > issue. Please help me.
>> >
>> > ]#curl https://puppet:8443/puppet/environments -k
>> >
>> > Failed to list puppet environments: undefined method `[]' for
>> nil:NilClass
>>
>> This sounds like a bug in the smart proxy when using Puppet 3.5 or
>> higher. Ensure you're using version 1.4.2 or higher with 3.5.
>>
>> (http://theforeman.org/manuals/1.5/index.html#3.1.2PuppetCompatibility)
>>
>> --
>> Dominic Cleal
>> Red Hat Engineering
>>
>
This is happening as the proxy is configured in Foreman with an http
URL, change it to https:// to match your test.
···
On 22/05/14 18:45, Suresh P wrote:
> Hi,
>
> I have just replaced my puppetmaster and installed foreman-proxy in new
> puppet master. After that edited foreman-proxy url in foreman.
>
> Now i'm getting following error.
>
> Unable to communicate with the proxy: ERF12-2530
> [ProxyAPI::ProxyException]: Unable to detect features
> ([Errno::ECONNRESET]: Connection reset by peer) for proxy
> http://172.20.11.110:8443/features
> Please check the proxy is configured and running on the host.
>
> From foreman server
> curl https://puppet:8443/puppet/environments -k
> ["production"]
–
Dominic Cleal
Red Hat Engineering