upgrading rabbitmq from 3.7.7 to 3.8.8

313 views
Skip to first unread message

Rajesh Vallem

unread,
Apr 28, 2021, 2:16:54 AM4/28/21
to rabbitmq-users
Hi Team,

I am trying to upgrade rabbitmq from 3.7.7 (erlang/otp_21.1) to 3.8.8(erlang/otp_21.3.7).

But getting erlang crash error when trying to update 3.8.8. Please suggest how to solve the his crash error.

:07:14,041 [root/INFO] 17:07:14.040 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {invalid_dist_port_range,0} in context start_error
2021-04-27 17:07:14,042 [root/INFO] 17:07:14.041 [error] CRASH REPORT Process <0.157.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[nor

Crash dump is being written to: erl_crash.dump...2021-04-27 17:07:15,564 [root/INFO] {"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
done

With Regards
V Rajesh

Michal Kuratczyk

unread,
Apr 28, 2021, 5:19:33 PM4/28/21
to rabbitm...@googlegroups.com
Hi,

The important part of the error is {invalid_dist_port_range,0}. Please read https://www.rabbitmq.com/networking.html#epmd-inet-dist-port-range and check your configuration.
If you can't find the problem - please share your configuration.

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/bfe68d7d-c892-4b3b-912a-ac199a437659n%40googlegroups.com.


--
Michał
RabbitMQ team

jo...@cloudamqp.com

unread,
Apr 28, 2021, 5:23:05 PM4/28/21
to rabbitmq-users
Hi,

Start by upgrading to a compatible version of Erlang. If you go to Erlang 21.3 you can then go to RabbitMQ 3.8.8. Check out this compatibility matrix: https://www.rabbitmq.com/which-erlang.html

/Johan

Michal Kuratczyk

unread,
Apr 28, 2021, 5:30:22 PM4/28/21
to rabbitm...@googlegroups.com
Oh, I didn't notice the Erlang version - yes, definitely upgrade Erlang (upgrading RabbitMQ itself to 3.8.14 rather than 3.8.8 is also a good idea).

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.


--
Michał
RabbitMQ team

Rajesh Vallem

unread,
May 3, 2021, 6:08:23 AM5/3/21
to rabbitmq-users
Hi,

As you suggested already tried with compatible erlang version with rabbitmq but still same error.

Now am trying to upgrade 3.8.14 version with erlang 23.3 version. lets see how it works and will let you know:)

With Regards
V Rajesh

Rajesh Vallem

unread,
May 4, 2021, 12:40:17 AM5/4/21
to rabbitmq-users
Still same error after upgrading to rabbitmq 3.8.14 with erlang 23.3 version.

configuration seems correct and 3.7.7 version is working fine but whenever trying to upgrade getting error.

please suggest.

:55:15,723 [root/INFO] 13:55:15.722 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {invalid_dist_port_range,0} in context start_error
2021-05-03 13:55:15,723 [root/INFO] 13:55:15.723 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[nor

Crash dump is being written to: erl_crash.dump...2021-05-03 13:55:17,256 [root/INFO] {"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{invalid_dist_port_range,0}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
done

With Regards
Rajesh

Michal Kuratczyk

unread,
May 4, 2021, 2:45:11 AM5/4/21
to rabbitm...@googlegroups.com
Still the same error so still the same advice - {invalid_dist_port_range,0} means that your configuration (either in a file or in an environment variable) sets the distribution port to 0, which is not a valid port.

The error is thrown here - as you can see it checks if the port is below 1 or above 65535 - these are the only two conditions for this error:

This part of the code changed significantly between 3.7 and 3.8. It could be that 3.7 silently ignored invalid settings or something - I don't remember. Check the settings and variables mentioned in the docs: https://www.rabbitmq.com/networking.html#epmd-inet-dist-port-range

Best,



--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
0 new messages