Log Viewer lost

After restart my RaspberryPi 2 (OHab 2.3) I cannot access “Openhab Log Viewer” anymore (http://openhabianpi:9001/). The error displayed in the webpage:
ERR_CONNECTION_REFUSED.

I tried to restart several times (also: sudo systemctl restart openhab2.service) without any success.

Any ideea how to fix that?
Thanks.

Have you tried with your server IP address e.g. 10.0.1.20:9001

Yes, but not working either.

Check the dashboard.cfg file in /etc/openhab2/services at the top you should have something similar to
frontail.link-name=openHAB Log Viewer

frontail.link-url=http://{HOSTNAME}:9001

1 Like

I think I have it right:

frontail.link-name=openHAB Log Viewer
frontail.link-url=http://openHABianPi:9001

Try clearing the cache and tmp files with sudo systemctl stop openhab2.service then sudo openhab-cli clean-cache and sudo systemctl start openhab2.service

Followed your steps… no result.

Check if you still have this file:
/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

sudo nano /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg
shows me an empty page. So the file exist.

sudo nano creates a file. Move to the directory and see whats there. Use cd /var/lib/openhab2/etc hit enter then type ls to see everything in the directory. To view the file use cat org.ops4j.pax.logging.cfg

cat: org.ops4j.pax.logging.cfg: No such file or directory

Did you use cat from the home directory? If so you need to specify the full path cat /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

That may be the reason you’ve lost the log viewer. Use openhabian tool to try and reinstall.

Do I have to reinstall the whole system or there is an option for the Viewer Log only?

There is an option for log viewer. sudo openhabian-config then select “optional components” then log viewer is the first selection.

1 Like

No luck at all :frowning:
Not able even to reinstall Log Viewer from openhabian-config:

2018-10-20_17:50:53_EEST [openHABian] Installing the openHAB Log Viewer (frontail)...
$ npm install -g frontail
node: symbol lookup error: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: undefined symbol: _ZTISi, version GLIBCXX_3.4
FAILED (frontail)

Do you have a recent backup?

Unfortunatelly not.

Make one using sudo openhab-cli backup and move that file to your PC or somewhere other than OH. The backup zip will be in /var/lib/openhab2/backups directory.