After chef-server-ctl restore complete chef server stops working RESOLVED


#1

Hi,
I chef-server-ctl backup my main chef server and restored the backup on another chef server node using “chef-server-ctl restore chef-backup-date.tgz” but the chef server stops working on the new node.
both chef servers have 2 different IP and name.
what i am missing to make it work?

Thanks


#2

As you haven’t provided a chef server version or any platform specific details, I am going to take a stab at this.

If the IP and DNS name has changed on the restored server, it could be one of the following:

  • Incorrect DNS name configured for the SSL cert for the Chef server (This would prevent Chef from loading correctly)
  • Incorrect SSL certificate on the client/nodes for the server (Authentication issue at the end of the day)
  • The nodes client.rb file has the incorrect Chef server URL

At the very least I would start there.


#3

Also, have a read of this article, it may assist you with the issue. Thanks.


#4

thank you! it worked…i should have checked the logs “chef-server-ctl tail” it was clearly saying SSL issue.
The “chef-server-ctl backup” command does not backup the SSL directory “/etc/pki/tls/private” so i had to copy it over to the new node and change the DNS record.
Thanks again!


#5

Awesome. Glad I could help!