Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rabbitmq channel error on connection

I have working srv0 with Application normally connected to rabbitmq

I've cloned srv0 to srv1 just ip chanded via customization(for test purposes)

Now Client application on srv1 can't connect to rabbit(Catalina.out):

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'wrs-checklist-delete' in vhost '/', class-id=50, method-id=10)

/var/log/rabbitmq/*.log answers

=ERROR REPORT==== 24-Nov-2016::17:54:19 === Channel error on connection <0.344.0> (127.0.0.1:16899 -> 127.0.0.1:5672, vhost: '/', user: 'guest'), channel 1: {amqp_error,not_found,"no queue 'wrs-checklist-delete' in vhost '/'", 'queue.declare'}

checked:

  • $HOSTNAME return host of srv1

Where should I start to realize the problem?

like image 505
Riorita Avatar asked Dec 09 '25 14:12

Riorita


1 Answers

I did't have queues, ./rabbitmqadmin list queues returned ~connect error

I've stopped rabbit-server and deleted /var/lib/rabbitmq/mnesia

Then started rabbit-server and it recreated /var/lib/rabbitmq/mnesia

after that created queues: ./rabbitmqadmin declare exchange --vhost=/ name=queuename -create type=direct ./rabbitmqadmin declare queue --vhost=/ name= ./rabbitmqadmin --vhost=/ declare binding source="queuename" destination_type="queue" destination="queuename"

and thats OK now

like image 119
Riorita Avatar answered Dec 11 '25 21:12

Riorita



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!