Ah - a typo. What I should have written is<br><br># chown <b>-R </b>rabbitmq:rabbitmq /var/log/rabbitmq<br># chown <b>-R</b> rabbitmq:rabbitmq /var/lib/rabbitmq<br><br>Another clue (which I missed on the first reading of your reply) is:<br>
<br>
{"init terminating in do_boot",{undef,[{mnesia ,system_info,[directory]},{<b>rabbit_mnesia,ensure_mnesia_dir,0</b>},{rabbit,start,0},{init,start_it,1},{init,start_em,1}]}}<br><div><br></div>Looks as if the Mnesia directory was either not created or was created with the wrong ownership/permissions.<br>
If all else fails, my recommendations in your case are to rm -rf /var/lib/rabbitmq, re-create it with the proper permissions as mentioned in my previous email, ensure any other Rabbit directories have the right permissions, and start the broker again.<br>
<br><div class="gmail_quote">On Sun, Jun 1, 2008 at 11:56 AM, Edwin Fine <<a href="mailto:rabbitmq-discuss_efine@usa.net">rabbitmq-discuss_efine@usa.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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:<div class="Ih2E3d"><br><br>/rabbitmq-server: 47: <b>cannot create /var/log/rabbitmq/rabbit.log</b><b>.bak: <span style="color: rgb(255, 0, 0);">Permission denied</span></b><br>
{"init terminating in do_boot",{{nocatch,{error, <b style="color: rgb(255, 0, 0);">{cannot_log_to_file,"/var/log/rabbitmq/rabbit.log",eacces}</b>}},[{init,start_it,1},{init,start_em,1}]}}<br><br></div>
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:<br>
<ul><li>Created a user rabbitmq, in a group rabbitmq<br></li><li>Made all related directories to be owned by this user/group, and rwx by the user/group<br></li><li>Gave myself membership of the rabbitmq group<br></li></ul>
e.g.<br><br># chown rabbitmq:rabbitmq /var/log/rabbitmq<br># chown rabbitmq:rabbitmq /var/lib/rabbitmq<br>
# chmod -R ug+rwx /var/log/rabbitmq<br>
# chmod -R ug+rwx /var/lib/rabbitmq<br>
# usermod -G rabbitmq iahiru<div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Sun, Jun 1, 2008 at 11:43 AM, lahiru gunathilake <<a href="mailto:glahiru@gmail.com" target="_blank">glahiru@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi Edwin,<br><br>I'm sorry I forgot to paste the error :-(<br><br><div class="gmail_quote"><div>On Sun, Jun 1, 2008 at 8:59 PM, Edwin Fine <<a href="mailto:emofine@gmail.com" target="_blank">emofine@gmail.com</a>> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
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.<br>
<br>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.<br><br></div>
Information you should post includes:Erlang (ASYNC_THREADS) (BEAM) emulator version 5.5.5<br>
<br>
<ul><li>How did you start the broker (exact command line)? by running the script in sbin/rabbitmq-server<br></li><li>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<br>
<br></li><div><li>What is in the rabbit logs (on Linux, /var/log/rabbitmq/rabbit.log and rabbit-sasl.log)?</li></div></ul></blockquote><div> First I got this error<br>===================================================================<br>
./rabbitmq-server: 47: cannot create /var/log/rabbitmq/rabbit.log.bak: Permission denied<br>{"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}]}}<br>
init terminating in do_boot ()<br><br><br><br>Then I created a directory in /var/log/rabbitmq/ and ran the script as a super user and then this error came <br>==================================================================<br>
{"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}]}}<br><br>Crash dump was written to: erl_crash.dump<br>
init terminating in do_boot ()<br>==================================================================<br></div><div> And I checked the log file and there were three logs but empty logs no error messages at all.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><ul><li>Did you faithfully follow every step of the RabbitMQ installation procedure? yes I think so :-)</li></ul></blockquote><div><br>Thanks <br><font color="#888888">Lahiru <br></font></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Take a look at <a href="http://www.catb.org/%7Eesr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a> for more ideas.<br>
<br><br><div class="gmail_quote"><div><div></div><div>On Sun, Jun 1, 2008 at 11:11 AM, lahiru gunathilake <<a href="mailto:glahiru@gmail.com" target="_blank">glahiru@gmail.com</a>> wrote:<br></div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
hi devs,<br><br>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.<br>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<br>
Defaults to
                 <code>/var/lib/rabbitmq/mnesia</code>. Set this to
                 the directory where Mnesia database files should be
                 placed.
                <br><br>But there's no instruction of placing database files in to that location. Do we need that to start the erlang broker ?<br><br>can any body help me to start the broker and start playing with RabbitMQ.<br><br>
Thanks in advance<br><br>Regards<br>lahiru<br clear="all"><font color="#888888"><code></code><br>-- <br>East or West <br>Mahindians are the <br>Best... !
</font><br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br>
</blockquote></div></div><div><div></div><div><br><br clear="all"><br>-- <br>East or West <br>Mahindians are the <br>Best... !
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>