Защита паролем wb6


#1

Решил установить пароль по инструкции: https://wirenboard.com/wiki/index.php/Защита_паролем
сделал второй шаг и теперь WB6 перезагружается по кругу. Только подключусь по ssh и сразу выкидывает.


#2

лог из консоли:

login as: root
root@192.168.1.169’s password:
Linux wirenboard-A6AM6Z3X 4.9.22-wb6 #2 SMP Sat Sep 1 16:34:31 UTC 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 4 04:15:17 2018 from 192.168.99.77
root@wirenboard-A6AM6Z3X:~# su
root@wirenboard-A6AM6Z3X:~# apt-get update
Ign:1 http://mirror.yandex.ru/debian stretch InRelease
Get:2 http://mirror.yandex.ru/debian stretch-updates InRelease [91.0 kB]
Get:3 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:5 http://mirror.yandex.ru/debian stretch Release [118 kB]
Get:6 http://releases.contactless.ru/stable/stretch stretch InRelease [10.6 kB]
Get:7 http://mirror.yandex.ru/debian stretch Release.gpg [2434 B]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:8 http://mirror.yandex.ru/debian stretch-updates/main armhf Packages [5112 B]
Get:9 http://mirror.yandex.ru/debian stretch-updates/main Translation-en [4512 B]
Get:10 http://security.debian.org stretch/updates/main armhf Packages [432 kB]
Get:11 http://security.debian.org stretch/updates/main Translation-en [192 kB]
Get:12 http://releases.contactless.ru/stable/stretch stretch/main all Packages [26.9 kB]
Get:13 http://releases.contactless.ru/stable/stretch stretch/main armhf Packages [71.9 kB]
Get:14 http://mirror.yandex.ru/debian stretch/main armhf Packages [6927 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch-backports/main armhf Packages [440 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch-backports/main Translation-en [339 kB]
Get:17 http://mirror.yandex.ru/debian stretch/main Translation-en [5393 kB]
Fetched 14.2 MB in 39s (357 kB/s)
Reading package lists… Done
root@wirenboard-A6AM6Z3X:~# apt-get install nginx-extras mosquitto wb-configs wb-mqtt-homeui
Reading package lists… Done
Building dependency tree
Reading state information… Done
mosquitto is already the newest version (1.4.15-1+wb7-3).
nginx-extras is already the newest version (1.6.2-5+deb8u2~bpo70+3).
nginx-extras set to manually installed.
wb-configs is already the newest version (1.77.1).
wb-mqtt-homeui is already the newest version (1.7).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
root@wirenboard-A6AM6Z3X:~# service mosquitto restart
root@wirenboard-A6AM6Z3X:~# service nginx restart
root@wirenboard-A6AM6Z3X:~# mc

/usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found
‘select-editor’.
/usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found

  1. /bin/nano <----
  2. /usr/bin/mcedit
  3. /usr/bin/vim.basic

/usr/bin/select-editor: 32: /usr/bin/select-editor: gettext: not found
1-3 [1]: 2

root@wirenboard-A6AM6Z3X:/etc/mosquitto/conf.d#
root@wirenboard-A6AM6Z3X:/# service mosquitto restart
Job for mosquitto.service failed because the control process exited with error code.
See “systemctl status mosquitto.service” and “journalctl -xe” for details.
root@wirenboard-A6AM6Z3X:/#

я изменил вот так:
меняем содержимое на

#change 0.0.0.0 to to limit listener to localhost

#listener 1883 0.0.0.0
listener 1883 127.0.0.1

example:

#listener 1883 0.0.0.0

#change 0.0.0.0 to 127.0.0.1 to limit listener to localhost

#listener 1883 0.0.0.0
listener 18883 127.0.0.1
protocol websockets

Что я сделал не верно и как это можно поправить?


#3

Подключился через отладочный порт. Вот что видно:
root@wirenboard-A6AM6Z3X:/etc# [ 84.143691] systemd-journald[141]: Received SIGTERM from PID 1035 (watchdog).
[ 85.281165] systemd[1]: Reexecuting. 6RenMov 7Mkdir 8Delete 9PullDn10Quit
[ 85.351179] systemd: 22 output lines suppressed due to ratelimiting
[ 86.252756] RTL871X: nolinked power save enter
[ 89.234227] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[ 90.082305] RTL871X: RTW_ADAPTIVITY_EN_[ 90.085997] AUTO, chplan:0x20, Regulation:3,3
[ 90.090442] RTL871X: RTW_ADAPTIVITY_MODE_[ 90.094282] NORMAL
[ 90.518139] RTL871X: nolinked power save leave
[ 91.759136] gpio-wdt watchdog: Timer expired. System will reboot soon!
[ 94.652769] RTL871X: nolinked power save enter


#4

при загрузке

[ OK ] Reached target Host and Network Name Lookups.
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ OK ] Started LSB: Brings up/down network automatically.
[ OK ] Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Starting Mosquitto MQTT v3.1/v3.1.1 Broker…
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ OK ] Reached target Multi-User System.
Starting watchdog daemon…
[ OK ] Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Starting Mosquitto MQTT v3.1/v3.1.1 Broker…
[ OK ] Started watchdog daemon.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes…
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ 28.969506] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 28.977465] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ OK ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 wirenboard-A6AM6Z3X ttymxc0


#5

перезагружает контроллер watchdog как я понимаю из за того что не отвечает Mosquitto MQTT .


#6

сразу после загрузки остановите watchdog и смотрите в логе, почему moquitto не стартует


#7

Подскажите как остановить и потом запустить watchdog?


#8

systemctl stop watchdog
systemctl start watchdog


#9

поправил содержимое /etc/mosquitto/conf.d/listeners.conf и все заработало.


#10

Спасибо.