Rabbitmq channel error on connection

我们两清 提交于 2019-12-24 01:23:49

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/40789907/rabbitmq-channel-error-on-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!