以下内容无教程之意,仅记录遇见的问题。
事件一:运行数月的rabbitmq中间件服务宕机,web管理页面无法访问,错误日志如下:
2021-12-26 15:03:40.115 [error] emulator Discarding message {'$gen_cast',{force_event_refresh,#Ref<0.2997798669.3727687681.95823>}} from <0.273.0> to <0.986.0> in an old incarnation (1640526359) of this node (1640531016)
2021-12-26 15:03:40.115 [error] emulator Discarding message {'$gen_cast',{force_event_refresh,#Ref<0.2997798669.3727687681.95823>}} from <0.273.0> to <0.989.0> in an old incarnation (1640526359) of this node (1640531016)
2021-12-26 15:03:40.118 [info] <0.512.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@a19aa55218b6/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists
2021-12-26 15:03:40.133 [info] <0.512.0> Starting message stores for vhost '/'
2021-12-26 15:03:40.134 [info] <0.516.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_transient": using rabbit_msg_store_ets_index to provide index
2021-12-26 15:03:40.140 [info] <0.512.0> Started message store of type transient for vhost '/'
2021-12-26 15:03:40.140 [info] <0.520.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": using rabbit_msg_store_ets_index to provide index
2021-12-26 15:03:40.141 [warning] <0.520.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": rebuilding indices from scratch
解决方法:
删除/var/lib/rabbitmq/mnesia/rabbit@a19aa55218b6/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/queues 目录下文件,并重启。
参考链接:http://www.hu-rong.com/article/511
问题分析:暂时未能分析到问题原因,后续观察。