Failed to execute puppetrun: ERF12-4252 [ProxyAPI::ProxyException]:

Hi,

I have provisioned a host using a manually created environment (not
production). I am now trying to use "puppet run". But i fails with below
error

failed to execute puppetrun: ERF12-4252 [ProxyAPI::ProxyException]: Unable
to execute Puppet run ([RestClient::InternalServerError]: 500 Internal
Server Error) for proxy https://puppet.testlab.org:8443/puppet

puppet smart proxy is running on my foreman server.

I changed the below settings

  • Changed listen to "true" both on puppet master and host * puppet.conf*.
  • Changed the name of environment to "Test-Enviornment" in puppet.conf
    master file (to match the environment setting on this host)

I also tried following this document
http://wiki.infn.it/progetti/cloud-areapd/best_practices/config_puppetrun
and changed auth.conf on host and sudoers on puppet master node

Still When i click on puppet run, it throws up this error

When i restart puppet service and click, it works without error but it do
nothing (i have some modules to be installed ). Second attempt to click
"run puppet" fails.

I also do not see any report from this host and suspect the same problem.

Thanks
Gagan

> Hi,
>
> I have provisioned a host using a manually created environment (not
> production). I am now trying to use "puppet run". But i fails with below
> error
>
> failed to execute puppetrun: ERF12-4252 [ProxyAPI::ProxyException]:
> Unable to execute Puppet run ([RestClient::InternalServerError]: 500
> Internal Server Error) for proxy https://puppet.testlab.org:8443/puppet
>
> puppet smart proxy is running on my foreman server.
>
> I changed the below settings
>
> - Changed listen to "true" both on puppet master and host /puppet.conf/.
> - Changed the name of environment to "Test-Enviornment" in
> /puppet.conf/ master file (to match the environment setting on this host)

Note that the "listen" mode is deprecated since Puppet 3.0, I wouldn't
advise using it in a new environment.
Foreman :: Manual has a number of
alternatives listed under Puppet run providers, which you can configure
on your smart proxy.

> I also tried following this document
> http://wiki.infn.it/progetti/cloud-areapd/best_practices/config_puppetrun
> and changed auth.conf on host and sudoers on puppet master node
>
> Still When i click on puppet run, it throws up this error
>
> When i restart puppet service and click, it works without error but it
> do nothing (i have some modules to be installed ). Second attempt to
> click "run puppet" fails.

Check the smart proxy log file to see the output from the Puppet command
at /var/log/foreman-proxy/proxy.log. Note of course that the smart
proxy is just calling "puppet kick" so you should test this yourself.

You might find that the agent is locked - while it's executing a run, it
will throw an error if you request a second.

> I also do not see any report from this host and suspect the same problem.

Probably unrelated, but hard to say without any logs from running Puppet
on the host, from Foreman's production.log etc.

··· On 27/05/15 00:56, Gagan wrote:


Dominic Cleal
Red Hat Engineering