[rabbitmq-discuss] trouble starting 3.3.0 on FreeBSD 9.2
Dan Langille
dvl at biglist.com
Thu Apr 10 17:35:07 BST 2014
On Apr 10, 2014, at 12:26 PM, Simon MacMullen <simon at rabbitmq.com> wrote:
> On 10/04/14 17:22, Dan Langille wrote:
>> {{{badmatch,
>> {error,
>> {"/var/db/rabbitmq/mnesia/bunny at sally/msg_stor...",
>> eacces}}}
>
> eacces -> the server did not have permission to read (or write?) the Mnesia directory.
$ ls -ld /var/db/rabbitmq \
> /var/db/rabbitmq/mnesia \
> /var/db/rabbitmq/mnesia/bunny\@sally \
> /var/db/rabbitmq/mnesia/bunny\@sally/*
drwxr-xr-x 3 rabbitmq rabbitmq 4 Apr 9 20:40 /var/db/rabbitmq
drwxr-xr-x 6 rabbitmq rabbitmq 8 Apr 10 16:24 /var/db/rabbitmq/mnesia
drwxr-xr-x 4 rabbitmq rabbitmq 19 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally
-rw-r--r-- 1 rabbitmq rabbitmq 149 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/DECISION_TAB.LOG
-rw-r--r-- 1 rabbitmq rabbitmq 144 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/LATEST.LOG
-rw-r--r-- 1 rabbitmq rabbitmq 31 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/cluster_nodes.config
drwxr-xr-x 2 rabbitmq rabbitmq 3 Apr 10 15:32 /var/db/rabbitmq/mnesia/bunny at sally/msg_store_persistent
drwxr-xr-x 2 root rabbitmq 3 Apr 10 15:32 /var/db/rabbitmq/mnesia/bunny at sally/msg_store_transient
-rw-r--r-- 1 rabbitmq rabbitmq 15 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/nodes_running_at_shutdown
-rw-r--r-- 1 rabbitmq rabbitmq 1110 Apr 10 15:30 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_durable_exchange.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 8 Apr 10 14:59 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_durable_queue.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 8 Apr 10 14:59 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_durable_route.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 168 Apr 10 15:30 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_runtime_parameters.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 4 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_serial
-rw-r--r-- 1 rabbitmq rabbitmq 231 Apr 10 15:30 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_user.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 182 Apr 10 15:30 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_user_permission.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 123 Apr 10 15:30 /var/db/rabbitmq/mnesia/bunny at sally/rabbit_vhost.DCD
-rw-r--r-- 1 rabbitmq rabbitmq 5464 Apr 10 16:24 /var/db/rabbitmq/mnesia/bunny at sally/recovery.dets
-rw-r--r-- 1 rabbitmq rabbitmq 19105 Apr 10 14:59 /var/db/rabbitmq/mnesia/bunny at sally/schema.DAT
-rw-r--r-- 1 rabbitmq rabbitmq 272 Apr 10 14:59 /var/db/rabbitmq/mnesia/bunny at sally/schema_version
Based on that, I foolhardily tried this:
chown rabbitmq /var/db/rabbitmq/mnesia/bunny at sally/msg_store_transient
$ sudo service rabbitmq start
Warning: PID file not written; -detached was passed.
[dvl at sally /var/db/rabbitmq/mnesia]$ ps auwx | grep rabb
rabbitmq 23212 3.8 0.3 91268 45032 ?? SJ 4:32PM 0:00.78 /usr/local/lib/erlang/erts-5.10.4/bin/beam.smp -W w -A30 -P 1048576 -- -root /usr/local/lib/erlang -progname erl -- -home /var/db/rabbitm
rabbitmq 23242 1.4 0.0 14264 1800 ?? SsJ 4:32PM 0:00.00 inet_gethost 4
rabbitmq 23243 1.4 0.0 14264 1888 ?? SJ 4:32PM 0:00.00 inet_gethost 4
dvl 23246 0.0 0.0 16312 1884 3 R+J 4:32PM 0:00.00 grep rabb
dvl 23181 0.0 0.0 9944 1568 0 S+J 4:32PM 0:00.00 xtail /var/log/rabbitmq/
That was the issue. I thank you.
> Are you using a FreeBSD port? (Is there one?)
Yes: http://www.freshports.org/net/rabbitmq/ (disclosure, that's my website)
> If so the port maintainer should look into it. If you have manually installed then... you need to make sure that path is owned by whichever user runs RabbitMQ.
I have a feeling that errant file may have been created by my own misdoings. But I'm willing to test that by trying this again on a new host. I'll report back soon.
[I apologize for the rude things I said while trying to get this working...]
—
Dan Langille
dvl at biglist.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140410/d5b8c7d6/attachment.sig>
More information about the rabbitmq-discuss
mailing list