Undefined method `couchdb_rev=' for nil:NilClass

Hi again folks,

I posted about this a week ago and I haven’t heard anything, so maybe
I didn’t provide enough information.

I’m trying to migrate from one Chef server to another. I stopped all
the Chef services on the new box, copied the chef.couch over, and
restarted everything. But if I try to run chef-client against the new
Chef server, I get the above error. I’ve pasted the full stack trace
here:

https://gist.github.com/2822102

Does anyone have any ideas on what to do?

  • Julian

Have you copied all the couchdb data, along with all the stuff in /var/chef?

Adam

On Mon, May 28, 2012 at 6:52 PM, Julian C. Dunn lists@aquezada.com wrote:

Hi again folks,

I posted about this a week ago and I haven't heard anything, so maybe
I didn't provide enough information.

I'm trying to migrate from one Chef server to another. I stopped all
the Chef services on the new box, copied the chef.couch over, and
restarted everything. But if I try to run chef-client against the new
Chef server, I get the above error. I've pasted the full stack trace
here:

https://gist.github.com/2822102

Does anyone have any ideas on what to do?

  • Julian

--
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Tue, May 29, 2012 at 2:08 AM, Adam Jacob adam@opscode.com wrote:

Have you copied all the couchdb data, along with all the stuff in /var/chef?

As Adam indicates, there is important data stored in your
checksum_patch that is required to go along with your CouchDB
database. Read the wiki page for backing up CouchDB carefully for a
little more information on this:
http://wiki.opscode.com/display/chef/Backing+Up+Chef+Server

Bryan

Yes, I copied the entire couchdb directory & stuff in /var/chef as well.

  • Julian

On Tue, May 29, 2012 at 2:08 AM, Adam Jacob adam@opscode.com wrote:

Have you copied all the couchdb data, along with all the stuff in /var/chef?

Adam

On Mon, May 28, 2012 at 6:52 PM, Julian C. Dunn lists@aquezada.com wrote:

Hi again folks,

I posted about this a week ago and I haven't heard anything, so maybe
I didn't provide enough information.

I'm trying to migrate from one Chef server to another. I stopped all
the Chef services on the new box, copied the chef.couch over, and
restarted everything. But if I try to run chef-client against the new
Chef server, I get the above error. I've pasted the full stack trace
here:

https://gist.github.com/2822102

Does anyone have any ideas on what to do?

  • Julian

--
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

Thanks guys -- mea culpa for not reading the directions closely.
Tarring up the entire /var/lib/chef directory and restoring it worked.

  • Julian

On Tue, May 29, 2012 at 9:53 AM, Bryan McLellan btm@loftninjas.org wrote:

On Tue, May 29, 2012 at 2:08 AM, Adam Jacob adam@opscode.com wrote:

Have you copied all the couchdb data, along with all the stuff in /var/chef?

As Adam indicates, there is important data stored in your
checksum_patch that is required to go along with your CouchDB
database. Read the wiki page for backing up CouchDB carefully for a
little more information on this:
http://wiki.opscode.com/display/chef/Backing+Up+Chef+Server

Bryan