Не загружается конфиг?

Контроллер включается и начинает опрос датчиков по rs485 1 раз из 5 перезагрузок.

Лог прилагаю, скорее всего что-то сломал в конфигах, но не могу понять куда смотреть.

Aug 28 15:30:09 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Control process exited, code=exited status=1

Aug 28 15:30:09 wirenboard-AN7CFUO7 systemd[1]: Failed to start Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:09 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Unit entered failed state.

Aug 28 15:30:09 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Failed with result ‘exit-code’.

Aug 28 15:30:10 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:10 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:10 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:10 wirenboard-AN7CFUO7 systemd[1]: Stopped Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:10 wirenboard-AN7CFUO7 systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway…

Aug 28 15:30:11 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:11 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: Started MQTT Driver for GPIO-controlled switches.

Aug 28 15:30:12 wirenboard-AN7CFUO7 wb-mqtt-serial[21243]: ERROR: [serial] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Aug 28 15:30:12 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Main process exited, code=exited, status=1/FAILURE

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Unit entered failed state.

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Failed with result ‘exit-code’.

Aug 28 15:30:12 wirenboard-AN7CFUO7 wb-mqtt-gpio[22100]: ERROR: [gpio] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Aug 28 15:30:12 wirenboard-AN7CFUO7 wb-mqtt-gpio[22100]: terminate called without an active exception

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Main process exited, code=killed, status=6/ABRT

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Unit entered failed state.

Aug 28 15:30:12 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Failed with result ‘signal’.

Aug 28 15:30:12 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Started MQTT Driver for ADC.

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-adc[22200]: MQTT broker localhost:1883

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: Failed to open config

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: Traceback (most recent call last):

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 291, in

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: main()

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 274, in main

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: client.connect(args.server, args.port)

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 576, in connect

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: return self.reconnect()

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 651, in reconnect

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: self._sock = socket.create_connection((self._host, self._port))

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: File “/usr/lib/python2.7/socket.py”, line 575, in create_connection

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: raise err

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-adc[22200]: ERROR: [wb-adc] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-adc[22200]: terminate called without an active exception

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22014]: socket.error: [Errno 111] Connection refused

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Main process exited, code=killed, status=6/ABRT

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Unit entered failed state.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Failed with result ‘signal’.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Stopped MQTT Driver for serial devices.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Started MQTT Driver for serial devices.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Stopped MQTT Driver for GPIO-controlled switches.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Starting MQTT Driver for GPIO-controlled switches…

Aug 28 15:30:13 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Control process exited, code=exited status=1

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: Failed to start Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:13 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Unit entered failed state.

Aug 28 15:30:14 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Failed with result ‘exit-code’.

Aug 28 15:30:14 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:14 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:14 wirenboard-AN7CFUO7 systemd[1]: Stopped MQTT Driver for ADC.

Aug 28 15:30:14 wirenboard-AN7CFUO7 systemd[1]: Starting MQTT Driver for ADC…

Aug 28 15:30:15 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:15 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:15 wirenboard-AN7CFUO7 systemd[1]: Stopped Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:15 wirenboard-AN7CFUO7 systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway…

Aug 28 15:30:15 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:16 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:16 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:17 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:17 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: Failed to open config

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: Traceback (most recent call last):

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 291, in

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: main()

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 274, in main

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: client.connect(args.server, args.port)

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 576, in connect

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: return self.reconnect()

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 651, in reconnect

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: self._sock = socket.create_connection((self._host, self._port))

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: File “/usr/lib/python2.7/socket.py”, line 575, in create_connection

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: raise err

Aug 28 15:30:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[22308]: socket.error: [Errno 111] Connection refused

Aug 28 15:30:19 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:19 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Control process exited, code=exited status=1

Aug 28 15:30:19 wirenboard-AN7CFUO7 systemd[1]: Failed to start Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:19 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Unit entered failed state.

Aug 28 15:30:19 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Failed with result ‘exit-code’.

Aug 28 15:30:19 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:20 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:20 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Service hold-off time over, scheduling restart.

Aug 28 15:30:20 wirenboard-AN7CFUO7 systemd[1]: Stopped Wiren Board MQTT to Modbus TCP gateway.

Aug 28 15:30:20 wirenboard-AN7CFUO7 systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway…

Aug 28 15:30:20 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Aug 28 15:30:21 wirenboard-AN7CFUO7 wb-mqtt-serial[22204]: ERROR: [serial] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Aug 28 15:30:21 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Main process exited, code=exited, status=1/FAILURE

Aug 28 15:30:21 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Unit entered failed state.

Aug 28 15:30:21 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Failed with result ‘exit-code’.

