emqx集群恢复

WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
WARNING: NOTE: Use the same cookie for all nodes in the cluster.
EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual
EMQX_LOG__FILE_HANDLERS__DEFAULT__ENABLE [log.file_handlers.default.enable]: false
EMQX_LOG__CONSOLE_HANDLER__ENABLE [log.console_handler.enable]: true
EMQX_NODE__NAME [node.name]: emqx@172.16.7.5
2023-12-08T09:13:52.997495+08:00 [warning] mria_mnesia: still waiting for table(s): [‘$mria_rlog_sync’]
2023-12-08T09:13:52.997997+08:00 [warning] Table ‘$mria_rlog_sync’ is waiting for one of the nodes: [‘emqx@172.16.7.1’, ‘emqx@172.16.7.3’]

emqx@172.16.7.1’, ‘emqx@172.16.7.3’ 这两个节点连不上了,需要先启动这两个节点,当前节点才能启动。

  • 如果这两个节点还在,你检查一下为什么他们没起来,节点之间网络有没有问题;
  • 如果你确定这两个节点被删除了,不需要了,你可以:
    • 你再当前节点上执行 emqx_cluster_rescue force-load
    • 或者删除当前节点上所有数据(data/mnesia/*) 然后重启当前 emqx 节点