Introduction
During the upgrade to xray 3.124.x, occurring the following error to cause startup failure:
2025-10-29T19:26:23.703Z ^[[33m[jfxr ]^[[0m ^[[1m^[[31m[ERROR]^[[0m [bfb00f3763d58ffd] [general_utils:28 ] [MainServer ] Critical error: exiting from Xray Program, reason: failed to get queues for vhost 'xray_haq': --- at /go/src/jfrog.com/xray/xray/backend/backend/xqueue/connector/mq_connector.go:638 (getAllQueuesDetailsForVhost) ---
Caused by: not found
It points out that the vhost “xray_hq” is not found and it is the critical error and the root cause.
Resolution
One way to resolve:
From rabbitmq server to do:
- Create the vhost;
rabbitmqctl add_vhost xray_haq
- Grant permissions on the vhost
rabbitmqctl set_permissions -p xray_haq guest ".*" ".*" ".*"
After that, restarting xray will be successful.