Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2011 13:58:53 GMT
From:      NIcolas Szalay <nico@rottenbytes.info>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160027: Rabbitmq daemon fails to restart half of the time
Message-ID:  <201108231358.p7NDwrUH010488@red.freebsd.org>
Resent-Message-ID: <201108231400.p7NE03nV068870@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160027
>Category:       ports
>Synopsis:       Rabbitmq daemon fails to restart half of the time
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 23 14:00:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     NIcolas Szalay
>Release:        8.1-RELEASE
>Organization:
Fotolia
>Environment:
FreeBSD vbox04.XXX 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Mar 18 14:02:33 CET 2011     root@vbox04.XXXX:/usr/obj/usr/src/sys/ZOMG  amd64

>Description:
The rabbitmq daemon (installed from ports) fails to restart half of the time. 


>How-To-Repeat:
vbox04# /usr/local/etc/rc.d/rabbitmq start                                                                   
Activating RabbitMQ plugins ...
0 plugins activated:

vbox04# /usr/local/etc/rc.d/rabbitmq restart
Stopping and halting node rabbit@vbox04 ...
..done.
Activating RabbitMQ plugins ...
0 plugins activated:

node with name "rabbit" already running on "vbox04"
diagnostics:
- nodes and their ports on vbox04: [{rabbit,27363},
                                    {rabbitmqprelaunch20882,25425}]
- current node: rabbitmqprelaunch20882@vbox04
- current node home dir: /var/db/rabbitmq
- current node cookie hash: VBVdVm8OLvK9ASW3FXlWOg==


>Fix:
This is because it needs a small delay between the start and the stop action.

I hacked the rc script to add a sleep at the end of the stop command, but it would be nice if the package maintainer could do this in a clean way.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108231358.p7NDwrUH010488>