Error 500 on SERVER: Server Error: Failed when searching for node [host] [closed]
I have a freshly installed node which I would like to connect to my Puppet 4.8.1/Foreman 1.12.4 server. The server is configured to autosign the hosts, which seems to work, because the certificate list shows the new server. However, when running puppet agent -t on the new client node I get the following output :
Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 500 on SERVER: Server Error: Failed to find host.company.local via exec: Execution of '/etc/puppetlabs/puppet/node.rb host.company.local' returned 1: Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node host.company.local: Failed to find host.company.local via exec: Execution of '/etc/puppetlabs/puppet/node.rb host.company.local' returned 1: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run
When I run the command on the puppet master I get the following :
# /etc/puppetlabs/puppet/node.rb host.company.local No such file or directory @ rb_file_s_stat - /opt/puppetlabs/puppet/cache/yaml/facts/host.company.local.yaml
In the past it all worked well and the new hosts did show up in Foreman in the environment where they were supposed to show up...
I did check the permissions on /opt/puppetlabs/puppet/cache/yaml/facts and those seem to be correct, owned by puppet with directory permissions of 750
It feels like the creation of the new host is failing and I have no clue why. So... any help is appreciated.