XRAY: Failed to get queues for vhost 'xray_haq

XRAY: Failed to get queues for vhost 'xray_haq

Products
JFrog_Xray
Content Type
Upgrade
AuthorFullName__c
Ruilin Fan
articleNumber
000006682
FirstPublishedDate
2025-11-04T08:43:09Z
lastModifiedDate
2025-11-04
VersionNumber
1
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:
  1. Create the vhost;
    rabbitmqctl add_vhost xray_haq
  2. Grant permissions on the vhost
    rabbitmqctl set_permissions -p xray_haq guest ".*" ".*" ".*"
After that, restarting xray will be successful.