rabbimq operation queue.declare caused a channel exception not_found

問題

操作 openstackhorizon,刪除,或者新建雲主機,一直卡住,最後報錯接收消息超時,參看 rabbitmq 日誌,發現如下報錯:

=ERROR REPORT==== 29-Feb-2020::15:01:26 ===
Channel error on connection <0.21564.0> (10.0.10.15:40582 -> 10.0.10.11:5672, vhost: '/', user: 'openstack'), channel 1:
operation queue.declare caused a channel exception not_found: failed to perform operation on queue 'versioned_notifications.info' in vhost '/' due to timeout

經查詢,是隊列 versioned_notifications.info 有問題,去 rabbitmq management 頁面查看,發現該隊列的各項數據均顯示 NaN, 而正常的隊列都有數據,即使沒有消息,也會顯示爲 0

解決

根據 https://github.com/rabbitmq/rabbitmq-server/issues/1333 操作,刪除該隊列

rabbitmqctl eval 'rabbit_amqqueue:internal_delete({resource,<<"/">>,queue,<<"versioned_notifications.info">>}).'

之後再操作horizon, 問題解決,rabbitmq management 頁面也顯示正常

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章