its-a-feature / Mythic

A collaborative, multi-platform, red teaming framework
Other
3.18k stars 426 forks source link

Failed to connect to RabbitMQ, rabbitmq container crashed on start #379

Closed 7h3w4lk3r closed 2 months ago

7h3w4lk3r commented 6 months ago

rabbitmq failed to start, i get error 502 on Mythic login page. here is the rabbitmq logs:

2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                               {gen_server,init_it,2,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                [{file,"gen_server.erl"},{line,980}]},
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                               {gen_server,init_it,6,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                [{file,"gen_server.erl"},{line,935}]},
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                               {proc_lib,init_p_do_apply,3,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                [{file,"proc_lib.erl"},{line,241}]}]}}},
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                           {child,undefined,net_sup_dynamic,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                            {erl_distribution,start_link,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                             [#{name => rabbit_prelaunch_17@localhost,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                supervisor => net_sup_dynamic,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                net_tickintensity => 4,net_ticktime => 60,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                name_domain => shortnames,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                                clean_halt => false}]},
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                            permanent,false,1000,supervisor,
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                            [erl_distribution]}}}}}},
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>                      {rabbit_prelaunch_app,start,[normal,[]]}}
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>       in function  application_master:init/4 (application_master.erl, line 142)
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     ancestors: [<0.133.0>]
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     message_queue_len: 1
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     messages: [{'EXIT',<0.135.0>,normal}]
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     links: [<0.133.0>,<0.44.0>]
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     dictionary: []
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     trap_exit: true
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     status: running
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     heap_size: 987
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     stack_size: 28
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>     reductions: 248
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0>   neighbours:
2024-03-29 17:28:22.395141+00:00 [error] <0.134.0> 
2024-03-29 17:28:22.395585+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,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{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,980}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_17@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},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,{\"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only\",[{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,980}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_17@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},permanent,false,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}}")

Crash dump is being written to: erl_crash.dump...done
[+] updated config, echoing it out
mqtt.allow_anonymous = false
log.file = false
log.default.level = error
log.exchange = false
log.connection.level = error
log.channel.level = critical
log.upgrade.level = none
log.federation.level = none
log.mirroring.level = none
log.queue.level = critical

default_user = mythic_user
default_pass = Ph4TV6BPXR5nKuX9CKLPXCaLVtKf1A
default_vhost = mythic_vhost
listeners.tcp.default = 5672
2024-03-29 17:28:38.446629+00:00 [error] <0.152.0> Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>   crasher:
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     initial call: auth:init/1
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     pid: <0.152.0>
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     registered_name: []
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     exception error: "Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only"
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>       in function  auth:init_no_setcookie/0 (auth.erl, line 313)
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>       in call from auth:init/1 (auth.erl, line 165)
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>       in call from gen_server:init_it/2 (gen_server.erl, line 980)
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>       in call from gen_server:init_it/6 (gen_server.erl, line 935)
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     ancestors: [net_sup,kernel_sup,<0.47.0>]
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     message_queue_len: 0
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     messages: []
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     links: [<0.150.0>]
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     dictionary: []
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     trap_exit: true
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     status: running
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     heap_size: 987
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     stack_size: 28
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>     reductions: 2293
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0>   neighbours:
2024-03-29 17:28:38.454134+00:00 [error] <0.152.0> 
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>     supervisor: {local,net_sup}
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>     errorContext: start_error
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>     reason: {"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>              [{auth,init_no_setcookie,0,[{file,"auth.erl"},{line,313}]},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>               {auth,init,1,[{file,"auth.erl"},{line,165}]},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>               {gen_server,init_it,2,[{file,"gen_server.erl"},{line,980}]},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>               {gen_server,init_it,6,[{file,"gen_server.erl"},{line,935}]},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>               {proc_lib,init_p_do_apply,3,
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                         [{file,"proc_lib.erl"},{line,241}]}]}
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>     offender: [{pid,undefined},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {id,auth},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {mfargs,{auth,start_link,[]}},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {restart_type,permanent},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {significant,false},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {shutdown,2000},
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0>                {child_type,worker}]
2024-03-29 17:28:38.456585+00:00 [error] <0.150.0> 

BOOT FAILED
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> 
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> BOOT FAILED
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> ===========
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> Exception during startup:
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> 
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{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,980}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_16@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},permanent,false,1000,supervisor,[erl_distribution]}}}}
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> 
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     rabbit_prelaunch_dist:duplicate_node_check/1, line 80
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     rabbit_prelaunch_dist:setup/1, line 23
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     rabbit_prelaunch:do_run/0, line 115
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     rabbit_prelaunch:run_prelaunch_first_phase/0, line 32
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     supervisor:do_start_child_i/3, line 420
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     supervisor:do_start_child/2, line 406
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     supervisor:-start_children/2-fun-0-/3, line 390
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0>     supervisor:children_map/4, line 1258
2024-03-29 17:28:38.457698+00:00 [error] <0.136.0> 
===========
Exception during startup:

