Добрый день. Столкнулся со следующей проблемой:
Меняю содержимое файла /etc/wb-mqtt-serial.conf, файл сохраняется и изменяется. Однако после перезагрузки получаю содержимое этого файла как до внесения изменений. Менять пробовал и через интерфейс и посредством nano через ssh. Изменения “откатываются” любые при перезагрузке: команды, добавление новых устройств и т.д.
dpkg -s wb-mqtt-serial
Package: wb-mqtt-serial
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 1476
Maintainer: Evgeny Boger boger@contactless.ru
Architecture: armhf
Version: 1.53.0
Replaces: wb-homa-modbus (<< 1.14.1)
Depends: libc6 (>= 2.4), libgcc1 (>= 1:3.5), libjsoncpp1 (>= 1.7.4), libmosquitto1 (>= 1.0), libmosquittopp1 (>= 1.0), libstdc++6 (>= 6), libwbmqtt0 (>= 1.7), bsdutils, wb-utils (>= 2.0)
Breaks: wb-homa-modbus (<< 1.14.1), wb-mqtt-confed (<< 1.0.2), wb-mqtt-homeui (<< 1.7)
Conffiles:
/etc/init.d/wb-mqtt-serial 1f6938ea476ac51c4b845327d5e40f03
/etc/wb-configs.d/11wb-mqtt-serial 5325e375bc486e31384ed908b8ceae0e
/etc/wb-mqtt-serial.conf.sample c8c1adbf630e6fd7ec871b1b5c4a5e0f
Description: Wiren Board Smart Home MQTT serial protocol driver.
Причем, если сразу после перезагрузки посмотреть содержимое wb-mqtt-serial.conf, то оно оказывается новым, с внесенными изменениями. Но, буквально, через несколько секунд файл “откатывается” к старому содержимому
tail -n 110 /var/log/messages
Aug 28 02:19:21 wirenboard-A5HT7XZX daemon.info dnsmasq[3081]: using nameserver 192.168.10.1#53
Aug 28 02:19:22 wirenboard-A5HT7XZX daemon.info dhclient[3395]: bound to 192.168.10.40 – renewal in 242 seconds.
Aug 28 02:19:22 wirenboard-A5HT7XZX daemon.err ntpdate[3476]: the NTP socket is in use, exiting
Aug 28 02:19:22 wirenboard-A5HT7XZX daemon.info ntpd[3059]: Soliciting pool server 91.206.16.3
Aug 28 02:19:22 wirenboard-A5HT7XZX daemon.info ntpd[3059]: Soliciting pool server 95.128.246.34
Aug 28 02:19:22 wirenboard-A5HT7XZX daemon.info ntpd[3059]: Listen normally on 7 eth0 192.168.10.40:123
Aug 28 02:19:23 wirenboard-A5HT7XZX daemon.info netplugd[3396]: eth0: state INNING pid 3397 exited status 0
Aug 28 02:19:23 wirenboard-A5HT7XZX auth.info sshd[2976]: Received SIGHUP; restarting.
Aug 28 02:19:24 wirenboard-A5HT7XZX auth.info sshd[2976]: Server listening on 0.0.0.0 port 22.
Aug 28 02:19:24 wirenboard-A5HT7XZX daemon.info ntpd[3059]: Soliciting pool server 89.221.207.113
Aug 28 02:19:24 wirenboard-A5HT7XZX daemon.info ntpd[3059]: Soliciting pool server 2a03:aa00::136:55
Aug 28 02:19:24 wirenboard-A5HT7XZX auth.info sshd[2976]: Server listening on :: port 22.
Aug 28 02:19:12 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 8
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 7
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 32
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 33
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 34
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 35
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 36
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 37
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 39
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 121
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 8
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 7
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 32
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 33
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 34
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 35
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 36
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 37
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 39
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: address: 121
Aug 28 02:19:25 wirenboard-A5HT7XZX daemon.info ntpd[3059]: receive: Unexpected origin timestamp 0xe11038fc.9b47bdc4 does not match aorg 0xe11038fd.b272a289 from server@185.209.85.222 xmt 0xe11038fb.9ca7ba97
Aug 28 02:19:24 wirenboard-A5HT7XZX daemon.info ntpd[3059]: receive: Unexpected origin timestamp 0xe11038fd.b272a289 does not match aorg 0000000000.00000000 from server@185.209.85.222 xmt 0xe11038fc.b3cb02df
Aug 28 02:19:24 wirenboard-A5HT7XZX daemon.info ntpd[3059]: receive: Unexpected origin timestamp 0xe11038fd.b26a18ff does not match aorg 0000000000.00000000 from server@195.3.254.2 xmt 0xe11038fc.b3938e92
Aug 28 02:19:24 wirenboard-A5HT7XZX daemon.info ntpd[3059]: receive: Unexpected origin timestamp 0xe11038fd.b253d7f9 does not match aorg 0000000000.00000000 from server@91.206.16.3 xmt 0xe11038fc.b679bff6
Aug 28 02:19:25 wirenboard-A5HT7XZX user.notice serial: Warning: no devices defined for port </dev/ttyRS485-2 9600 8 N2 timeout 500> . Skipping.
Aug 28 02:19:25 wirenboard-A5HT7XZX auth.info sshd[3144]: Accepted password for root from 192.168.10.66 port 55749 ssh2
Aug 28 02:19:25 wirenboard-A5HT7XZX authpriv.info sshd[3144]: pam_unix(sshd:session): session opened for user root by (uid=0)
Aug 28 02:19:25 wirenboard-A5HT7XZX authpriv.info systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.notice watchdog[3772]: starting daemon (5.15):
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: int=1s realtime=yes sync=no load=0,0,0 soft=no
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: memory: minimum pages = 256 free, 0 allocatable (4096 byte pages)
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: ping: no machine to check
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: file: no file to check
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: pidfile: /var/run/syslogd.pid
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: pidfile: /var/run/sshd.pid
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: pidfile: /var/run/mosquitto.pid
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: pidfile: /var/run/nginx.pid
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: interface: no interface to check
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: temperature: no sensors to check
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: no test binary files
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: no repair binary files
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: error retry time-out = 30 seconds
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: repair attempts = 1
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: alive=/dev/watchdog1 heartbeat=[none] to=[none] no_act=no force=no
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: watchdog now set to 60 seconds
Aug 28 02:19:26 wirenboard-A5HT7XZX daemon.info watchdog[3772]: hardware watchdog identity: GPIO Watchdog
Aug 28 02:19:27 wirenboard-A5HT7XZX auth.info sshd[3811]: lastlog_openseek: Couldn’t stat /var/log/lastlog: No such file or directory
Aug 28 02:19:27 wirenboard-A5HT7XZX auth.info sshd[3811]: lastlog_openseek: Couldn’t stat /var/log/lastlog: No such file or directory
Aug 28 02:19:35 wirenboard-A5HT7XZX user.notice serial: terminate called after throwing an instance of ‘std::logic_error’
Aug 28 02:19:35 wirenboard-A5HT7XZX user.notice serial: what(): basic_string::_M_construct null not valid
Aug 28 02:19:39 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 8
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 0
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 1
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 2
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 3
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 4
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 5
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 7
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 32
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 33
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 34
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 35
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 36
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 37
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 39
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: address: 121
Aug 28 02:19:40 wirenboard-A5HT7XZX user.notice serial: Warning: no devices defined for port </dev/ttyRS485-2 9600 8 N2 timeout 500> . Skipping.
Aug 28 02:19:41 wirenboard-A5HT7XZX user.notice serial: Init: set_ceiling_led_switch_w_fixation: setup register <modbus:82:: 14> <-- 1
В чем может быть причина такого поведения?