Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems creating new nodes after restoring Chef 12 server from backup #893

Closed
klutarevich opened this issue Aug 1, 2016 · 2 comments
Closed

Comments

@klutarevich
Copy link

I have an old EC2 server running 12.1.2 Chef server that I'd like to replace with the new one running Chef server 12.8.0. I created a backup on 12.1.2 using standard instructions (first option where I just tar/zip files) and restored it successfully on 12.8.0 or so I thought. Everything worked well including editing of existing environments and nodes until I tried to create a new node using knife from 12.8 client. It returned error 500 and I don't even know where to start looking on the server. Please, help

@marcparadise
Copy link
Member

Hi @klutarevich -

Restoring data from an older version to a new version is likely to cause the kinds of issues that you have observed - the upgrade process includes schema and data migrations that will nopt get processed in a direct restore from a prior versiion.

If you're still having trouble, please make sure that you've done the following:

  1. the new server should be the same version as the old server
  2. restore the data
  3. Install the 12.8 package
  4. run chef-server-ctl upgrade
  5. run chef-server-ctl start

From that point, everything should be fully operational.

@klutarevich
Copy link
Author

Thanks. I followed your advice and it helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants