Can't run Frontail -> Resolved with log.io

  • Platform information:
    • Hardware: Raspberry pi 4 B/4GB
    • OS: Ubuntu Server
    • openHAB version: 3.2.0-1

Hello,
I’ve just installed Frontail, but i can’t manange to start the services, it returns this error:

frontail.service - Frontail openHAB instance, reachable at http://ubuntu:9001
     Loaded: loaded (/lib/systemd/system/frontail.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-02-02 07:34:49 UTC; 3s ago
       Docs: https://github.com/mthenw/frontail
             https://github.com/openhab/openhabian/issues/28
    Process: 724 ExecStart=/usr/local/bin/frontail --ui-highlight -t dark /var/log/openhab/openhab.log /var/log/openhab/events.log (code=exited, status=203/EXEC)
   Main PID: 724 (code=exited, status=203/EXEC)
        CPU: 13ms

I’ve done the steps like in this issues: Frontail installation issues · Issue #431 · openhab/openhabian · GitHub
but nothing…

I manage to see that the path for the frontail it’s not the same as in the link:
Link path: ExecStart=/usr/bin/frontail
My path: ExecStart=/usr/local/bin/frontail

I’ve search for frontail using: find / -name “frontail”, with result:

/usr/local/bin/frontail
/usr/local/lib/node_modules/frontail
/usr/local/lib/node_modules/frontail/bin/frontail

and set up the /etc/systemd/system/frontail.service with the following data:

[Unit]
Description=Frontail openHAB instance, reachable at http://%H:9001
Documentation=https://github.com/mthenw/frontail
Documentation=https://github.com/openhab/openhabian/issues/28
After=openhab.service

[Service]
ExecStart=/usr/local/bin/frontail --ui-highlight -t dark /var/log/openhab/openhab.log /var/log/openhab/events.log
Restart=always
User=ubuntu
Group=ubuntu
Environment=PATH=/usr/local/bin/
Environment=NODE_ENV=production
WorkingDirectory=/usr/local/lib/node_modules/frontail/bin/frontail

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

I don’t understand why it gives the error: 724 (code=exited, status=203/EXEC)

Ubuntu isn’t openHABian/Raspi OS that’s the root cause of your issue.
If you want the openHABian features, you should also use it.
The whole point about openHABian is all the integration work we spent on it.

it’s ubuntu for ras, as in the link.
I opted for this installation option because I have something on raspberry pi that doesn’t work ok on openHAB 3 Distribution.

Choice is yours of course, but now you start seeing the downsides of that.
Apart from that it isn’t recommended to run anything else on a home automation server, it usually will do fine on top of openHABian.

I gave up Frontail and opted for GitHub - NarrativeScience/log.io: Real-time log monitoring in your browser