Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
@biggbuddy please, do not paste a giant wall of text. Save errors and output to files and attach them to GitHub issues. The permissions on the
If uid/gid @tianon this issue can be closed or converted to a discussion. |
Beta Was this translation helpful? Give feedback.
-
The docs also have a section about this https://github.com/docker-library/docs/tree/master/rabbitmq#erlang-cookie |
Beta Was this translation helpful? Give feedback.
-
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 --privileged=true -v /mnt/ssd/docker/rabbitmq:/var/lib/rabbitmq rabbitmq:3.10-management
Get error below
`root@debian➜ rabbitmq docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 --privileged=true -v /mnt/ssd/docker/rabbitmq:/var/lib/rabbitmq rabbitmq:3.10-management
2022-09-03 06:52:12.500557+00:00 [error] <0.145.0> Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> supervisor: {local,net_sup}
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> errorContext: start_error
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> reason: {"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> [{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {auth,init,1,[{file,"auth.erl"},{line,165}]},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {proc_lib,init_p_do_apply,3,
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> [{file,"proc_lib.erl"},{line,240}]}]}
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> offender: [{pid,undefined},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {id,auth},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {mfargs,{auth,start_link,[]}},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {restart_type,permanent},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {significant,false},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {shutdown,2000},
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0> {child_type,worker}]
2022-09-03 06:52:12.513968+00:00 [error] <0.143.0>
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> crasher:
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> initial call: auth:init/1
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> pid: <0.145.0>
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> registered_name: []
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> exception error: "Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces"
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> in function auth:init_no_setcookie/0 (auth.erl, line 313)
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> in call from auth:init/1 (auth.erl, line 165)
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> in call from gen_server:init_it/2 (gen_server.erl, line 848)
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> in call from gen_server:init_it/6 (gen_server.erl, line 811)
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> ancestors: [net_sup,kernel_sup,<0.47.0>]
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> message_queue_len: 0
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> messages: []
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> links: [<0.143.0>]
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> dictionary: []
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> trap_exit: true
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> status: running
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> heap_size: 1598
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> stack_size: 28
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> reductions: 3183
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0> neighbours:
2022-09-03 06:52:12.513765+00:00 [error] <0.145.0>
BOOT FAILED
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0>
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> BOOT FAILED
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> ===========
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> Exception during startup:
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0>
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",[{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},{auth,init,1,[{file,"auth.erl"},{line,165}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_21@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0>
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> rabbit_prelaunch_dist:duplicate_node_check/1, line 80
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> rabbit_prelaunch_dist:setup/1, line 23
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> rabbit_prelaunch:do_run/0, line 115
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> rabbit_prelaunch:run_prelaunch_first_phase/0, line 32
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> supervisor:do_start_child_i/3, line 414
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> supervisor:do_start_child/2, line 400
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> supervisor:-start_children/2-fun-0-/3, line 384
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0> supervisor:children_map/4, line 1250
2022-09-03 06:52:12.532743+00:00 [error] <0.131.0>
Exception during startup:
error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",[{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},{auth,init,1,[{file,"auth.erl"},{line,165}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_21@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> supervisor: {local,rabbit_prelaunch_sup}
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> errorContext: start_error
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> reason: {badmatch,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {error,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {{shutdown,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {failed_to_start_child,auth,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [{auth,init_no_setcookie,0,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [{file,"auth.erl"},{line,313}]},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {auth,init,1,[{file,"auth.erl"},{line,165}]},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {gen_server,init_it,2,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [{file,"gen_server.erl"},{line,848}]},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {gen_server,init_it,6,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [{file,"gen_server.erl"},{line,811}]},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {proc_lib,init_p_do_apply,3,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [{file,"proc_lib.erl"},{line,240}]}]}}},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {child,undefined,net_sup_dynamic,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {erl_distribution,start_link,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [#{clean_halt => false,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> name => rabbit_prelaunch_21@localhost,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> name_domain => shortnames,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> net_tickintensity => 4,net_ticktime => 60,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> supervisor => net_sup_dynamic}]},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> permanent,false,1000,supervisor,
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> [erl_distribution]}}}}
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> offender: [{pid,undefined},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {id,prelaunch},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {mfargs,{rabbit_prelaunch,run_prelaunch_first_phase,[]}},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {restart_type,transient},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {significant,false},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {shutdown,5000},
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0> {child_type,worker}]
2022-09-03 06:52:13.543668+00:00 [error] <0.131.0>
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> crasher:
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> initial call: application_master:init/4
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> pid: <0.129.0>
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> registered_name: []
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> exception exit: {{shutdown,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {failed_to_start_child,prelaunch,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {badmatch,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {error,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {{shutdown,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {failed_to_start_child,auth,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [{auth,init_no_setcookie,0,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [{file,"auth.erl"},{line,313}]},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {auth,init,1,[{file,"auth.erl"},{line,165}]},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {gen_server,init_it,2,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [{file,"gen_server.erl"},{line,848}]},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {gen_server,init_it,6,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [{file,"gen_server.erl"},{line,811}]},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {proc_lib,init_p_do_apply,3,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [{file,"proc_lib.erl"},{line,240}]}]}}},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {child,undefined,net_sup_dynamic,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {erl_distribution,start_link,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [#{clean_halt => false,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> name => rabbit_prelaunch_21@localhost,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> name_domain => shortnames,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> net_tickintensity => 4,net_ticktime => 60,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> supervisor => net_sup_dynamic}]},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> permanent,false,1000,supervisor,
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> [erl_distribution]}}}}}},
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> {rabbit_prelaunch_app,start,[normal,[]]}}
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> in function application_master:init/4 (application_master.erl, line 142)
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> ancestors: [<0.128.0>]
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> message_queue_len: 1
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> messages: [{'EXIT',<0.130.0>,normal}]
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> links: [<0.128.0>,<0.44.0>]
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> dictionary: []
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> trap_exit: true
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> status: running
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> heap_size: 610
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> stack_size: 28
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> reductions: 191
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0> neighbours:
2022-09-03 06:52:13.544704+00:00 [error] <0.129.0>
2022-09-03 06:52:13.545608+00:00 [notice] <0.44.0> Application rabbitmq_prelaunch exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",[{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},{auth,init,1,[{file,"auth.erl"},{line,165}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_21@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",[{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},{auth,init,1,[{file,"auth.erl"},{line,165}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_21@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Failed to create cookie file '/var/lib/rabbitmq/.erlang.cookie': eacces",[{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},{auth,init,1,[{file,"auth.erl"},{line,165}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,848}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_21@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}})
Crash dump is being written to: erl_crash.dump..`
Beta Was this translation helpful? Give feedback.
All reactions