Aug 28 15:30:21 wirenboard-AN7CFUO7 wb-watch-update[6911]: Warning: Unable to locate configuration directory, default config not loaded.

Aug 28 15:30:22 wirenboard-AN7CFUO7 wb-watch-update[6911]: Error: Connection refused

Запуск mosquitto руками помогает (начинается опрос датчиков), но web-интерфейс его не видит.
Судя по статусу - сервис не может запуститься?

root@wirenboard-AN7CFUO7:~# systemctl status mosquitto
● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-08-28 16:12:00 MSK; 29s ago
Main PID: 9236 (mosquitto)
CGroup: /system.slice/mosquitto.service
└─9236 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

авг 28 16:12:00 wirenboard-AN7CFUO7 systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Broker…

Предположу

etc/hosts

посмотрите правильно ли указан у вас localhost

127.0.0.1    localhost
127.0.0.1    wirenboard
127.0.0.1    wirenboard-SERIAL
::1     localhost ip6-localhost ip6-loopback
fe00::0     ip6-localnet
ff00::0     ip6-mcastprefix
ff02::1     ip6-allnodes
ff02::2     ip6-allrouters

Да, @somebody верно заметил. Разрешается ли localhost?

Да, все в порядке, только не было wirenboard-SERIAL Добавил, ничего не поменялось:

Sep 10 15:18:10 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Unit entered failed state.

Sep 10 15:18:10 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Failed with result ‘exit-code’.

Sep 10 15:18:11 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:11 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:11 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Service hold-off time over, scheduling restart.

Sep 10 15:18:11 wirenboard-AN7CFUO7 systemd[1]: Stopped Wiren Board MQTT to Modbus TCP gateway.

Sep 10 15:18:11 wirenboard-AN7CFUO7 systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway…

Sep 10 15:18:12 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:12 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:13 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:13 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: Failed to open config

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: Traceback (most recent call last):

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 291, in

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: main()

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 274, in main

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: client.connect(args.server, args.port)

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 576, in connect

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: return self.reconnect()

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 651, in reconnect

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: self._sock = socket.create_connection((self._host, self._port))

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: File “/usr/lib/python2.7/socket.py”, line 575, in create_connection

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: raise err

Sep 10 15:18:15 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12110]: socket.error: [Errno 111] Connection refused

Sep 10 15:18:15 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Control process exited, code=exited status=1

Sep 10 15:18:15 wirenboard-AN7CFUO7 systemd[1]: Failed to start Wiren Board MQTT to Modbus TCP gateway.

Sep 10 15:18:15 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Unit entered failed state.

Sep 10 15:18:15 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Failed with result ‘exit-code’.

Sep 10 15:18:16 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:16 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:16 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-mbgate.service: Service hold-off time over, scheduling restart.

Sep 10 15:18:16 wirenboard-AN7CFUO7 systemd[1]: Stopped Wiren Board MQTT to Modbus TCP gateway.

Sep 10 15:18:16 wirenboard-AN7CFUO7 systemd[1]: Starting Wiren Board MQTT to Modbus TCP gateway…

Sep 10 15:18:17 wirenboard-AN7CFUO7 systemd[1]: Started MQTT Driver for GPIO-controlled switches.

Sep 10 15:18:17 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:17 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:17 wirenboard-AN7CFUO7 wb-mqtt-gpio[12649]: ERROR: [gpio] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Sep 10 15:18:17 wirenboard-AN7CFUO7 wb-mqtt-gpio[12649]: terminate called without an active exception

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Main process exited, code=killed, status=6/ABRT

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Unit entered failed state.

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Failed with result ‘signal’.

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: Started MQTT Driver for ADC.

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-mqtt-adc[12684]: MQTT broker localhost:1883

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-mqtt-adc[12684]: ERROR: [wb-adc] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-mqtt-adc[12684]: terminate called without an active exception

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Main process exited, code=killed, status=6/ABRT

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Unit entered failed state.

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-adc.service: Failed with result ‘signal’.

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-mqtt-serial[11979]: ERROR: [serial] FATAL: Mqtt connect error localhost:1883 : Bad address @ wblib/mqtt.cpp:161

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Main process exited, code=exited, status=1/FAILURE

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Unit entered failed state.

Sep 10 15:18:18 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-serial.service: Failed with result ‘exit-code’.

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: Failed to open config

