Exception occured in Application_Start(). MassTransit.RabbitMqTransport.RabbitMqConnectionException: Broker unreachable:

228 views
Skip to first unread message

Sini Venugopal

unread,
Nov 9, 2020, 9:20:25 AM11/9/20
to masstransit-discuss
Hi All,

I ahve an application which connects to rabbitMq via masstransit. Have two users created in rabbitMQ, guest and produser. AM able to login to rabbitmq console using both. But while connecting the rabbitmq from aplication via masstransit, only guest is working. The application fails for the produser. Could anyone please help?

Thanks in advance!!

Sini Venugopal
 

Chris Patterson

unread,
Nov 9, 2020, 9:49:47 AM11/9/20
to masstrans...@googlegroups.com
Without error logs, this isn't actionable. Make sure you've given the user access to the vhost in RabbitMQ.

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/8a0ba1a3-02ed-4ec9-b788-c9937985f543n%40googlegroups.com.

Sini Venugopal

unread,
Nov 9, 2020, 10:03:27 AM11/9/20
to masstrans...@googlegroups.com
Hi Chris,

I haven't configured the vhost for the application. Rabbitmq is getting connected to root directly. 
Below is the error message I received from the application.
Exception occurred in Application_Start(). MassTransit.RabbitMqTransport.RabbitMqConnectionException: Broker unreachable: rabbitmqprodmaster:5672/ ---> RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> RabbitMQ.Client.Exceptions.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
  at RabbitMQ.Client.Framing.Impl.Connection.StartAndTune()  


Thank you!

Chris Patterson

unread,
Nov 9, 2020, 12:37:20 PM11/9/20
to masstrans...@googlegroups.com
So, it seems pretty clear based upon the error message that your user credentials were refused access to the host.

Sini Venugopal

unread,
Nov 9, 2020, 10:30:11 PM11/9/20
to masstrans...@googlegroups.com
Yes, But the access is in place. When the application and rabbitmq are on the same server , the user works perfectly. Even the management console is accessible via the user. The error occurs when rabbitmq and application are on separate servers. Only guest/guest works then!

Thank you!

Sini Venugopal

unread,
Nov 10, 2020, 8:18:33 AM11/10/20
to masstrans...@googlegroups.com
Hi,

Attaching the detailed rabbitMq error log here with. 

** Last message in was check
** When Server state == {state,{erlang,#Ref<0.2052601942.2491416578.89754>},erl_epmd,"rabbit","rabbitmqmaster",25672}
** Reason for termination ==
** {enoent,[{erlang,open_port,[{spawn_executable,false},[{args,["-sname","epmd-starter-212651457","-noshell","-eval","halt()."]},exit_status,stderr_to_stdout,use_stdio]],[{file,"erlang.erl"},{line,2213}]},{rabbit_nodes_common,ensure_epmd,0,[{file,"src/rabbit_nodes_common.erl"},{line,76}]},{rabbit_epmd_monitor,check_epmd,1,[{file,"src/rabbit_epmd_monitor.erl"},{line,108}]},{rabbit_epmd_monitor,handle_info,2,[{file,"src/rabbit_epmd_monitor.erl"},{line,79}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}
2020-08-29 16:10:17.003 [error] <0.14627.3> CRASH REPORT Process rabbit_epmd_monitor with 0 neighbours crashed with reason: {enoent,[{erlang,open_port,[{spawn_executable,false},[{args,["-sname","epmd-starter-212651457","-noshell","-eval","halt()."]},exit_status,stderr_to_stdout,use_stdio]],[{file,"erlang.erl"},{line,2213}]},{rabbit_nodes_common,ensure_epmd,0,[{file,"src/rabbit_nodes_common.erl"},{line,76}]},{rabbit_epmd_monitor,check_epmd,1,[{file,"src/rabbit_epmd_monitor.erl"},{line,108}]},{rabbit_epmd_monitor,handle_info,2,[{file,"src/rabbit_epmd_monitor.erl"},{line,79}]},{gen_server,try_dispatch,4,[{file,"gen..."},...]},...]}
2020-08-29 16:10:17.003 [error] <0.371.0> Supervisor rabbit_epmd_monitor_sup had child rabbit_epmd_monitor started with rabbit_epmd_monitor:start_link() at <0.14627.3> exit with reason {enoent,[{erlang,open_port,[{spawn_executable,false},[{args,["-sname","epmd-starter-212651457","-noshell","-eval","halt()."]},exit_status,stderr_to_stdout,use_stdio]],[{file,"erlang.erl"},{line,2213}]},{rabbit_nodes_common,ensure_epmd,0,[{file,"src/rabbit_nodes_common.erl"},{line,76}]},{rabbit_epmd_monitor,check_epmd,1,[{file,"src/rabbit_epmd_monitor.erl"},{line,108}]},{rabbit_epmd_monitor,handle_info,2,[{file,"src/rabbit_epmd_monitor.erl"},{line,79}]},{gen_server,try_dispatch,4,[{file,"gen..."},...]},...]} in context child_terminated
2020-08-29 16:11:17.025 [error] <0.14631.3> ** Generic server rabbit_epmd_monitor terminating
** Last message in was check
** When Server state == {state,{erlang,#Ref<0.2052601942.2491416578.89779>},erl_epmd,"rabbit","rabbitmqmaster",25672}
** Reason for termination ==
** {enoent,[{erlang,open_port,[{spawn_executable,false},[{args,["-sname","epmd-starter-709416646","-noshell","-eval","halt()."]},exit_status,stderr_to_stdout,use_stdio]],[{file,"erlang.erl"},{line,2213}]},{rabbit_nodes_common,ensure_epmd,0,[{file,"src/rabbit_nodes_common.erl"},{line,76}]},{rabbit_epmd_monitor,check_epmd,1,[{file,"src/rabbit_epmd_monitor.erl"},{line,108}]},{rabbit_epmd_monitor,handle_info,2,[{file,"src/rabbit_epmd_monitor.erl"},{line,79}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}


Thank you!

Chris Patterson

unread,
Nov 10, 2020, 8:44:48 AM11/10/20
to masstrans...@googlegroups.com
I can't be of any further help, your issues seem to be related to RabbitMQ, not MassTransit.


Reply all
Reply to author
Forward
0 new messages