I upraded puppetserver from 2.4.0 to 2.5.0 on a server running Centos 6.8. Then, puppetserver no longer starts.
The log (I think it was puppetsrver-daemon.log) said:
As the error reported, /etc/puppetlabs/puppetserver/bootstrap.cfg
was not there. The disappearance must have happened during the puppetserver upgrade. I can confirm this by looking at my backup directory and finding the boostrap.cfg file there: /srv/backup/etc/puppetlabs/puppetserver/bootstrap.cfg
.
According to this issue #1247, the boostrap.cfg file is broken into 2 files and relocated to a different directories. This issue was raised sometimes in May, and the problem only happened on my server today in August. How is that possible? This should affect more people right? So far, I haven’t seen any one reported it yet.
I need to get puppetserver running again and fast. Here is a quick fix.
Edit /etc/sysconfig/puppetserver
, and make change to BOOTSTRAP_CONFIG<code> variable:
Start puppetserver and it is working again (for now).