Sep 10 15:18:18 wirenboard-AN7CFUO7 wb-watch-update[6559]: Warning: Unable to locate configuration directory, default config not loaded.

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: Traceback (most recent call last):

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 291, in

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: main()

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: File “/usr/bin/wb-mqtt-mbgate-confgen”, line 274, in main

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: client.connect(args.server, args.port)

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 576, in connect

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: return self.reconnect()

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: File “/usr/lib/python2.7/dist-packages/mosquitto.py”, line 651, in reconnect

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: self._sock = socket.create_connection((self._host, self._port))

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: File “/usr/lib/python2.7/socket.py”, line 575, in create_connection

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: raise err

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-mqtt-mbgate-confgen[12611]: socket.error: [Errno 111] Connection refused

Sep 10 15:18:19 wirenboard-AN7CFUO7 wb-watch-update[6559]: Error: Connection refused

Sep 10 15:18:19 wirenboard-AN7CFUO7 systemd[1]: wb-mqtt-gpio.service: Service hold-off time over, scheduling restart.

Sep 10 15:18:19 wirenboard-AN7CFUO7 systemd[1]: Stopped MQTT Driver for GPIO-controlled switches.

Sep 10 15:18:19 wirenboard-AN7CFUO7 systemd[1]: Starting MQTT Driver for GPIO-controlled switches…


Лог запуска руками следующий:
root@wirenboard-AN7CFUO7:~# systemctl status mosquitto

● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker

Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)

Active: activating (start) since Fri 2021-09-10 15:19:54 MSK; 27s ago

Main PID: 21248 (mosquitto)

CGroup: /system.slice/mosquitto.service

└─21248 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

сен 10 15:19:54 wirenboard-AN7CFUO7 systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Broker…

root@wirenboard-AN7CFUO7:~# mosquitto &

[1] 24825

root@wirenboard-AN7CFUO7:~# 1631276435: mosquitto version 1.4.15 (build date Thu, 07 Jun 2018 19:59:46 +0300) starting

1631276435: Using default config.

1631276435: Opening ipv4 listen socket on port 1883.

1631276435: Opening ipv6 listen socket on port 1883.

1631276435: New connection from 127.0.0.1 on port 1883.

1631276435: New client connected from 127.0.0.1 as mosqpub|24854-wirenboar (c1, k60).

1631276435: Client mosqpub|24854-wirenboar disconnected.

1631276436: New connection from 127.0.0.1 on port 1883.

1631276436: New client connected from 127.0.0.1 as 1631276436.372422 (c1, k60).

1631276436: Socket error on client 1631276436.372422, disconnecting.

1631276437: New connection from 127.0.0.1 on port 1883.

1631276437: New client connected from 127.0.0.1 as wb-modbus (c1, k60).

1631276437: New connection from 127.0.0.1 on port 1883.

1631276437: New client connected from 127.0.0.1 as mqtt-mbgate-1631276437 (c1, k60).

1631276439: New connection from 127.0.0.1 on port 1883.

1631276439: New client connected from 127.0.0.1 as wb-gpio (c1, k60).

1631276439: New connection from 127.0.0.1 on port 1883.

1631276439: New client connected from 127.0.0.1 as wb-adc (c1, k60).

1631276443: New connection from 127.0.0.1 on port 1883.

1631276443: New client connected from 127.0.0.1 as mosq/p4cQP;BduZvfVTfe>@ (c1, k60).

1631276454: New connection from 127.0.0.1 on port 1883.

1631276454: New client connected from 127.0.0.1 as wb-w1 (c1, k60).

1631276461: New connection from 127.0.0.1 on port 1883.

1631276461: New client connected from 127.0.0.1 as mosqsub|25132-wirenboar (c1, k60).

1631276464: New connection from 127.0.0.1 on port 1883.

1631276464: New client connected from 127.0.0.1 as mosqpub|25137-wirenboar (c1, k60).

1631276464: Client mosqpub|25137-wirenboar disconnected.

1631276471: Socket error on client mosqsub|25132-wirenboar, disconnecting.

1631276473: New connection from ::1 on port 1883.

1631276473: New client connected from ::1 as confed-wirenboard-AN7CFUO7-25159 (c1, k30).

1631276521: New connection from 127.0.0.1 on port 1883.

1631276521: New client connected from 127.0.0.1 as mosqsub|25194-wirenboar (c1, k60).

1631276524: New connection from 127.0.0.1 on port 1883.

1631276524: New client connected from 127.0.0.1 as mosqpub|25195-wirenboar (c1, k60).

1631276524: Client mosqpub|25195-wirenboar disconnected.

1631276524: Client mosqsub|25194-wirenboar disconnected.

1631276582: New connection from 127.0.0.1 on port 1883.

1631276582: New client connected from 127.0.0.1 as mosqsub|25216-wirenboar (c1, k60).

1631276585: New connection from 127.0.0.1 on port 1883.

1631276585: New client connected from 127.0.0.1 as mosqpub|25217-wirenboar (c1, k60).

