[chef] Solved was Re: 500 error when upload cookbook?


Chronological Thread 
  • From: o haya < >
  • To: o haya < >, " " < >
  • Subject: [chef] Solved was Re: 500 error when upload cookbook?
  • Date: Wed, 9 Sep 2015 03:04:08 +0000 (UTC)

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 < >
To: o haya < >; " " < >
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 < >
To: " " < >; O. Haya < >
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_domain
Uploading create_domain  [0.2.0]
ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd75
1b0c87708a0d3ca0, retrying 1/5 in 4s
ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd75
1b0c87708a0d3ca0, retrying 2/5 in 7s
ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd75
1b0c87708a0d3ca0, retrying 3/5 in 10s
ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd75
1b0c87708a0d3ca0, retrying 4/5 in 18s
ERROR: Server returned error 500 for https://chefserver.whatever.com/organizations/chefadmins/sandboxes/2564c9cd75
1b0c87708a0d3ca0, retrying 5/5 in 60s
ERROR: internal server error
Response: 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








Archive powered by MHonArc 2.6.16.

§