How to resolve the error “escript: exception error: undefined function rabbitmqctl_escript:main/1”?

XRAY: How to resolve the RabbitMQ startup failure after an Xray upgrade

AuthorFullName__c
Roja R M
articleNumber
000005383
FirstPublishedDate
2022-08-25T06:37:49Z
lastModifiedDate
2025-05-15
VersionNumber
4
One of the commonly faced issues encountered with RabbitMQ post upgrade of Xray
is with the error “escript: exception error: undefined function rabbitmqctl_escript:main/1” when performing “./rabbitmqctl start_app”

This indicates that RabbitMQ is not able to start because the modules are corrupted or running with the older versions when Xray is trying to start it.

Hence in order to overcome the issue it is required to perform the below steps to upgrade the erlang package