Fresh openhab3 install on PI4 (openhabian-pi-raspios32-v1.6.2b.img) http://192.168.2.238:9001/ shows the logviewer UI, no errors in the UI and the orange top bar is there. But no logging is shown.
The F12 developer tools, console shows the same error on every refresh (same in chrome, edge and IE)
(repeating:) index.js:83 WebSocket connection to ‘ws://192.168.2.238:9001/socket.io/?EIO=3&transport=websocket’ failed: Error during WebSocket handshake: Unexpected response code: 400
running the tail (copied from the logviewer header bar) command direct on the pi works as expected - showing the logs
tail -f /var/log/openhab/openhab.log /var/log/openhab/events.log
[23:07:29] openhabian@openHABianDevice:~$ sudo service frontail status
● frontail.service - Frontail openHAB instance, reachable at http://openHABianDevice:9001
Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-01-06 21:38:31 CET; 1h 31min ago
Docs: GitHub - mthenw/frontail: 📝 streaming logs to the browser
Main PID: 443 (node)
Tasks: 12 (limit: 4915)
CGroup: /system.slice/frontail.service
├─443 node /usr/lib/node_modules/frontail/bin/frontail --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/openhab.json -t openhab -l 2000 -n 200 /var/l
└─637 tail -n 200 -F /var/log/openhab/openhab.log /var/log/openhab/events.log
Jan 06 21:38:31 openHABianDevice systemd[1]: Started Frontail openHAB instance, reachable at http://openHABianDevice:9001.
Jan 06 21:38:45 openHABianDevice frontail[443]: tail: ‘/var/log/openhab/openhab.log’ has become inaccessible
Jan 06 21:38:45 openHABianDevice frontail[443]: : No such file or directory
Jan 06 21:38:45 openHABianDevice frontail[443]: tail: ‘/var/log/openhab/openhab.log’ has appeared; following new file
Jan 06 21:38:45 openHABianDevice frontail[443]: tail: ‘/var/log/openhab/events.log’ has become inaccessible: No such file or directory
Jan 06 21:38:45 openHABianDevice frontail[443]: tail: ‘/var/log/openhab/events.log’ has appeared; following new file
lines 1-16/16 (END)
I shutdown and restarted the pi a number of times, but no change.
I noticed there was nothing to see in the browser (except from the top bar) directly after install. I’m using OH3 on a Pi3 and know that the logviewer webservice is started before there’s anything to see on port 8080, so i mostly open the logviewer in my browser when waiting for a restart to finish.