500 error when upload cookbook?

Hi,
I am trying to use knife to upload a cookbook to Chef server, and for this one cookbook, I am getting a 500 error:
PS C:\Users\Administrator\chef-repo> knife cookbook upload create_domainUploading create_domain [0.2.0]ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 1/5 in 4sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 2/5 in 7sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 3/5 in 10sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 4/5 in 18sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 5/5 in 60sERROR: internal server errorResponse: internal service error

I have rebooted/restarted the Chef server. Also, it seems like it is only happening on this one cookbook.
Can anyone tell me what might be causing this error? How can I diagnose/get more info about what might be causing the problem?
Thanks,Jim

Hi,
I should mention that this “create_domain” cookbook is essentially a duplicate of another cookbook I have, which uploads all right. I made the “create_domain” cookbook by doing “knife cookbook create” and copied over the recipes/default.rb from the original cookbook to the create_domain cookbook.
So, it’s kind of strange that one cookbook would upload ok, but the create_domain cookbook would have a problem when I try to upload it?
Thanks,Jim
From: o haya ohaya@yahoo.com
To: "chef@lists.opscode.com" chef@lists.opscode.com; O. Haya ohaya@yahoo.com
Sent: Tuesday, September 8, 2015 8:47 PM
Subject: 500 error when upload cookbook?

Hi,
I am trying to use knife to upload a cookbook to Chef server, and for this one cookbook, I am getting a 500 error:
PS C:\Users\Administrator\chef-repo> knife cookbook upload create_domainUploading create_domain [0.2.0]ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 1/5 in 4sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 2/5 in 7sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 3/5 in 10sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 4/5 in 18sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 5/5 in 60sERROR: internal server errorResponse: internal service error

I have rebooted/restarted the Chef server. Also, it seems like it is only happening on this one cookbook.
Can anyone tell me what might be causing this error? How can I diagnose/get more info about what might be causing the problem?
Thanks,Jim

To close the loop on this, I was on the IRC channel and got some help. This problem turned out to be because I had re-ip’ed the Chef server, but had not adjusted the /etc/hosts file on the Chef server to have the right IP address for the Chef server’s hostname. I fixed that and then the cookbook uploaded all right.

  From: o haya <ohaya@yahoo.com>

To: o haya ohaya@yahoo.com; "chef@lists.opscode.com" chef@lists.opscode.com
Sent: Tuesday, September 8, 2015 8:56 PM
Subject: Re: 500 error when upload cookbook?

Hi,
I should mention that this “create_domain” cookbook is essentially a duplicate of another cookbook I have, which uploads all right. I made the “create_domain” cookbook by doing “knife cookbook create” and copied over the recipes/default.rb from the original cookbook to the create_domain cookbook.
So, it’s kind of strange that one cookbook would upload ok, but the create_domain cookbook would have a problem when I try to upload it?
Thanks,Jim

 From: o haya <ohaya@yahoo.com>

To: "chef@lists.opscode.com" chef@lists.opscode.com; O. Haya ohaya@yahoo.com
Sent: Tuesday, September 8, 2015 8:47 PM
Subject: 500 error when upload cookbook?

Hi,
I am trying to use knife to upload a cookbook to Chef server, and for this one cookbook, I am getting a 500 error:
PS C:\Users\Administrator\chef-repo> knife cookbook upload create_domainUploading create_domain [0.2.0]ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 1/5 in 4sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 2/5 in 7sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 3/5 in 10sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 4/5 in 18sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 5/5 in 60sERROR: internal server errorResponse: internal service error

I have rebooted/restarted the Chef server. Also, it seems like it is only happening on this one cookbook.
Can anyone tell me what might be causing this error? How can I diagnose/get more info about what might be causing the problem?
Thanks,Jim

To close the loop on this, I was on the IRC channel and got some help. This problem turned out to be because I had re-ip’ed the Chef server, but had not adjusted the /etc/hosts file on the Chef server to have the right IP address for the Chef server’s hostname. I fixed that and then the cookbook uploaded all right.

  From: o haya <ohaya@yahoo.com>

To: o haya ohaya@yahoo.com; "chef@lists.opscode.com" chef@lists.opscode.com
Sent: Tuesday, September 8, 2015 8:56 PM
Subject: Re: 500 error when upload cookbook?

Hi,
I should mention that this “create_domain” cookbook is essentially a duplicate of another cookbook I have, which uploads all right. I made the “create_domain” cookbook by doing “knife cookbook create” and copied over the recipes/default.rb from the original cookbook to the create_domain cookbook.
So, it’s kind of strange that one cookbook would upload ok, but the create_domain cookbook would have a problem when I try to upload it?
Thanks,Jim

 From: o haya <ohaya@yahoo.com>

To: "chef@lists.opscode.com" chef@lists.opscode.com; O. Haya ohaya@yahoo.com
Sent: Tuesday, September 8, 2015 8:47 PM
Subject: 500 error when upload cookbook?

Hi,
I am trying to use knife to upload a cookbook to Chef server, and for this one cookbook, I am getting a 500 error:
PS C:\Users\Administrator\chef-repo> knife cookbook upload create_domainUploading create_domain [0.2.0]ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 1/5 in 4sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 2/5 in 7sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 3/5 in 10sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 4/5 in 18sERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd751b0c87708a0d3ca0, retrying 5/5 in 60sERROR: internal server errorResponse: internal service error

I have rebooted/restarted the Chef server. Also, it seems like it is only happening on this one cookbook.
Can anyone tell me what might be causing this error? How can I diagnose/get more info about what might be causing the problem?
Thanks,Jim

o_haya, thanks for your last comment, was helpful for me!