[rabbitmq-discuss] Problem running rabbit broker

Edwin Fine rabbitmq-discuss_efine at usa.net
Sun Jun 1 17:14:27 BST 2008


Please see my last email.


On Sun, Jun 1, 2008 at 12:12 PM, lahiru gunathilake <glahiru at gmail.com>
wrote:

> hi Edwin,
>
> On Sun, Jun 1, 2008 at 9:26 PM, Edwin Fine <rabbitmq-discuss_efine at usa.net>
> wrote:
>
>> Well, I think the error is pretty clear. You didn't ensure the
>> /var/lib/rabbitmq directory and its subdirectories are writable by whichever
>> user actually ran the rabbit broker:
>>
>> /rabbitmq-server: 47: *cannot create /var/log/rabbitmq/rabbit.log**.bak: Permission
>> denied*
>> {"init terminating in do_boot",{{nocatch,{error, *
>> {cannot_log_to_file,"/var/log/rabbitmq/rabbit.log",eacces}*
>> }},[{init,start_it,1},{init,start_em,1}]}}
>>
> but why it give a core dump when I run it as a super user :-(
>
> lahiru
>
>>
>> When you create directories as root, ensure that you set their mode
>> appropriately so they are usable by non-root users. What I did to avoid this
>> issue is as follows:
>>
>>    - Created a user rabbitmq, in a group rabbitmq
>>    - Made all related directories to be owned by this user/group, and rwx
>>    by the user/group
>>    - Gave myself membership of the rabbitmq group
>>
>> e.g.
>>
>> # chown rabbitmq:rabbitmq /var/log/rabbitmq
>> # chown rabbitmq:rabbitmq /var/lib/rabbitmq
>> # chmod -R ug+rwx /var/log/rabbitmq
>> # chmod -R ug+rwx /var/lib/rabbitmq
>> # usermod -G rabbitmq iahiru
>>
>>
>>
>> On Sun, Jun 1, 2008 at 11:43 AM, lahiru gunathilake <glahiru at gmail.com>
>> wrote:
>>
>>> hi Edwin,
>>>
>>> I'm sorry I forgot to paste the error :-(
>>>
>>> On Sun, Jun 1, 2008 at 8:59 PM, Edwin Fine <emofine at gmail.com> wrote:
>>>
>>>> RabbitMQ will create the database files itself; you don't need to do
>>>> anything besides ensure the directory is there with the appropriate
>>>> privileges (i.e. it is writable for the process that starts RabbitMQ). More
>>>> specifically, ensure that /var/lib/rabbitmq and all its subdirectories are
>>>> writable by the process that starts RabbitMQ.
>>>>
>>>> However, you need to post more information to get effective help. Saying
>>>> you got "this error" without posting the error message itself is not going
>>>> to yield useful responses from the mailing list.
>>>>
>>>> Information you should post includes:Erlang (ASYNC_THREADS) (BEAM)
>>>> emulator version 5.5.5
>>>>
>>>>
>>>>    - How did you start the broker (exact command line)? by running the
>>>>    script in sbin/rabbitmq-server
>>>>    - Which operating system and version of Erlang are you using? I'm
>>>>    using Ubunut 8.04  and Erlang (ASYNC_THREADS) (BEAM) emulator version 5.5.5
>>>>
>>>>    - What is in the rabbit logs (on Linux, /var/log/rabbitmq/rabbit.log
>>>>    and rabbit-sasl.log)?
>>>>
>>>>  First I got this error
>>> ===================================================================
>>>  ./rabbitmq-server: 47: cannot create /var/log/rabbitmq/rabbit.log.bak:
>>> Permission denied
>>> {"init terminating in
>>> do_boot",{{nocatch,{error,{cannot_log_to_file,"/var/log/rabbitmq/rabbit.log",eacces}}},[{init,start_it,1},{init,start_em,1}]}}
>>> init terminating in do_boot ()
>>>
>>>
>>>
>>> Then I created a directory in /var/log/rabbitmq/ and ran the script as a
>>> super user and then this error came
>>> ==================================================================
>>> {"init terminating in
>>> do_boot",{undef,[{mnesia,system_info,[directory]},{rabbit_mnesia,ensure_mnesia_dir,0},{rabbit,start,0},{init,start_it,1},{init,start_em,1}]}}
>>>
>>> Crash dump was written to: erl_crash.dump
>>> init terminating in do_boot ()
>>> ==================================================================
>>>  And I checked the log file and there were three logs but empty logs no
>>> error messages at all.
>>>
>>>>
>>>>
>>>>    - Did you faithfully follow every step of the RabbitMQ installation
>>>>    procedure? yes I think so :-)
>>>>
>>>>
>>> Thanks
>>> Lahiru
>>>
>>>> Take a look at http://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>for more ideas.
>>>>
>>>>
>>>> On Sun, Jun 1, 2008 at 11:11 AM, lahiru gunathilake <glahiru at gmail.com>
>>>> wrote:
>>>>
>>>>> hi devs,
>>>>>
>>>>> I downloaded tarball of rabbit server and follow the installation
>>>>> guide. I've created a directory for MNESIA_BASE in /var/lib/rabbitmq/mnesia/
>>>>> and left other default.
>>>>> But once I try to start the broker it gives me this error, and as a new
>>>>> user to RabbitMQ I have no idea about what Mnesia database is. In the
>>>>> installation guide it tells like this
>>>>> Defaults to /var/lib/rabbitmq/mnesia. Set this to the directory where
>>>>> Mnesia database files should be placed.
>>>>>
>>>>> But there's no instruction of placing database files in to that
>>>>> location. Do we need that to start the erlang broker ?
>>>>>
>>>>> can any body help me to start the broker and start playing with
>>>>> RabbitMQ.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Regards
>>>>> lahiru
>>>>>
>>>>> --
>>>>> East or West
>>>>> Mahindians are the
>>>>> Best... !
>>>>> _______________________________________________
>>>>> rabbitmq-discuss mailing list
>>>>> rabbitmq-discuss at lists.rabbitmq.com
>>>>> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> East or West
>>> Mahindians are the
>>> Best... !
>>>
>>
>>
>
>
> --
> East or West
> Mahindians are the
> Best... !
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080601/906490fc/attachment.htm 


More information about the rabbitmq-discuss mailing list