error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{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,980}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_16@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},permanent,false,1000,supervisor,[erl_distribution]}}}}

    rabbit_prelaunch_dist:duplicate_node_check/1, line 80
    rabbit_prelaunch_dist:setup/1, line 23
    rabbit_prelaunch:do_run/0, line 115
    rabbit_prelaunch:run_prelaunch_first_phase/0, line 32
    supervisor:do_start_child_i/3, line 420
    supervisor:do_start_child/2, line 406
    supervisor:-start_children/2-fun-0-/3, line 390
    supervisor:children_map/4, line 1258

2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>     supervisor: {local,rabbit_prelaunch_sup}
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>     errorContext: start_error
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>     reason: {badmatch,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                 {error,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                     {{shutdown,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                          {failed_to_start_child,auth,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                              {"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                               [{auth,init_no_setcookie,0,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                    [{file,"auth.erl"},{line,313}]},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                {auth,init,1,[{file,"auth.erl"},{line,165}]},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                {gen_server,init_it,2,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                    [{file,"gen_server.erl"},{line,980}]},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                {gen_server,init_it,6,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                    [{file,"gen_server.erl"},{line,935}]},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                {proc_lib,init_p_do_apply,3,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                    [{file,"proc_lib.erl"},{line,241}]}]}}},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                      {child,undefined,net_sup_dynamic,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                          {erl_distribution,start_link,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                              [#{name => rabbit_prelaunch_16@localhost,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                 supervisor => net_sup_dynamic,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                 net_tickintensity => 4,net_ticktime => 60,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                 name_domain => shortnames,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                                 clean_halt => false}]},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                          permanent,false,1000,supervisor,
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                          [erl_distribution]}}}}
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>     offender: [{pid,undefined},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {id,prelaunch},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {mfargs,{rabbit_prelaunch,run_prelaunch_first_phase,[]}},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {restart_type,transient},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {significant,false},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {shutdown,5000},
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0>                {child_type,worker}]
2024-03-29 17:28:39.458374+00:00 [error] <0.136.0> 
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>   crasher:
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     initial call: application_master:init/4
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     pid: <0.134.0>
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     registered_name: []
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     exception exit: {{shutdown,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                       {failed_to_start_child,prelaunch,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                        {badmatch,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                         {error,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                          {{shutdown,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                            {failed_to_start_child,auth,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                             {"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                              [{auth,init_no_setcookie,0,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                [{file,"auth.erl"},{line,313}]},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                               {auth,init,1,[{file,"auth.erl"},{line,165}]},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                               {gen_server,init_it,2,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                [{file,"gen_server.erl"},{line,980}]},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                               {gen_server,init_it,6,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                [{file,"gen_server.erl"},{line,935}]},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                               {proc_lib,init_p_do_apply,3,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                [{file,"proc_lib.erl"},{line,241}]}]}}},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                           {child,undefined,net_sup_dynamic,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                            {erl_distribution,start_link,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                             [#{name => rabbit_prelaunch_16@localhost,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                supervisor => net_sup_dynamic,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                net_tickintensity => 4,net_ticktime => 60,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                name_domain => shortnames,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                                clean_halt => false}]},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                            permanent,false,1000,supervisor,
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                            [erl_distribution]}}}}}},
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>                      {rabbit_prelaunch_app,start,[normal,[]]}}
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>       in function  application_master:init/4 (application_master.erl, line 142)
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     ancestors: [<0.133.0>]
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     message_queue_len: 1
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     messages: [{'EXIT',<0.135.0>,normal}]
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     links: [<0.133.0>,<0.44.0>]
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     dictionary: []
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     trap_exit: true
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     status: running
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     heap_size: 987
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     stack_size: 28
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>     reductions: 248
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0>   neighbours:
2024-03-29 17:28:39.458714+00:00 [error] <0.134.0> 
2024-03-29 17:28:39.459202+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,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[{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,980}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_16@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},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,{\"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only\",[{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,980}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,241}]}]}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{name => rabbit_prelaunch_16@localhost,supervisor => net_sup_dynamic,net_tickintensity => 4,net_ticktime => 60,name_domain => shortnames,clean_halt => false}]},permanent,false,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}}")

Crash dump is being written to: erl_crash.dump...done

and mythic-cli status logs:

No stopped containers
Creating mythic_postgres      ... done
Creating mythic_react         ... done
Creating mythic_rabbitmq      ... done
Creating mythic_documentation ... done
Creating mythic_server        ... done
Creating mythic_graphql       ... done
Creating mythic_jupyter       ... done
Creating mythic_nginx         ... done
2024/03/29 20:57:37 [*] Waiting for RabbitMQ to come online (Retry Count = 10)
2024/03/29 20:57:37 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 1/10
2024/03/29 20:57:37 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:57:47 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 2/10
2024/03/29 20:57:47 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:57:57 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 3/10
2024/03/29 20:57:57 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:07 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 4/10
2024/03/29 20:58:07 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:17 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 5/10
2024/03/29 20:58:17 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:27 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 6/10
2024/03/29 20:58:27 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:37 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 7/10
2024/03/29 20:58:37 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:47 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 8/10
2024/03/29 20:58:47 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:58:57 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 9/10
2024/03/29 20:58:57 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:59:07 [*] Attempting to connect to RabbitMQ at 127.0.0.1:5672, attempt 10/10
2024/03/29 20:59:07 [-] Failed to connect to RabbitMQ, retrying in 10s
2024/03/29 20:59:17 [-] Failed to make a connection to the RabbitMQ server: <nil>
2024/03/29 20:59:17     The mythic_rabbitmq service is running, but mythic-cli is unable to connect
2024/03/29 20:59:17 [*] Waiting for Mythic Server and Nginx to come online (Retry Count = 10)
2024/03/29 20:59:17 [*] Attempting to connect to Mythic UI at https://127.0.0.1:7443, attempt 1/10
2024/03/29 20:59:17 [+] Successfully connected to Mythic at https://127.0.0.1:7443

MYTHIC SERVICE      WEB ADDRESS                         BOUND LOCALLY
Nginx (Mythic Web UI)   https://127.0.0.1:7443                       false
Mythic Backend Server   http://127.0.0.1:17443                       true
Hasura GraphQL Console  http://127.0.0.1:8080                        true
Jupyter Console     http://127.0.0.1:8888                        true
Internal Documentation  http://127.0.0.1:8090                        true

ADDITIONAL SERVICES ADDRESS                             BOUND LOCALLY
Postgres Database   postgresql://mythic_user:password@127.0.0.1:5432/mythic_db   true
React Server        http://127.0.0.1:3000/new                    true
RabbitMQ        amqp://mythic_user:password@127.0.0.1:5672           false

Mythic Main Services
CONTAINER NAME      STATE       STATUS                  MOUNT   PORTS
mythic_documentation    running     Up About a minute (healthy)     local   8090/tcp -> 127.0.0.1:8090
mythic_graphql      running     Up 9 seconds (health: starting)     N/A 8080/tcp -> 127.0.0.1:8080
mythic_jupyter      running     Up About a minute (healthy)     local   8888/tcp -> 127.0.0.1:8888
mythic_nginx        running     Up About a minute (healthy)     local   7443/tcp -> :::7443, 7443
mythic_postgres     restarting  Restarting (1) 43 seconds ago       local   
mythic_rabbitmq     restarting  Restarting (0) 6 seconds ago        local   
mythic_react        running     Up About a minute (healthy)     local   3000/tcp -> 127.0.0.1:3000
mythic_server       running     Up About a minute (health: starting)    local   7000/tcp -> :::7000, 7001/tcp -> :::7001, 7002/tcp -> :::7002, 7003/tcp -> :::7003, 7004/tcp -> :::7004, 7005/tcp -> :::7005, 7006/tcp -> :::7006, 7007/tcp -> :::7007, 7008/tcp -> :::7008, 7009/tcp -> :::7009, 7010/tcp -> :::7010, 17443/tcp -> 127.0.0.1:17443, 17444/tcp -> 127.0.0.1:17444, 7000, 7001, 7002, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010

Installed Services
CONTAINER NAME  STATE   STATUS  MOUNT

2024/03/29 20:59:17 [*] There are no services installed
2024/03/29 20:59:17     To install one, use "sudo ./mythic-cli install github <url>"
2024/03/29 20:59:17     Agents can be found at: https://github.com/MythicAgents
2024/03/29 20:59:17     C2 Profiles can be found at: https://github.com/MythicC2Profiles
2024/03/29 20:59:17 
[*] MythicServer is currently listening on localhost. If you have a remote Service, they will be unable to connect (i.e. one running on another server)
2024/03/29 20:59:17 
    Use 'sudo ./mythic-cli config set mythic_server_bind_localhost_only false' and restart mythic ('sudo ./mythic-cli restart') to change this
2024/03/29 20:59:17 [*] If you are using a remote PayloadType or C2Profile, they will need certain environment variables to properly connect to Mythic.
2024/03/29 20:59:17     Use 'sudo ./mythic-cli config service' for configs for these services.
its-a-feature commented 6 months ago

error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",

I'm seeing this in the logs. It looks like it's some sort of issue with the filesystem permissions. Can you provide a bit more information about the host you're installing Mythic on and how you did the setup?

7h3w4lk3r commented 6 months ago

error:{badmatch,{error,{{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",

I'm seeing this in the logs. It looks like it's some sort of issue with the filesystem permissions. Can you provide a bit more information about the host you're installing Mythic on and how you did the setup?

I installed it on Kali Linux as root.

its-a-feature commented 4 months ago

Do you still have this issue? I was never able to reproduce this locally

its-a-feature commented 2 months ago

If you're still having this issue, please command and we can open it again. I just can't seem to reproduce this