- Platform information:
-
Hardware: Raspberry Pi 3 Model B Plus Rev 1.3
-
OS: OpenHABian (3.0.1?)
-
Java Runtime Environment:
openjdk version “11.0.10” 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK Client VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode) -
openHAB version: 3.0.1
-
Dear community,
I have been using OH for some time and decided to start anew with OH3 because my OH2-configuration (items/things) was pretty messed up.
I have installed the latest OpenHABian several times, but the UI does not start on port 8080 of my local server. After many hours of poor troubleshooting attempts (selecting different OH3 branches, updating everything, disabling IPv6) I found out that I can get things working by starting OH manually in a SSH session:
sudo openhab-cli start
When I do that, I can use the UI, configure things/items and everything seems to work just fine. However, it seems I cannot keep the session alive 24/7.
I tried
sudo journalctl -u openhab.service -b
and got a bunch of text that contained the following errors:
Jan 31 07:50:38 openhabian karaf[31406]: !ENTRY org.eclipse.osgi 4 0 2021-01-31 07:50:38.568
Jan 31 07:50:38 openhabian karaf[31406]: !MESSAGE Error reading configuration: /var/lib/openhab/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
Jan 31 07:50:38 openhabian karaf[31406]: !STACK 0
Jan 31 07:50:38 openhabian karaf[31406]: java.io.FileNotFoundException: /var/lib/openhab/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
Jan 31 07:50:38 openhabian karaf[31406]: at java.base/java.io.RandomAccessFile.open0(Native Method)
Jan 31 07:50:38 openhabian karaf[31406]: at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
Jan 31 07:50:38 openhabian karaf[31406]: at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
Jan 31 07:50:38 openhabian karaf[31406]: at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
Jan 31 07:50:38 openhabian karaf[31406]: at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
Jan 31 07:50:38 openhabian karaf[31406]: at org.apache.karaf.main.Main.launch(Main.java:256)
Jan 31 07:50:38 openhabian karaf[31406]: at org.apache.karaf.main.Main.main(Main.java:178)
**Jan 31 07:50:38 openhabian systemd[1]: openhab.service: Main process exited, code=exited, status=255/EXCEPTION**
** Jan 31 07:50:38 openhabian systemd[1]: openhab.service: Failed with result 'exit-code'**.
Similarly with sudo systemctl status openhab.service:
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2021-01-31 09:06:37 CET; 3s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 17358 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
Main PID: 17358 (code=exited, status=255/EXCEPTION)
I found several forum topics concerning OH2 and some similar errors, but I could not figure out if my problem is the same and how I can fix it.
Does anybody know how I can fix this? I really appreciate your help!
Thanks
Tobi