Повелся я на записи на портале и перешел на бету ![]()
В итоге mosquitto стартует норм.
wb-mqtt-mbgate не хочет стартовать, даже с обнуленным конфигом
Обнуление:
cat /etc/wb-mqtt-mbgate.conf.default > /etc/wb-mqtt-mbgate.conf
Рестарт
systemctl restart wb-mqtt-mbgate
просмотр статуса
systemctl status wb-mqtt-mbgate
Выход статуса:
● wb-mqtt-mbgate.service - Wiren Board MQTT to Modbus TCP gateway
Loaded: loaded (/lib/systemd/system/wb-mqtt-mbgate.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-08-04 11:45:40 MSK; 2min 37s ago
Process: 23367 ExecStartPre=/usr/bin/wb-mqtt-mbgate-confgen -c /etc/wb-mqtt-mbgate.conf (code=exited, status=0/SUCCESS)
Process: 23372 ExecStart=/usr/bin/wb-mqtt-mbgate -c /etc/wb-mqtt-mbgate.conf (code=exited, status=6)
Main PID: 23372 (code=exited, status=6)
CPU: 468ms
Aug 04 11:45:39 wirenboard-AHCQG5PO systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway...
Aug 04 11:45:40 wirenboard-AHCQG5PO systemd[1]: Started Wiren Board MQTT to Modbus TCP gateway.
Aug 04 11:45:40 wirenboard-AHCQG5PO wb-mqtt-mbgate[23372]: ERROR: [mbgate] FATAL: Configuration error: All channels are disabled
Aug 04 11:45:40 wirenboard-AHCQG5PO systemd[1]: wb-mqtt-mbgate.service: Main process exited, code=exited, status=6/NOTCONFIGURED
Aug 04 11:45:40 wirenboard-AHCQG5PO systemd[1]: wb-mqtt-mbgate.service: Failed with result 'exit-code'.
Смотрим журнал
journalctl -u wb-mqtt-mbgate.service
Служба стартовала с переконфигурации. Выход (только head)
-- Journal begins at Mon 2024-05-27 16:02:22 MSK, ends at Sun 2024-08-04 11:50:26 MSK. --
Jul 07 14:07:42 wirenboard-AHCQG5PO systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway...
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/wbrules/controls/Rule debugging/meta/type
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/wbrules/controls/Rule debugging/meta/order
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/wbrules/controls/Rule debugging/meta/readonly
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/buzzer/controls/enabled/meta/type
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/buzzer/controls/enabled/meta/order
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/buzzer/controls/enabled/meta/readonly
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/buzzer/controls/frequency/meta/type
Jul 07 14:07:44 wirenboard-AHCQG5PO wb-mqtt-mbgate-confgen[2090]: /devices/buzzer/controls/frequency/meta/max