Problem:
Hey there! I’ve set up a new Foreman installation and installed Foreman Proxy on a separate host. In the puppet.conf file on the proxy host, I enabled the following lines:
[server]
external_nodes = /etc/puppetlabs/puppet/node.rb
node_terminus = exec
Now, when the puppet agent on a client runs and tries to send its reports to the Foreman Proxy, it fails with a timeout error. Here is the error i get :
Error: Could not send report: Request to https://foreman-proxy-test.local:8140/puppet/v3/report/win2.local?environment=windows failed after 210.404 seconds: Net::WriteTimeout with #TCPSocket:(closed)
Wrapped exception:
Net::WriteTimeout with #TCPSocket:(closed)
if I comment out these two lines in puppet.conf on the proxy host, the puppet agent runs successfully and sends the reports to Foreman without any issues.
I’ve also checked that manually executing the node.rb
script on the proxy host works fine. When i do /etc/puppetlabs/puppet/node.rb win2.local
I get all the parameters and classes
I didn’t noticed anything important in the logs. Anything I should be looking? I Search in the forum and it looks like this is usually a cert issue but I don’t think this is the case since puppet runs everything. when when the ENC is disabled it does communicate with the foreman server
Expected outcome:
puppet should be able to push the reports to foreman
Foreman and Proxy versions:
Foreman 3.8
Foreman Smart Proxy 3.8
Puppet 7.28.0