环境信息
- EMQ X 版本:4.3.10
- 操作系统及版本:centos7
- 其他
问题描述
配置文件及日志
2021-12-07T17:15:21.396378+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:42238 [CM] more_than_one_channel_found: [<0.19043.24>,<0.19050.24>]
2021-12-07T17:15:21.705348+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:42270 [CM] more_than_one_channel_found: [<0.19124.24>,<0.19114.24>]
2021-12-07T17:15:25.924354+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:42890 [CM] more_than_one_channel_found: [<0.19903.24>,<0.19891.24>]
2021-12-07T17:15:33.935518+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:44587 [CM] more_than_one_channel_found: [<0.21206.24>,<0.21204.24>]
2021-12-07T17:15:35.686167+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:44880 [CM] more_than_one_channel_found: [<0.21584.24>,<0.21573.24>]
2021-12-07T17:16:37.720078+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:52996 [CM] more_than_one_channel_found: [<0.28254.24>,<0.28255.24>]
2021-12-07T17:16:38.684089+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:53164 [CM] more_than_one_channel_found: [<0.28453.24>,<0.28456.24>]
2021-12-07T17:19:39.201207+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:60600 [CM] more_than_one_channel_found: [<0.2003.25>,<0.2004.25>]
2021-12-07T17:19:41.034199+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:60747 [CM] more_than_one_channel_found: [<0.2208.25>,<0.2209.25>]
2021-12-07T17:19:43.407671+08:00 [error] mqtt_client-330b518810aebe9b785ce8fd14ca9154@127.0.0.1:60976 [CM] more_than_one_channel_found: [<0.2545.25>,<0.2546.25>]
330b518810aebe9b785ce8fd14ca9154
这台设备的状态不对,一直在不停的登陆,是不是有两台设备client id 一样了?看起来是在抢占登陆
这个设备id我是用随机数生成的,理论上说一样的情况不太会出现。 clientId: mqtt_client-${random.value}
不一定是clientid的碰撞,也可能是这台设备的状态不对,一直在重新发起登陆,要debug一下这台设备了
这是一台阿里云服务器,部署的是java api接口,含有mqtt的客户端,还有MQTT braker ,我先把所有的客户端关闭后,再试试吧。
你可以尝试踢掉 这台 330b518810aebe9b785ce8fd14ca9154