Puppet dashboard Exit error 127

asked 2014-10-30 13:38:27 -0600

shahb gravatar image

UPDATE: I copied the external_node exec from dashboard server to puppet master server which helped remove the first error of not finding the exec but it still pops up the following:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'krb-rwc-devm1.example.com, krb-rwc-devm1.example, krb-rwc-devm1' on node krb-rwc-devm1.example.com

Hi,

I'm new to Puppet. I recently installed puppet & puppet dashboard both running on a separate server. The puppet dashboard is on a standalone server running separately. After installation, I get the following error when running the puppet agent from agent node..

Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Failed to find ssfm01vnlog.example.com via exec: Execution of '/usr/bin/env PUPPETDASHBOARDURL=http://krb-rwc-devm1.example.com:3000 /usr/share/puppet-dashboard/bin/externalnode ssfm01vnlog.example.com' returned 127: Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ssfm01vnlog.example.com: Failed to find ssfm01vnlog.example.com via exec: Execution of '/usr/bin/env PUPPETDASHBOARDURL=http://krb-rwc-devm1.example.com:3000 /usr/share/puppet-dashboard/bin/externalnode ssfm01vnlog.example.com' returned 127: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

After goggling I found the exit 127 error is related to PATH variable. I'm not sure what PATH I'm missing here and also does this PATH needs to be set on puppet master or puppet dashboard server where the dashboard is running ?

The setting on Puppet master is :

reports = store, http reporturl = http://krb-rwc-devm1.example.com:3000/reports/upload nodeterminus = exec externalnodes = /usr/bin/env PUPPETDASHBOARDURL=http://krb-rwc-devm1.example.com:3000 /usr/share/puppet-dashboard/bin/external_node

Regards

edit retag flag offensive close merge delete