Fixing the puppetserver command not found ERROR

puppet server master some error fixing tips

I recently installed a puppetserver successfully following the official guides. My setup was something like this. A docker container with ubuntu 16.04.3 LTS. The puppetserver was installed successfully and when trying to run the command puppetserver came through this error ” Puppetserver command not Found “.

The problem was in the latest puppetserver version the puppetserver path is not added to the $PATH so added and the problem got solved.

Here is how to add the program path to the $PATH

PATH=$PATH:/opt/puppetlabs/bin

This will add the new path to the $PATH. To verify it use this command

echo $PATH which should show the recently added path

Extra tips on puppetserver certificate generation:

As we know this command puppet master –no-daemonize –verbose will generate a certificate in puppet server (master) but remember to stop the puppet master before running this else you might come up with some error message like bellow

Error: Could not run: Could not create PID file: /var/run/puppetlabs/puppetserver/puppetserver.pid

stop the puppetserver and run the puppet certificate generation in master node again.

 

Leave a Reply