hi all , I use puppet with foreman, and get below...
# puppet
n
hi all , I use puppet with foreman, and get below error when I run
puppet agent -t:
Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node myserver.local: Exception while executing '/etc/puppetlabs/puppet/node.rb': Cannot run program "/etc/puppetlabs/puppet/node.rb" (in directory "."): error=0, Failed to exec spawn helper: pid: 737167, exit value: 1
However, running the ENC script manually works fine, No errors are shown in this case.:
/etc/puppetlabs/puppet/node.rb myserver.local
c
Does it still run fine if executed using the Puppet Server's user account?
Copy code
runuser -u puppet -- /etc/puppetlabs/puppet/node.rb myserver.local
👍 1
n
@csharpsteen yes its works fine even with puppet user, but after I restart the puppetserver, all works fine again 🙂 thank you for your answer :-)