Wirenboard 5 × Error listing the scripts: MQTT RPC request timed out

при переходе в sripts возникает ошибка

Добрый день.
Посмотрите пожалуйста для начала - запущен ли wb-rules:

systemctl status wb-rules |grep Active

Если не запущен - переместите файлы скриптов из /etc/wb-rules в другой каталог и попробуйте запустить.

image

service wb-rules status

image

Запустите пожалуйста в консоли

tail -f /var/log/messages

и попробуйте перейти в Scripts

Добрый день. Неожиданно отвалились правила в WB5. Не выполняются и не отображаются на странице.
В логе пишется:
Oct 12 21:05:02 wirenboard-AMB6FMS user.notice wb-daemon-watchdogs: wb-rules check failed, reload wb-rules

root@wirenboard-AMB6FMS:~# service wb-rules status
● wb-rules.service - LSB: MQTT Rule Engine for Wiren Board
Loaded: loaded (/etc/init.d/wb-rules; generated; vendor preset: enabled)
Active: active (exited) since Tue 2021-10-12 21:05:05 MSK; 1min 43s ago
Docs: man:systemd-sysv-generator(8)
Process: 3557 ExecStop=/etc/init.d/wb-rules stop (code=exited, status=0/SUCCESS)
Process: 3566 ExecStart=/etc/init.d/wb-rules start (code=exited, status=0/SUCCESS)

Oct 12 21:05:04 wirenboard-AMB6FMS systemd[1]: Starting LSB: MQTT Rule Engine for Wiren Board…
Oct 12 21:05:05 wirenboard-AMB6FMS systemd[1]: Started LSB: MQTT Rule Engine for Wiren Board.

Добрый день

Так сервис же упал.
Советую запустить и посмотреть в лог - нет ли периодических ошибок.

в какой лог смотреть? в /var/log/messages нет релевантных сообщений.

Если версия ПО контроллера актуальная - то надо смотреть journalctl -u wb-rules

можно выполнить в консоли

/usr/bin/wb-rules -syslog -editdir /etc/wb-rules/ /usr/share/wb-rules-system/rules/ /etc/wb-rules/ /usr/share/wb-rules/

Будет ли какие-то ошибки?

journalctl -u wb-rules
– Logs begin at Tue 2021-10-12 20:48:04 MSK, end at Wed 2021-10-13 20:39:29 MSK. –
Oct 12 20:48:52 wirenboard-AMB6FMS systemd[1]: Starting LSB: MQTT Rule Engine for Wiren Board…
Oct 12 20:48:57 wirenboard-AMB6FMS systemd[1]: Started LSB: MQTT Rule Engine for Wiren Board.
Oct 12 20:55:04 wirenboard-AMB6FMS systemd[1]: Stopping LSB: MQTT Rule Engine for Wiren Board…
Oct 12 20:55:04 wirenboard-AMB6FMS systemd[1]: Stopped LSB: MQTT Rule Engine for Wiren Board.
Oct 12 20:55:04 wirenboard-AMB6FMS systemd[1]: Starting LSB: MQTT Rule Engine for Wiren Board…

root@wirenboard-AMB6FMS:~# /usr/bin/wb-rules -syslog -editdir /etc/wb-rules/ /usr/share/wb-rules-system/rules/ /etc/wb-rules/ /usr/share/wb-rules/
Device “eth1” does not exist.
Device “ppp0” does not exist.
panic: setValue – but model not active!!!

goroutine 1 [running]:
github.com/contactless/wb-rules/wbrules.(*CellModelDeviceBase).setValue(0x11d68c60, 0x11d1b910, 0x4, 0x0, 0x0, 0x1)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/cell.go:360 +0x16c
github.com/contactless/wb-rules/wbrules.(*Cell).SetValue(0x11ee2740, 0x356d68, 0x5dade0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/cell.go:510 +0x98
github.com/contactless/wb-rules/wbrules.(*CellProxy).SetValue(0x11f4c050, 0x356d68, 0x5dade0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/engine.go:124 +0x38
github.com/contactless/wb-rules/wbrules.(*ESEngine).esWbCellObject.func3(0x2)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/esengine.go:609 +0x14c
github.com/contactless/wb-rules/wbrules.(*ESContext).DefineFunctions.func1(0x11ee44b8, 0xffffffff)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/escontext.go:377 +0x1c
github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape.goCall(0x19c2068, 0x4)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape/duktape.go:193 +0xac
github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape._cgoexpwrap_0c64254be242_goCall(0x19c2068, 0x5)
_cgo_gotypes.go:3124 +0x1c
github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape._Cfunc_duk_pcall(0x19c2068, 0x0, 0x0)
_cgo_gotypes.go:1899 +0x38
github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape.(*Context).Pcall.func1(0x19c2068, 0x0, 0x19f2258)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape/api.go:673 +0x4c
github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape.(*Context).Pcall(0x11d0f7f0, 0x0, 0x11d0f7f0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/go-duktape/api.go:673 +0x28
github.com/contactless/wb-rules/wbrules.(*ESContext).loadScriptFromStringFlags(0x11d4f2c0, 0x11edf3e0, 0x1c, 0x11d73300, 0x1237, 0x2, 0x0, 0x0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/escontext.go:367 +0x13c
github.com/contactless/wb-rules/wbrules.(*ESContext).LoadAndCallFunctionFromString(0x11d4f2c0, 0x11edf3e0, 0x1c, 0x11d73300, 0x1237, 0x3b150a, 0x1)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/escontext.go:352 +0x44
github.com/contactless/wb-rules/wbrules.(*ESContext).LoadScenario(0x11d4f2c0, 0x11edf3e0, 0x1c, 0x11edf3ee, 0xe)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/escontext.go:342 +0x9c
github.com/contactless/wb-rules/wbrules.(*ESEngine).loadScript(0x11deb3c0, 0x11edf3e0, 0x1c, 0x1, 0x366400, 0x0, 0x0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/esengine.go:394 +0x174
github.com/contactless/wb-rules/wbrules.(*ESEngine).LoadFile(0x11deb3c0, 0x11edf3e0, 0x1c, 0x1c, 0x11edac20)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/wbrules/esengine.go:344 +0x34
github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo.(*DirWatcher).loadFile(0x11d70370, 0x11edf3e0, 0x1c, 0x11e70000, 0x1, 0x1)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo/dirwatcher.go:203 +0x158
github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo.(*DirWatcher).loadDir(0x11d70370, 0xbe97cb8e, 0xe, 0x11ed6a00, 0x0, 0x0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo/dirwatcher.go:188 +0x3e4
github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo.(*DirWatcher).doLoad(0x11d70370, 0xbe97cb8e, 0xe, 0x1, 0x0, 0x0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo/dirwatcher.go:214 +0x1a8
github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo.(*DirWatcher).Load(0x11d70370, 0xbe97cb8e, 0xe, 0x0, 0x0)
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/vendor/github.com/contactless/wbgo/dirwatcher.go:248 +0x84
main.main()
/home/jenkins/wbdev/go/src/github.com/contactless/wb-rules/main.go:63 +0x4d8

Что-то непонятно. Дайте, наверно доступ по anydesk - посмотрю.

Версия 1.7 wb-rules? она же крайне старая…

Падает из-за установки Dev вне функции

Рекомендую обновить штатно ПО контроллера. Оно очень устарело.

Как понять, что ПО стало актуальным? была сделана серия apt update && upgrade

текущий релиз - 2108
Screenshot from 2021-10-15 22-00-41