Frontail - connection refused

I am having problems getting Frontail working on OH 3.1 New install on a x86 machine. I have looked and cannot find a solution to the preset error below.

Any thoughts on what to try next?

Jul 10 08:53:01 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.
openhabian@openhabian:~ $ sudo systemctl status frontail.service
● frontail.service - Frontail openHAB instance, reachable at http://openhabian:9001
   Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-07-10 08:55:52 CDT; 1s ago
     Docs: https://github.com/mthenw/frontail
 Main PID: 5635 (node)
    Tasks: 7 (limit: 2301)
   Memory: 12.1M
   CGroup: /system.slice/frontail.service
           └─5635 node /usr/lib/node_modules/frontail/bin/frontail --disable-usage-stats --ui-highlight --ui-highlight-preset /usr/lib/node_modules/frontail/preset/openhab_AEM.json --theme op

Jul 10 08:55:52 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.

openhabian@openhabian:~ $ sudo journalctl -xu frontail
-- Logs begin at Sat 2021-07-10 08:41:42 CDT, end at Sat 2021-07-10 09:03:13 CDT. --
Jul 10 08:41:44 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.
-- Subject: A start job for unit frontail.service has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit frontail.service has finished successfully.
--
-- The job identifier is 91.
Jul 10 08:41:50 openhabian frontail[493]: /usr/lib/node_modules/frontail/index.js:121
Jul 10 08:41:50 openhabian frontail[493]:       throw new Error(`Preset file ${presetPath} doesn't exists`);
Jul 10 08:41:50 openhabian frontail[493]:       ^
Jul 10 08:41:50 openhabian frontail[493]: Error: Preset file /usr/lib/node_modules/frontail/preset/openhab_AEM.json doesn't exists
Jul 10 08:41:50 openhabian frontail[493]:     at Object.<anonymous> (/usr/lib/node_modules/frontail/index.js:121:13)
Jul 10 08:41:50 openhabian frontail[493]:     at Module._compile (internal/modules/cjs/loader.js:778:30)
Jul 10 08:41:50 openhabian frontail[493]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Jul 10 08:41:50 openhabian frontail[493]:     at Module.load (internal/modules/cjs/loader.js:653:32)
Jul 10 08:41:50 openhabian frontail[493]:     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
Jul 10 08:41:50 openhabian frontail[493]:     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Jul 10 08:41:50 openhabian frontail[493]:     at Module.require (internal/modules/cjs/loader.js:692:17)
Jul 10 08:41:50 openhabian frontail[493]:     at require (internal/modules/cjs/helpers.js:25:18)
Jul 10 08:41:50 openhabian frontail[493]:     at Object.<anonymous> (/usr/lib/node_modules/frontail/bin/frontail:2:1)
Jul 10 08:41:50 openhabian frontail[493]:     at Module._compile (internal/modules/cjs/loader.js:778:30)
Jul 10 08:41:50 openhabian systemd[1]: frontail.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit frontail.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jul 10 08:41:50 openhabian systemd[1]: frontail.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit frontail.service has entered the 'failed' state with result 'exit-code'.
Jul 10 08:41:51 openhabian systemd[1]: frontail.service: Service RestartSec=100ms expired, scheduling restart.
Jul 10 08:41:51 openhabian systemd[1]: frontail.service: Scheduled restart job, restart counter is at 1.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit frontail.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Jul 10 08:41:51 openhabian systemd[1]: Stopped Frontail openHAB instance, reachable at http://openhabian:9001.

type or paste code here

in my setup the file is available.
Did you try to re-install frontail ?
What else json files are available in directory /usr/lib/node_modules/frontail/preset/ ?

I used openhabian to reinstall frontail several times. I turned on the logging for openhabian and there are no errors during the frontail install.

I found a copy for openhab_AEM.json on github and copied the contents - frontail now works.

Wonder why openhabian is not installing the file?

I removed the directory containing all the presets and reinstalled frontail.
The directory with the presets including openhab_AEM.json was created again.

Weird - are you able to post the contents of that file - the one I copied works but the output is terrible :slight_smile:

I also checked if the content is the same as in the one that I had before and it is.
openhab_AEM.json (2.3 KB)

Thank you - interestingly the contents are the same as the one I found on github. However, the log output is vastly different from the install I had when testing on a Pi4. I currently am using an x86 install. I should have kept the Pi install handy :frowning:

In that folder are also other files. Try to use the default one. In case that does not help you can try to get an older version of the openhab_AEM.json file from github. As far as I remember there is also a thead about a customized version here in the forum - may be that one fits more to your requirements.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.