1631276585: Client mosqpub|25217-wirenboar disconnected.

1631276585: Client mosqsub|25216-wirenboar disconnected.

1631276641: New connection from 127.0.0.1 on port 1883.

1631276641: New client connected from 127.0.0.1 as mosqsub|25240-wirenboar (c1, k60).

1631276644: New connection from 127.0.0.1 on port 1883.

1631276644: New client connected from 127.0.0.1 as mosqpub|25241-wirenboar (c1, k60).

1631276644: Client mosqpub|25241-wirenboar disconnected.

1631276644: Client mosqsub|25240-wirenboar disconnected.

1631276702: New connection from 127.0.0.1 on port 1883.

1631276702: New client connected from 127.0.0.1 as mosqsub|25270-wirenboar (c1, k60).

1631276702: New connection from 127.0.0.1 on port 1883.

1631276702: New client connected from 127.0.0.1 as mosqsub|25272-wirenboar (c1, k60).

1631276705: New connection from 127.0.0.1 on port 1883.

1631276705: New client connected from 127.0.0.1 as mosqpub|25273-wirenboar (c1, k60).

1631276705: Client mosqpub|25273-wirenboar disconnected.

1631276705: Client mosqsub|25272-wirenboar disconnected.

1631276761: New connection from 127.0.0.1 on port 1883.

1631276761: New client connected from 127.0.0.1 as mosqsub|25325-wirenboar (c1, k60).

1631276764: New connection from 127.0.0.1 on port 1883.

1631276764: New client connected from 127.0.0.1 as mosqpub|25334-wirenboar (c1, k60).

1631276764: Client mosqpub|25334-wirenboar disconnected.

1631276764: Client mosqsub|25325-wirenboar disconnected.

Руками надо запускать именно так:

/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

Есть ли на контроллере место?

А какой релиз на контроллере стоит? А то сейчас выясним что надо persistence отключить.

С этим кончиком не запускается.

Содержимое конфига /etc/mosquitto/mosquitto.conf
/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

auth.conf из /etc/mosquitto/cond.d/
image

bridge.conf из /etc/mosquitto/cond.d/ пустой

listeners.conf из /etc/mosquitto/cond.d/

А какой размер базы в /var/lib/mosquitto?

root@wirenboard-AN7CFUO7:~# wb-release
Wirenboard release wb-2104 (as stable), target wb6/stretch

140 Мбайт

Удалите базу…

Уже, не помогло(

И что написано при запуске?

Все то же самое:

полный лог загрузки:
wb_startup_log.pdf (377.7 КБ)

wirenboard-AN7CFUO7 systemd[1]: mosquitto.service: Start
operation timed out. Terminating.

вижу.
А в конфиге база уже отключена?
Так что пишет при запуске вручную?

Если через /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf, то тишина…

Если просто через /usr/sbin/mosquitto:
root@wirenboard-AN7CFUO7:~# /usr/sbin/mosquitto

1631285577: mosquitto version 1.4.15 (build date Thu, 07 Jun 2018 19:59:46 +0300) starting

1631285577: Using default config.

1631285577: Opening ipv4 listen socket on port 1883.

1631285577: Opening ipv6 listen socket on port 1883.

1631285578: New connection from 127.0.0.1 on port 1883.

1631285578: New client connected from 127.0.0.1 as mosqpub|26528-wirenboar (c1, k60).

1631285578: Client mosqpub|26528-wirenboar disconnected.

1631285581: New connection from 127.0.0.1 on port 1883.

1631285581: New client connected from 127.0.0.1 as mosqsub|26878-wirenboar (c1, k60).

1631285581: New connection from 127.0.0.1 on port 1883.

1631285581: New client connected from 127.0.0.1 as 1631285581.892464 (c1, k60).

1631285581: Socket error on client 1631285581.892464, disconnecting.

1631285583: New connection from 127.0.0.1 on port 1883.

1631285583: New client connected from 127.0.0.1 as mqtt-mbgate-1631285582 (c1, k60).

1631285584: New connection from 127.0.0.1 on port 1883.

1631285584: New client connected from 127.0.0.1 as mosqpub|27198-wirenboar (c1, k60).

1631285584: Client mosqpub|27198-wirenboar disconnected.

1631285585: New connection from 127.0.0.1 on port 1883.

1631285585: New client connected from 127.0.0.1 as wb-modbus (c1, k60).

Но в статус active не переходит.

Где в конфиге посмотреть базу?
Файл базы опять 140 Мбайт стал

Хм. Как тишина? И процесса нет и в лог ничего не пишет?

persistence true - выключить в конфиге. Файл базы - удалить.

Заработало.

Проблема с таймаутами записи на диск?