[chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: 500 Server error


Chronological Thread 
  • From: Paul Choi < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: 500 Server error
  • Date: Fri, 7 Jan 2011 19:30:38 +0000
  • Accept-language: en-US

If you used EPEL and ELFF repos to update your Chef-related RPMs, updating RabbitMQ will wipe your existing rabbitmq configs. It's not too bad… Just need to add_vhost /chef, add_user, set permissions on it.

Initially I thought it happened because RabbitMQ was updated from v1 to v2.0, but it's also happening when you upgrade from one version of RabbitMQ v2 to the next.

-Paul


Thanks, I also posted that I found the solution in the irc channel. I found it on


But I also had to give the amqp password to the add_user command.

Really weird that after running update this happened..

Thanks,
Tristan

On Wed, Jan 5, 2011 at 1:37 PM, Sean OMeara < "> > wrote:
Jump on freenode #chef

On Wed, Jan 5, 2011 at 2:33 PM, Tristan Sloughter
< "> > wrote:
> Thanks, Sean.
> Man, this is not a good day for me and Chef. Now I'm suddenly getting this
> new 500 error when I run the chef client as well as if I do a knife cookbook
> upload when it gets to the INFO: Uploading files. Very weird is I see the
> files (recipes and templates) when I go to the web interface.
> [Wed, 05 Jan 2011 13:31:15 -0600] DEBUG: Sending HTTP Request via PUT to
> 10.36.34.41:4000/nodes/ecduat02vm01
> [Wed, 05 Jan 2011 13:31:18 -0600] WARN: HTTP Request Returned 500 Internal
> Server Error: Connection failed - user: chef
> /usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error"
> (Net::HTTPFatalError)
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:229:in
> `api_request'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:280:in
> `retriable_rest_request'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:210:in
> `api_request'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:126:in
> `put_rest'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/node.rb:502:in `save'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:175:in
> `build_node'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:75:in `run'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:in
> `run_application'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in
> `loop'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in
> `run_application'
>         from
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in
> `run'
>         from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26
>         from /usr/bin/chef-client:19:in `load'
>         from /usr/bin/chef-client:19
> On Wed, Jan 5, 2011 at 12:43 PM, Sean OMeara < "> > wrote:
>>
>> Unfortunately no, not currently.
>>
>> Centos5 has a lot of old libraries that make it a real pain to keep up
>> with.
>>
>> I plan to provide bundler-ized RPMs for Centos6 (once it comes out)
>>
>> They are currently available for fedora13 here:
>> http://yum.afistfulofservers.net/affs-chef/fedora/13/x86_64/
>>
>> -s
>>
>> On Wed, Jan 5, 2011 at 1:38 PM, Tristan Sloughter
>> < "> > wrote:
>> > Thanks. It seems the latest version of Chef in the EPEL repos is 0.9.8,
>> > is
>> > this true? Is there another repo to use for centos that is updated more
>> > often?
>> > On Wed, Jan 5, 2011 at 12:29 PM, Bryan McLellan < "> >
>> > wrote:
>> >>
>> >> On Wed, Jan 5, 2011 at 10:21 AM, Tristan Sloughter
>> >> < "> > wrote:
>> >> > Ah, yeah, I'm running 0.9.8. I should probably update, I think the
>> >> > problem I
>> >> > had with the template not updating on the client is fixed in a later
>> >> > version
>> >> > as well.
>> >>
>> >> There were some issues with early cookbook version implementations in
>> >> 0.9.8 [1][2][3]. Reading through those bugs may help you figure out
>> >> how to get that cookbook to load.
>> >>
>> >> btm
>> >>
>> >> [1] http://tickets.opscode.com/browse/CHEF-1607
>> >> [2] http://tickets.opscode.com/browse/CHEF-1571
>> >> [3] http://tickets.opscode.com/browse/CHEF-1747
>> >
>> >
>
>




Archive powered by MHonArc 2.6.16.

§