I tried with this, but don’t work. When i open http://openhabianpi/frontail this message appears: 502 Bad Gateway nginx/1.10.3
This is the config file:
I noticed that your frontail config looks bad at the end of the ExecStart line: /var/log/openhab2/events.l$. Is that just a copy-paste error in the forum? Otherwise that probably prevents frontail from running. What does systemctl status frontail report?
In the config file is correct, it’s a copy and paste error, but you are true, the frontail not start correctly.
This is the return code next this command systemctl status frontail
● frontail.service - Frontail openHAB instance, reachable at http://openHABianPi:9001/frontail
Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-10-21 00:37:20 CEST; 7h ago
Oct 21 00:37:20 openHABianPi systemd[1]: frontail.service: Failed with result ‘exit-code’.
Oct 21 00:37:20 openHABianPi systemd[1]: frontail.service: Service hold-off time over, scheduling restart.
Oct 21 00:37:20 openHABianPi systemd[1]: Stopped Frontail openHAB instance, reachable at //openHABianPi:9001/frontail.
Oct 21 00:37:20 openHABianPi systemd[1]: frontail.service: Start request repeated too quickly.
Oct 21 00:37:20 openHABianPi systemd[1]: Failed to start Frontail openHAB instance, reachable at //openHABianPi:9001/frontail.
Oct 21 00:37:20 openHABianPi systemd[1]: frontail.service: Unit entered failed state.
Oct 21 00:37:20 openHABianPi systemd[1]: frontail.service: Failed with result ‘exit-code’.
Warning: frontail.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.
Unit report.service could not be found.
Ok, then at least we have found where the error is, now we just need to figure out what it is. What happens if you just copy the entire line after ExecStart= and try to run it from the command line?
Hmm, did it work before you made the changes to the frontail.service-file? How did you install frontail? Try reinstalling it from the openhabian-config utility, just to make sure everything gets installed correctly.
Yes, now i changed this line nginx config file:
from: proxy_pass http://localhost:9001/frontail;
to: proxy_pass http://localhost:9001;
and all work fine!!
Thank you so much for the time you spent!