sadly it didn’t work for me. i also changed the “After=openhab.service”
in total there is 3 x “openhab2” in it, on my side.
how does yours look like ? thanks!
PS: for the follow ups, to Write and Exit the vim type “:” then you are on the end of the editor and see the “:” and now just type “:wq” ( write and quit )
@RiotMode You have a typo in your path to event.log, there is a superfluent „t“.
Regarding changing openhab2.service to openhab.service, check which one exists. If it is still openhab2.service, frontail will wait forever, cause no openhab.service is started at all.
Thanks for your help Hans-Jörg, i found the “status” command and get this:
[18:58:09] openhabian@openhab:/var/log/openhab$ sudo systemctl status openhab2.service
Unit openhab2.service could not be found.
[18:58:21] openhabian@openhab:/var/log/openhab$ sudo systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-22 20:03:36 CET; 2 days ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 2903 (java)
Tasks: 221 (limit: 2182)
CGroup: /system.slice/openhab.service
└─2903 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.lo
Dec 25 03:14:31 openhab karaf[2903]: at org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl$1ManagedPaxLoggingService.updated(PaxLoggingServiceImpl.java:569)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1405)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
Dec 25 03:14:31 openhab karaf[2903]: at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
Dec 25 03:14:31 openhab karaf[2903]: at java.base/java.lang.Thread.run(Thread.java:834)
Dec 25 03:14:31 openhab karaf[2903]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Null object returned for RollingFile in Appenders. Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger
Dec 25 03:14:31 openhab karaf[2903]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "LOGFILE" for logger config "root" Ignored FQCN: org.apache.logging.log4j.spi.Abstract
if i check “openhab-cli showlogs” i see this:
[18:59:41] openhabian@openhab:/var/log/openhab$ openhab-cli showlogs
==> /var/log/openhab/audit.log <==
==> /var/log/openhab/events.log <==
2020-12-25 18:59:35.512 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Network_PacketsRecevied' changed from 13642304 to 13645317
2020-12-25 18:59:38.576 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Router2_Time' changed from 15.0 ms to 18.0 ms
2020-12-25 18:59:41.626 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used_Percent' changed from 58.0 to 58.3
2020-12-25 18:59:41.630 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used' changed from 565 to 568
2020-12-25 18:59:41.635 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Sensor_CPUTemp' changed from 58.0 to 57.5
2020-12-25 18:59:41.649 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available' changed from 409 to 406
2020-12-25 18:59:41.653 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available_Percent' changed from 42.0 to 41.7
2020-12-25 18:59:43.657 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Router2_LastSeen' changed from 2020-12-25T18:58:33.465+0100 to 2020-12-25T18:59:38.571+0100
2020-12-25 18:59:44.671 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Sensor_CPUTemp' changed from 57.5 to 56.9
2020-12-25 18:59:47.659 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CurrDateTime' changed from 2020-12-25T18:58:47.656+0100 to 2020-12-25T18:59:47.658+0100
==> /var/log/openhab/openhab.log <==
2020-12-22 19:42:30.565 [TRACE] [thub.hapjava.server.impl.HomekitRoot] - Removed accessory java.util.concurrent.CompletableFuture@1331be5[Completed normally]
2020-12-22 19:42:30.568 [TRACE] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
2020-12-22 19:42:30.570 [TRACE] [thub.hapjava.server.impl.HomekitRoot] - Removed accessory java.util.concurrent.CompletableFuture@1491eb1[Completed normally]
2020-12-22 19:42:30.573 [TRACE] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
2020-12-22 19:42:30.574 [TRACE] [thub.hapjava.server.impl.HomekitRoot] - Removed accessory java.util.concurrent.CompletableFuture@1f01870[Completed normally]
2020-12-22 19:42:30.577 [TRACE] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
2020-12-22 19:42:32.597 [TRACE] [impl.connections.SubscriptionManager] - Removing 0 reverse connections from subscription manager
2020-12-22 19:42:32.599 [TRACE] [impl.connections.SubscriptionManager] - Subscription sizes are 0 and 0
2020-12-22 19:42:32.752 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Trying to dispose handler mqtt:systemBroker:embedded-mqtt-broker but connection is already null. Most likely this is a bug.
2020-12-22 19:42:35.707 [INFO ] [org.openhab.ui.internal.UIService ] - Stopped UI
==> /var/log/openhab/events.log <==
2020-12-25 18:59:47.705 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used_Percent' changed from 58.3 to 58.6
2020-12-25 18:59:47.709 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used' changed from 568 to 571
2020-12-25 18:59:47.711 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Sensor_CPUTemp' changed from 56.9 to 58.0
2020-12-25 18:59:47.719 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available' changed from 406 to 404
2020-12-25 18:59:47.721 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available_Percent' changed from 41.7 to 41.4
2020-12-25 18:59:50.730 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used_Percent' changed from 58.6 to 58.4
2020-12-25 18:59:50.734 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Used' changed from 571 to 569
2020-12-25 18:59:50.745 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available' changed from 404 to 405
2020-12-25 18:59:50.748 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Memory_Available_Percent' changed from 41.4 to 41.6
2020-12-25 18:59:51.227 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:riot' changed from OFFLINE (COMMUNICATION_ERROR): io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.1.100:1883 to OFFLINE
After you have changed this file, did you tried sudo systemctl daemon-reload and after that restarting frontail: sudo systemctl restart frontail?
Also you have to fix your typos in the file, but it looks okay for me.
Anyway @mstormi I have updated multiple openHABian instance with the built-in upgrade function (on supported OS), the openHAB update was always successful, but other services, like frontail and some smaller things were not updated automatically (like in the bash_profile file, which prints the openHAB version on login).
Also the old openhab2.list file in /etc/apt/sources.d/ were not deleted automatically and I got a few warnings on apt update.
I don’t really know what is the scope of the Upgrade process in openHABian, it should only handle openHAB update or other things as well, but this is what I have found after multiple updates.
I’m not sure which upgrade process you refer to, there’s 2 or actually 3 of them:
upgrade of the openHABian code itself.
This is what openhabian-config asks you about every time you start it and there’s updates available
upgrade of ALL the Linux packages triggered via menu option 02
This upgrade the OS itself, all installed optional components and openHAB application itself to their latest versions (note this does NOT trigger the upgrade from OH 2 to 3 because they have different package names)
upgrade of OH 2 to OH 3 triggered via menu options 03 or 42
The openhab2.list repo issue is just a warning, and fixed meanwhile, too.
The non-update of the banner is confusing but just wrong output. It’s a known error that’ll get corrected when we have the time to fix it.
Not sure what the problem is but when I restart openhab : sudo systemctl stop openhab.service The fronttail doens’t work for me anymore (http://192.168.0.36:9001). I have to go to openhabian-config and install it again to get it to work again.
This happens on clean install, everytime. Is this a known bug?
Same problem here, frontail does not work after restart. Tried it several times.
Additionally, in my case, the frontail log viewer does not show anything. When I open the logfiles in an editor, openhab.log only contains some old entries from bootup some hours ago, and events.log is completely empty.
Having the same problem. New fresh install openhab 3. Blank screen when accessing frontal, no log information, just the header, as above the log files do contain entries if I check them using another editor. Have checked the service file as above, all is correct. Also the service is running. Have done 2 full reinstalls and no luck, also have reinstalled log viewer via openhabian-config. And still no change
Don’t know if you’re facing the same problem as me … ( frontail was correctly running without anything displayed in the browse altough new messages arrive in the log … ). To fix it I came back to a previous version of one file [index.html] … see :