问题描述
我的srv0正常运行,应用程序通常连接到Rabbitmq
I have working srv0 with Application normally connected to rabbitmq
我已经将srv0克隆到srv1中,只是通过定制进行了ip修改(出于测试目的)
I've cloned srv0 to srv1 just ip chanded via customization(for test purposes)
现在srv1上的客户端应用程序无法连接到Rabbit(Catalina.out):
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答案
/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'}
=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'}
已选中:
- $ HOSTNAME返回srv1的主机
我应该从哪里开始认识这个问题?
Where should I start to realize the problem?
推荐答案
我没有队列,./rabbitmqadmin list queues
返回了〜connect错误
I did't have queues, ./rabbitmqadmin list queues
returned ~connect error
我已经停止了Rabbit-server并删除了/var/lib/rabbitmq/mnesia
I've stopped rabbit-server and deleted /var/lib/rabbitmq/mnesia
然后启动Rabbit-server并重新创建/var/lib/rabbitmq/mnesia
Then started rabbit-server and it recreated /var/lib/rabbitmq/mnesia
在创建队列之后:./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"
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"
现在就可以了
这篇关于连接时的Rabbitmq通道错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!