I’ve run into the following error(s) intermittently while starting or stopping RabbitMQ on my FreeBSD machine. It was rather perplexing as it seemed inconsistent.
The messages have been abbreviated for brevity.
$ sudo /usr/local/etc/rc.d/rabbitmq start
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: .. Function: read_file_info. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./standard_error.beam. Function: get_file. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./supervisor_bridge.beam. Function: get_file. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./user_sup.beam. Function: get_file. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./user.beam. Function: get_file. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./kernel_config.beam. Function: get_file. Process: code_server."}
{error_logger,{{2009,10,14},{9,8,46}},std_error,"File operation error: eacces. Target: ./queue.beam. Function: get_file. Process: code_server."}
...
=ERROR REPORT==== 14-Oct-2009::09:08:46 ===
file:path_eval([".","/var/db/rabbitmq"],".erlang"): permission denied
Starting all nodes...
Starting node rabbit@localhost...
=ERROR REPORT==== 14-Oct-2009::09:08:46 ===
File operation error: eacces. Target: ./inet_gethost_native.beam. Function: get_file. Process: code_server.
=ERROR REPORT==== 14-Oct-2009::09:08:46 ===
File operation error: eacces. Target: ./dist_util.beam. Function: get_file. Process: code_server.
=ERROR REPORT==== 14-Oct-2009::09:08:46 ===
File operation error: eacces. Target: ./proplists.beam. Function: get_file. Process: code_server.
({"init terminating in do_boot",{badarg,[{erl_prim_loader,check_file_result,3},{erl_prim_loader,check_file_result,3},{init,get_boot,1},{init,get_boot,2},{init,do_boot,3}]}}
no error logger present) error: "Error in process <0.1.0> with exit value: {badarg,[{erl_prim_loader,check_file_result,3},{erl_prim_loader,check_file_result,3},{init,get_boot,1},{init,get_boot,2},{init,do_boot,3}]}\n"
=ERROR REPORT==== 14-Oct-2009::09:08:47 ===
File operation error: eacces. Target: ./erl_scan.beam. Function: get_file. Process: code_server.
init terminating in do_boot ()
Error: {node_start_failed,normal}
Not being familiar with Erlang, or RabbitMQ for that matter, these messages seemed meaningless. Following various links on Google suggested privilege issues, others suggested running strace to help pin point the problem.
Continue reading
