我的 Mosquitto 代理停止工作,我认为这可能与我尝试使用相同的 Raspberry Pi 来运行 Tuya Convert 有关。
我知道 Tuya Convert 安装了一堆东西,我猜其中一个搞砸了我的 MQTT Broker,可能是通过在 RPi 中运行其他蚊子实例或类似的东西。但我不知道要卸载什么而不把它搞得更糟。
我在 Docker 上运行 Home Assistant 监督。在带有 Raspberry Pi OS 的 4Gb Raspberry Pi 4 Model B 上。
这些是日志
Hassio 一般日志:
Logger: homeassistant.components.mqtt
Source: components/mqtt/__init__.py:907
Integration: MQTT (documentation, issues)
First occurred: 4:03:32 PM (3 occurrences)
Last logged: 4:03:35 PM
Unable to connect to the MQTT broker: Connection Refused: not authorised.
Mosquito Broker 日志:
[16:02:32] INFO: Setup mosquitto configuration
[16:02:32] INFO: Found local users inside config
[16:02:32] INFO: Initialize Hass.io Add-on services
[16:02:32] INFO: Initialize Home Assistant discovery
[16:02:32] INFO: Start Mosquitto daemon
1604070152: mosquitto version 1.6.3 starting
1604070152: Config loaded from /etc/mosquitto.conf.
1604070152: Loading plugin: /usr/share/mosquitto/auth-plug.so
1604070152: |-- *** auth-plug: startup
1604070152: ├── Username/password checking enabled.
1604070152: ├── TLS-PSK checking enabled.
1604070152: └── Extended authentication not enabled.
1604070152: Opening ipv4 listen socket on port 1883.
1604070152: Opening ipv6 listen socket on port 1883.
1604070152: Opening websockets listen socket on port 1884.
1604070153: Opening ipv4 listen socket on port 8883.
1604070153: Opening ipv6 listen socket on port 8883.
1604070153: Opening websockets listen socket on port 8884.
1604070153: Warning: Mosquitto should not be run as root/administrator.
1604070158: New connection from xxx.xxx.xxx.53 on port 1883.
[INFO] found myuser on local database
1604070159: New client connected from xxx.xxx.xxx.53 as DVES_8666BD (p2, c1, k30, u'myuser').
1604070159: New connection from xxx.xxx.xxx.52 on port 1883.
1604070159: New connection from xxx.xxx.xxx.54 on port 1883.
1604070159: New connection from xxx.xxx.xxx.62 on port 1883.
1604070159: New connection from xxx.xxx.xxx.44 on port 1883.
1604070159: New client connected from xxx.xxx.xxx.52 as DVES_9262E1 (p2, c1, k30, u'myuser').
1604070159: New client connected from xxx.xxx.xxx.54 as DVES_92846E (p2, c1, k30, u'myuser').
1604070159: New client connected from xxx.xxx.xxx.62 as DVES_B1089C (p2, c1, k30, u'myuser').
1604070159: New client connected from xxx.xxx.xxx.44 as DVES_43EEEE (p2, c1, k30, u'myuser').
1604070182: New connection from 172.30.32.1 on port 1883.
[WARN] Not found homeassistant on local database
1604070183: Socket error on client <unknown>, disconnecting.
1604070211: New connection from 172.30.32.1 on port 1883.
1604070211: Socket error on client <unknown>, disconnecting.
1604070213: New connection from 172.30.32.1 on port 1883.
1604070213: Socket error on client <unknown>, disconnecting.
1604070215: New connection from 172.30.32.1 on port 1883.
1604070215: Socket error on client <unknown>, disconnecting.
1604070219: New connection from 172.30.32.1 on port 1883.
1604070219: Socket error on client <unknown>, disconnecting.
1604070227: New connection from 172.30.32.1 on port 1883.
1604070227: Socket error on client <unknown>, disconnecting.
1604070243: New connection from 172.30.32.1 on port 1883.
1604070243: Socket error on client <unknown>, disconnecting.
1604070275: New connection from 172.30.32.1 on port 1883.
1604070275: Socket error on client <unknown>, disconnecting.
1604070339: New connection from 172.30.32.1 on port 1883.
1604070339: Socket error on client <unknown>, disconnecting.
1604070459: New connection from 172.30.32.1 on port 1883.
1604070459: Socket error on client <unknown>, disconnecting.
如果我可以提供任何其他信息或日志,请告诉我!