[chef] Re: Re: Re: RabbitMQ startup fails because qpidd is using the same TCP port


Chronological Thread 
  • From: Mike < >
  • To: "John E. Vincent" < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: Re: RabbitMQ startup fails because qpidd is using the same TCP port
  • Date: Thu, 13 Dec 2012 22:13:35 -0500

> ...or you can write a wrapper cookbook that calls another recipe that 
> cleans it up.
Matt Ray put something a cookbook together for what he terms "annoyances".
https://github.com/mattray/annoyances-cookbook/



On Thu, Dec 13, 2012 at 10:10 PM, John E. Vincent (lusis)
< >
 wrote:
> What Mike said. It would be arrogant and misguided of chef to
> uninstall that package by default. Maybe you actually WANT qpid
> installed and didn't mean to assign the rabbitmq role to the node.
>
> What ever is in your base image is your responsibility. You can either
> clean up your base image and go JeOS (which is what I do) or you can
> write a wrapper cookbook that calls another recipe that cleans it up.
>
>
> Could the chef cookbook be smarter about something like that?
> Probably. It could do a check to see if anything is listening on that
> port. It could check if qpid is running. Lots of things but honestly
> none of those are the responsibility of the cookbook. The ONLY avenue
> outside of these options that might make sense is for the upstream
> package to declare a "Conflicts: qpid" in the rpm.
>
> On Thu, Dec 13, 2012 at 9:02 PM, Mike 
> < >
>  wrote:
>> I would argue that the Qpid daemon (used by Matahari) should be either
>> removed or stopped before you attempt to install Rabbit by the
>> operator - if it's there, the RabbitMQ cookbook should probably not
>> stop on anything already running.
>>
>> You could write an intermediary cookbook to run before Rabbit fires
>> off its directives that would ensure qpidd is not going to interrupt
>> your flow.
>>
>> Personally, I remove matahari and qpid from every system I've seen it
>> on. But that's entirely up to you to decide why it's there.
>> -M
>>
>> On Thu, Dec 13, 2012 at 9:03 PM, Kenneth Stailey
>> < >
>>  wrote:
>>> Hi,
>>>
>>> I tried to install rabbitmq on RHEL 6 but by default qpidd is using
>>> the same TCP port.
>>>
>>> Does it make sense for the rabbitmq cookbook to stop qpidd?
>>>
>>> Thanks,
>>> Ken
>>>
>>> Transcript of issue:
>>>
>>>
>>> starting networking
>>> ...BOOT ERROR: FAILED
>>> Reason: {badmatch,
>>>             {error,
>>>                 {shutdown,
>>>                     
>>> {child,undefined,'rabbit_tcp_listener_sup_0.0.0.0:5672',
>>>                         {tcp_listener_sup,start_link,
>>>                             [{0,0,0,0},
>>>                              5672,
>>>                              [inet,binary,
>>>                               {packet,raw},
>>>                               {reuseaddr,true},
>>>                               {backlog,128},
>>>                               {nodelay,true},
>>>                               {exit_on_close,false}],
>>>                              
>>> {rabbit_networking,tcp_listener_started,[amqp]},
>>>                              
>>> {rabbit_networking,tcp_listener_stopped,[amqp]},
>>>                              {rabbit_networking,start_client,[]},
>>>                              "TCP Listener"]},
>>>                         transient,infinity,supervisor,
>>>                         [tcp_listener_sup]}}}}
>>> Stacktrace: [{rabbit_networking,start_listener0,4},
>>>              {rabbit_networking,'-start_listener/4-lc$^0/1-0-',4},
>>>              {rabbit_networking,start_listener,4},
>>>              {rabbit_networking,'-boot_tcp/0-lc$^0/1-0-',1},
>>>              {rabbit_networking,boot_tcp,0},
>>>              {rabbit_networking,boot,0},
>>>              {rabbit,'-run_boot_step/1-lc$^1/1-1-',1},
>>>              {rabbit,run_boot_step,1}]
>>> {"Kernel pid 
>>> terminated",application_controller,"{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}}}"}
>>> 
>>>  rabbitmq]# ps ax | grep qppid
>>>  7173 pts/2    S+     0:00 grep qppid
>>> 
>>>  rabbitmq]# ps ax | grep qpidd
>>>  4890 ?        Ssl    0:00 /usr/sbin/qpidd --data-dir /var/lib/qpidd 
>>> --daemon
>>>  7190 pts/2    S+     0:00 grep qpidd
>>> 
>>>  rabbitmq]# sudo service qpidd stop
>>> Stopping Qpid AMQP daemon:                                 [  OK  ]
>>> 
>>>  rabbitmq]# sudo chkconfig qpidd off



Archive powered by MHonArc 2.6.16.

§