Frontail on Dietpi with Openhab2.5

  • Platform information:

    • Hardware: RPi 4 4GB
    • OS: DietPi (latest version)
    • Java Runtime Environment: ???
    • openHAB version: 2.5
  • Issue of the topic: please be detailed explaining your issue
    I installed frontail on my Dietpi Pi4 to log openhab over my browser at work. I setup frontail with help of this board [SOLVED] Logview on ubuntu and some changes I entered in the service-file. When I start the service my Pi say it runs but when I try to open the browser there is no connection (page not found). When I start frointail manualy without the servicefile it works. Where is my error?

  • Please post configurations (if applicable):
    frontail.service

#!/bin/sh -

[Unit]
Description=Frontail
After=openhab2.service

[Service]
ExecStart=/usr/local/bin/frontail --ui-highlight -t dark /opt/openhab2/userdata/logs/openhab.log /opt/openhab2/userdata/logs/events.log
Restart=always
User=root
Group=root
Environment=PATH=/usr/local/bin/
Environment=NODE_ENV=production
WorkingDirectory=/usr/local/bin/

[Install]
WantedBy=multi-user.target
Alias=frontail.service

systemctl status frontail.service

root@DietPi:~# systemctl status frontail.service 
frontail.service - Frontail
   Loaded: loaded (/lib/systemd/system/frontail.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-08-24 14:03:16 CEST; 295ms ago
 Main PID: 1906 (node)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/frontail.service
           └─1906 node /usr/local/bin/frontail --ui-highlight -t dark /opt/openhab2/userdata/logs/openhab.log /opt/openhab2/userdata/logs/events.log

I think it might be worth reporting this on the DietPi forum, as I’ve just seen this same behaviour on an ODroid C2 and C4.

However, only running 1 log file in the service file, it will work perfectly.

Likewise, running the full command from a prompt works perfectly.

I’ve also just fired up Ubuntu 20 on a C4 and the service file you have above works perfectly.