Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ Error 530 vhost not found with pika

I am trying to connect to a remote rabbitmq server. I have the correct credentials and vhost exists on the remove server, but I cannot connect. I get the error

pika.exceptions.ProbableAccessDeniedError: (530, 'NOT_ALLOWED - vhost test_vhost not found')

I have struggled with this for a while but I can't seem to get what the problem is.

like image 886
Iruku Kagika Avatar asked Nov 01 '18 14:11

Iruku Kagika


1 Answers

I figured it out. On my local machine I am using rabbitmq version 3.5.7 while on the remote rabbitmq is on version 3.7.0

I had been declaring my vhost without a slash '/' on 3.5.2 and it has been working well but I realized that adding a slash before declaring the vhost worked on version 3.7.0 . So now I use /test_vhost instead of just test_vhost

like image 55
Iruku Kagika Avatar answered Oct 13 '22 22:10

Iruku Kagika