I am on MAC OS X Yosemite and installed Rabbitmq 3.4.2. The install went well but I keep getting this cookie error “Error when reading /Users/myusername/.erlang.cookie: eacces” (full error is below).
The file is readable.
/Users/username/.erlang.cookie
-rw------- 1 Guest staff 20B Jan 19 00:00 .erlang.cookie
This is a fresh install using Homebrew -
http://www.rabbitmq.com/install-homebrew.html. This install is bundled with errlang so presumable need to (brew install erlang + SSL ??)
I followed steps on -
https://www.rabbitmq.com/install-homebrew.htmland
http://gordondickens.com/wordpress/2012/01/31/installing-and-configuring-rabbitmq/comment-page-1/ (This older article)
Here’s the full error and ay assistance is much appreciated.
{error_logger,{{2015,1,19},{16,39,4}},"Error when reading /Users/username/.erlang.cookie: eacces",[]}
{error_logger,{{2015,1,19},{16,39,4}},crash_report,[[{initial_call,{auth,init,['Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Error when reading /Users/username/.erlang.cookie: eacces",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,330}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.17.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{reductions,657}],[]]}
{error_logger,{{2015,1,19},{16,39,4}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{"Error when reading /Users/username/.erlang.cookie: eacces",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{offender,[{pid,undefined},{name,auth},{mfargs,{auth,start_link,[]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2015,1,19},{16,39,4}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,auth,{"Error when reading /Users/username/.erlang.cookie: eacces",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2015,1,19},{16,39,4}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Error when reading /Users/username/.erlang.cookie: eacces",
[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{reductions,150}],[]]}
{error_logger,{{2015,1,19},{16,39,4}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Error when reading /Users/username/.erlang.cookie: eacces",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{\"Error when reading /Users/username/.erlang.cookie: eacces\",[{auth,init_cookie,0,[{file,\"auth.erl\"},{line,285}]},{auth,init,1,[{file,\"auth.erl\"},{line,139}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Error when reading /Users/username/
rabbitmqctl status
Status of node rabbit@sungura ...
Error: unable to connect to node rabbit@sungura: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit@sungura]
rabbit@sungura:
* connected to epmd (port 4369) on sungura
* epmd reports: node 'rabbit' not running at all
no other nodes on sungura
* suggestion: start the node
current node details:
- node name: 'rabbitmqctl-40941@sungura'
- home dir: /var/root
- cookie hash: LasAcWpkCvxskTzZ896BjQ==
sudo rabbitmq-server - only shows the below
RabbitMQ 3.4.2. Copyright (C) 2007-2014 GoPivotal, Inc.
## ## Licensed under the MPL. See
http://www.rabbitmq.com/ ## ##
########## Logs: /usr/local/var/log/rabbitmq/rab...@sungura.log
###### ## /usr/local/var/log/rabbitmq/rab...@sungura-sasl.log
##########
Starting broker... completed with 11 plugins.
rabbitmqctl status
Status of node rabbit@sungura ...
[{pid,41177},
{running_applications,
[{rabbitmq_tracing,"RabbitMQ message logging / tracing","3.4.2"},
{rabbitmq_management_visualiser,"RabbitMQ Visualiser","3.4.2"},
{rabbitmq_management,"RabbitMQ Management Console","3.4.2"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.4.2"},
{webmachine,"webmachine","1.10.3-rmq3.4.2-gite9359c7"},
{mochiweb,"MochiMedia Web Server","2.7.0-rmq3.4.2-git680dba8"},
{rabbitmq_mqtt,"RabbitMQ MQTT Adapter","3.4.2"},
{rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","3.4.2"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.4.2"},
{rabbitmq_amqp1_0,"AMQP 1.0 support for RabbitMQ","3.4.2"},
{rabbit,"RabbitMQ","3.4.2"},
{os_mon,"CPO CXC 138 46","2.2.15"},
{inets,"INETS CXC 138 49","5.10.2"},
{mnesia,"MNESIA CXC 138 12","4.12.1"},
{amqp_client,"RabbitMQ AMQP Client","3.4.2"},
{xmerl,"XML parser","1.3.7"},
{sasl,"SASL CXC 138 11","2.4"},
{stdlib,"ERTS CXC 138 10","2.1"},
{kernel,"ERTS CXC 138 10","3.0.1"}]},
{os,{unix,darwin}},
{erlang_version,
"Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:4:4] [async-threads:30] [hipe] [kernel-poll:true]\n"},
{memory,
[{total,42503200},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,5616},
{queue_procs,2808},
{queue_slave_procs,0},
{plugins,674576},
{other_proc,13702488},
{mnesia,61920},
{mgmt_db,138200},
{msg_index,47680},
{other_ets,1278064},
{binary,14528},
{code,20456767},
{atom,711569},
{other_system,5408984}]},
{alarms,[]},
{listeners,
[{clustering,25672,"::"},
{amqp,5672,"::"},
{stomp,61613,"::"},
{mqtt,1883,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6251945984},
{disk_free_limit,50000000},
{disk_free,256883400704},
{file_descriptors,
[{total_limit,2460},
{total_used,5},
{sockets_limit,2212},
{sockets_used,3}]},
{processes,[{limit,1048576},{used,198}]},
{run_queue,0},
{uptime,400}]