Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 0.10.4
-
Fix Version/s: None
-
Component/s: Knife
-
Environment:
Chef server on 64 bit ubuntu 10.04 and client vm is on Amazon Linux x86_64 x86_64 x86_64 GNU/Linux
This happens on VMware instances also
Description
We get this exception while bootstrapping some times. We dont know why it works on most installations and doesnt work on some.
INFO: *** Chef 0.10.4 ***
[Tue, 29 Nov 2011 01:47:42 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
[Tue, 29 Nov 2011 01:47:44 +0000] INFO: HTTP Request Returned 500 Internal Server Error: Connection refused - connect(2)
[Tue, 29 Nov 2011 01:47:44 +0000] ERROR: Server returned error for http://localhost:4000/clients, retrying 1/5 in 4s
[Tue, 29 Nov 2011 01:47:48 +0000] INFO: HTTP Request Returned 409 Conflict: Client already exists
[Tue, 29 Nov 2011 01:47:48 +0000] INFO: HTTP Request Returned 403 Forbidden: You are not allowed to take this action.
[Tue, 29 Nov 2011 01:47:48 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Tue, 29 Nov 2011 01:47:48 +0000] FATAL: Net::HTTPServerException: 403 "Forbidden
We deleted the client and node already didnt have an entry. While deleting the client it gave following error
but after we did knife client list we didnt see the client
This is the error which we got while deleting. But also observed that the client gets deleted even after throwing this error.
sudo knife client delete ip-10-204-30-83.ec2.internal (on Chef server)
Do you really want to delete ip-10-204-30-83.ec2.internal? (Y/N) y
ERROR: Server returned error for http://chef.adam.hp.com:4000/clients/ip-10-204-30-83.ec2.internal, retrying 1/5 in 4 s
ERROR: the object you are looking for could not be found
Response: Cannot load client ip-10-204-30-83.internal
Uname –a (on ec2)
Linux ip-10-204-30-83 2.6.35.14-97.44.amzn1.x86_64 #1 SMP Mon Oct 24 16:03:08 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux