[chef] Re: Re: Re: Re: Can't re-create node after restoring CouchDB


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Can't re-create node after restoring CouchDB
  • Date: Tue, 26 Mar 2013 13:05:12 -0700

fujin, the public keys of the clients are not stored? whats does knife client list enumerates then? 


On Tue, Mar 26, 2013 at 1:03 PM, AJ Christensen < " target="_blank"> > wrote:
You might have not taken a consistent backup?

Clients aren't stored on the file-system -- only cookbook manifests
(IIRC), and only in chef10, it's different (Bookshelf) in chef11.

Jump into your database and delete the matching client documents.

--AJ

On 27 March 2013 09:01, Jochen Lillich < "> > wrote:
> Ranjib Dey wrote:
>
>> delete the client from chef server using knife (knife client delete
>> <node name>), and delete the old client.pem from the node itself. then
>> run chef-client on the node, and it will reregister itself.
>
> I already tried that, but there is no client with that name:
>
>     $ knife client delete MYNODE
>     Do you really want to delete MYNODE? (Y/N) y
>     ERROR: JSON::ParserError: 743: unexpected token at 'null'
>
> Neither `knife client list` nor the CouchDB web UI display the client name.
>
> That's why I asked if there could be something outside CouchDB (maybe the server filesystem) that prevents re-creating the client. Some kind of remains from my node creation today.
>
> Thanks,
>   Jochen
>




Archive powered by MHonArc 2.6.16.

§