Добрый день.
WirenBoard стоит в тест стенде и включен круглосуточно. После выходных при попытке открыть страницу в браузере WIrenBoard пишет не удалось подключится (IP):18883. Доступ по SSH есть.
Перезагрузка не помогает.
Вот из консоли
root@wirenboard-A**********:~# systemctl status mosquitto.service
● mosquitto.service - Mosquitto MQTT Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (start-pre) since Mon 2024-01-22 09:23:41 UTC; 59ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Cntrl PID: 12682 (mkdir)
Tasks: 1 (limit: 2354)
Memory: 44.0K
CPU: 7ms
CGroup: /system.slice/mosquitto.service
└─12687 /bin/mkdir -m 740 -p /run/mosquitto
Jan 22 09:23:41 wirenboard-A********* systemd[1]: Starting Mosquitto MQTT Broker...
Jan 22 09:23:41 wirenboard-A******* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/00default_listener.conf
Jan 22 09:23:41 wirenboard-A********* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/10listeners.conf
Jan 22 09:23:41 wirenboard-A********* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/20bridges.conf
Jan 22 09:23:41 wirenboard-A********* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/30limits.conf
Jan 22 09:23:41 wirenboard-A********* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/bridge1.conf
Jan 22 09:23:41 wirenboard-A********* mosquitto[12692]: 1705915421: Loading config file /etc/mosquitto/conf.d/bridge2.conf
root@wirenboard-AWH3C6UH:~# journalctl -xe
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: self.sock_connect(self._broker_url.path)
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: File "/usr/lib/python3/dist-packages/paho_socket/client.py", line 45, in sock_connect
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: return self.reconnect()
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: sock = self._create_socket_connection()
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: File "/usr/lib/python3/dist-packages/paho_socket/client.py", line 105, in _create_socket_connection
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: raise ConnectionError("Socket connection failed.") from ex
Jan 22 09:24:04 wirenboard-A********* wb-mqtt-mbgate-confgen[15319]: ConnectionError: Socket connection failed.
Jan 22 09:24:04 wirenboard-A********* systemd[1]: wb-mqtt-logs.service: Scheduled restart job, restart counter is at 344.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit wb-mqtt-logs.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jan 22 09:24:04 wirenboard-A********* systemd[1]: Stopped Wiren Board journald to MQTT gateway.
░░ Subject: A stop job for unit wb-mqtt-logs.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit wb-mqtt-logs.service has finished.
░░
░░ The job identifier is 342116 and the job result is done.
Jan 22 09:24:04 wirenboard-A********* systemd[1]: wb-mqtt-mbgate.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStartPre= process belonging to unit wb-mqtt-mbgate.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jan 22 09:24:04 wirenboard-A********* systemd[1]: wb-mqtt-mbgate.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit wb-mqtt-mbgate.service has entered the 'failed' state with result 'exit-code'.
Jan 22 09:24:04 wirenboard-A********* systemd[1]: Failed to start Wiren Board MQTT to Modbus TCP gateway.
░░ Subject: A start job for unit wb-mqtt-mbgate.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit wb-mqtt-mbgate.service has finished with a failure.
░░
░░ The job identifier is 341297 and the job result is failed.
root@wirenboard-AWH3C6UH:~# ls -lh /var/lib/mosquitto/
total 81M
-rw------- 1 mosquitto mosquitto 81M Jan 22 04:58 mosquitto.db
root@wirenboard-AWH3C6UH:~#
Конфигурация моста
address ***********:51884 #address:ports of server
notifications true
bridge_protocol_version mqttv50
notification_topic /remoteconnect/wb_7/bridge_status
remote_clientid WB7_****************
remote_username *************
remote_password **********************
round_robin false
cleansession false
start_type automatic
#clientid********************
topic /DataStream_1/# out 2 /devices /WirenBoard /GTL_001
topic /DataStream_2/# out 2 /devices /WirenBoard /GTL_002
topic /DataStream_3/# out 2 /devices /WirenBoard /GTL_003
topic /GT_MAI6_AI1/# both 2 /devices /WirenBoard /GT_MAI6_AI1
Есть какой-то другой выход кроме удаления mosquitto.db?
P.S. > Удалил mosquitto.db и все заработало. Но хотелось бы разобраться как нужно делать. Хранение сообщений нужно чтобы при отвалах связи и ее восстановлении пропущенные данные автоматом уходили на машину за мостом.
Это все тянется еще от сюда https://support.wirenboard.com/t/stoit-li-zhdat-ispravleniya-errwb73010/16438