We're getting the following error while launching instances during 
the BeforeHostUp phase.   
This error started occurring after we moved our scalr and chef servers to a 
new instance
type (by stopping and restarting after changing the type).

We can temporarily fix the problem by deleting the chef node and associate 
client with knife

knife client delete client-name
knife node delete client-name

which should clear the key for scalr but the error reappears upon 
subsequent relaunches.  
Can anyone suggest a permanent fix?  Do we need to remove all *.pem on the 
chef server located
under /etc/chef and then restart the server.


[Scalr built-in] Chef bootstrap failed: [2016-01-02T20:00:12+00:00] INFO: 
Forking chef instance to converge...
[2016-01-02T20:00:12+00:00] INFO: *** Chef 12.4.1 ***
[2016-01-02T20:00:12+00:00] INFO: Chef-client pid: 1385
[2016-01-02T20:00:14+00:00] INFO: Client key /etc/chef/client.pem is not 
present - registering
[2016-01-02T20:00:14+00:00] INFO: HTTP Request Returned 409 Conflict: 
Client already exists
[2016-01-02T20:00:14+00:00] INFO: HTTP Request Returned 400 Bad Request: 
error
 [0m
================================================================================
 [0m
 [31mChef encountered an error attempting to create the client "pre01-2" [0m
================================================================================
 [0m

 [0mInvalid Request Data: [0m
--------------------- [0m
The data in your request was invalid (HTTP 400).
 [0m
 [0mServer Response: [0m
---------------- [0m
Since Server API v1, all keys must be updated via the keys endpoint.  [0m

 [0m[2016-01-02T20:00:14+00:00] ERROR: Running exception handlers
[2016-01-02T20:00:14+00:00] ERROR: Exception handlers complete
[2016-01-02T20:00:14+00:00] FATAL: Stacktrace dumped to 
/var/chef/cache/chef-stacktrace.out
[2016-01-02T20:00:14+00:00] ERROR: 400 "Bad Request"
[2016-01-02T20:00:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError: 
Chef run process exited unsuccessfully (exit code 1)

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to