emqx集群建立失败

环境

  • EMQX 版本:5.0.20
  • 操作系统版本:cent8

重现此问题的步骤

  1. 在rancher1.6中进行新建两个emqx节点

  2. 环境变量使用

  3. 项目正常起来 但是集群看不到两个节点

预期行为

两个节点的emqx集群正常run

实际行为

/14 下午12:17:22EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual

2023/4/14 下午12:17:22EMQX_LOG__FILE_HANDLERS__DEFAULT__ENABLE [log.file_handlers.default.enable]: false

2023/4/14 下午12:17:22EMQX_LOG__CONSOLE_HANDLER__ENABLE [log.console_handler.enable]: true

2023/4/14 下午12:17:22EMQX_CLUSTER__STATIC__SEEDS [cluster.static.seeds]: [<<“emqx@node1.emqx.io”>>,<<“emqx@node2.emqx.io”>>]

2023/4/14 下午12:17:22EMQX_CLUSTER__STATIC__SEEDS [cluster.static.seeds.2]: emqx@node2.emqx.io

2023/4/14 下午12:17:22EMQX_CLUSTER__STATIC__SEEDS [cluster.static.seeds.1]: emqx@node1.emqx.io

2023/4/14 下午12:17:22EMQX_CLUSTER__DISCOVERY_STRATEGY [cluster.discovery_strategy]: static

2023/4/14 下午12:17:22EMQX_NODE__NAME [node.name]: emqx@node1.emqx.io

2023/4/14 下午12:17:24Listener ssl:default on 0.0.0.0:8883 started.

2023/4/14 下午12:17:24Listener tcp:default on 0.0.0.0:1883 started.

2023/4/14 下午12:17:24Listener ws:default on 0.0.0.0:8083 started.

2023/4/14 下午12:17:24Listener wss:default on 0.0.0.0:8084 started.

2023/4/14 下午12:17:24Listener http:dashboard on :18083 started.

2023/4/14 下午12:17:24EMQX 5.0.20 is running now!

2023/4/14 下午12:17:262023-04-14T12:17:26.767576+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:17:342023-04-14T12:17:34.684703+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:17:402023-04-14T12:17:40.601384+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:17:462023-04-14T12:17:46.474084+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:17:532023-04-14T12:17:53.513082+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:17:592023-04-14T12:17:59.273324+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:042023-04-14T12:18:04.567119+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:122023-04-14T12:18:12.102883+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:182023-04-14T12:18:18.662037+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:262023-04-14T12:18:26.118044+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:322023-04-14T12:18:32.263030+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:402023-04-14T12:18:40.245141+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:472023-04-14T12:18:47.285918+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:18:532023-04-14T12:18:53.778048+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:002023-04-14T12:19:00.878034+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:082023-04-14T12:19:08.530106+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:142023-04-14T12:19:14.097059+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:202023-04-14T12:19:20.968139+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:262023-04-14T12:19:26.681874+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:322023-04-14T12:19:32.361078+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:392023-04-14T12:19:39.113011+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:462023-04-14T12:19:46.441733+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

2023/4/14 下午12:19:522023-04-14T12:19:52.983963+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [‘emqx@node2.emqx.io’]

我在构建集群的时候遇到了问题 我是按照Docker

不晓得环境变量是否有问题

好像是网络问题;现在已经换了一个别的错误了
2023/4/14 下午12:45:54EMQX 5.0.21 is running now!

2023/4/14 下午12:45:562023-04-14T12:45:56.299335+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:45:562023-04-14T12:45:56.299529+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:032023-04-14T12:46:03.616615+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:032023-04-14T12:46:03.616855+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:092023-04-14T12:46:09.411569+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:092023-04-14T12:46:09.411816+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:152023-04-14T12:46:15.943599+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:152023-04-14T12:46:15.943837+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:232023-04-14T12:46:23.682668+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:232023-04-14T12:46:23.682946+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:292023-04-14T12:46:29.497577+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:292023-04-14T12:46:29.497819+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:362023-04-14T12:46:36.855598+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:362023-04-14T12:46:36.855866+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

2023/4/14 下午12:46:422023-04-14T12:46:42.531675+08:00 [error] ** System running to use fully qualified hostnames **, ** Hostname emqx2 is illegal **

2023/4/14 下午12:46:422023-04-14T12:46:42.531958+08:00 [warning] Ekka(AutoCluster): discovered nodes outside cluster: [emqx@emqx2]

现在集群已经起来了,用的主机网络模式,直接是主机IP。

你好, 可以分享一下docker-compose吗?

什么意思