Upgraded to openhab 3.2 from 3.1.1 now it does nothing anymore?!?

Dear all,

I upgraded to 3.2 from 3.1.1 using openhabian-config. The issue I now have is that the UI does not start and it appears not to do anything else anymore either. The log file openhab.log just shows:

2021-12-20 23:30:33.492 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080

but going to the page just brings up an empty page, not even a 404 or connection error. Events.log is just completely empty.

Any idea how to fix?
How would I go about downgrading to 3.1.1 again?

Thank you,

Ramon

I assume you already have tried restarting and clearing the cache ?
With regard to how to downgrade you may have a look at this thread: Downgrade from 3.1.0 to 3.0.1

I actually had not tried to clear the cache. I did it now, but seems not to have helped. I did find some additional information:

openhabian@openhabian:~ $ sudo /bin/systemctl status openhab.service
● openhab.service - openHAB instance, reachable at http://openhabian:8080
     Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/openhab.service.d
             └─override.conf
     Active: active (running) since Tue 2021-12-21 17:32:34 CET; 5min ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 869 (java)
      Tasks: 14 (limit: 2178)
        CPU: 17.342s
     CGroup: /system.slice/openhab.service
             └─869 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/ope>

Dec 21 17:32:53 openhabian karaf[869]: Caused by: java.lang.RuntimeException: Karaf can't startup, make sure the log file can be accessed and written by the user starting Karaf : /var/lib/>
Dec 21 17:32:53 openhabian karaf[869]:         at org.apache.karaf.main.lock.SimpleFileLock.<init>(SimpleFileLock.java:55)
Dec 21 17:32:53 openhabian karaf[869]:         ... 8 more
Dec 21 17:32:53 openhabian karaf[869]: Caused by: java.io.FileNotFoundException: /var/lib/openhab/tmp/lock (Permission denied)
Dec 21 17:32:53 openhabian karaf[869]:         at java.base/java.io.RandomAccessFile.open0(Native Method)
Dec 21 17:32:53 openhabian karaf[869]:         at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
Dec 21 17:32:53 openhabian karaf[869]:         at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
Dec 21 17:32:53 openhabian karaf[869]:         at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
Dec 21 17:32:53 openhabian karaf[869]:         at org.apache.karaf.main.lock.SimpleFileLock.<init>(SimpleFileLock.java:53)
Dec 21 17:32:53 openhabian karaf[869]:         ... 8 more

Looks like a file permission issue? I do see that the tmp directory is owned by root, and also the file “lock” in that directory, while all the other directories are owned by openhab (or openhabian):

openhabian@openhabian:/var/lib/openhab $ ls -l
total 68
drwxrwsr-x 2 openhab openhab     4096 Dec 19 18:20 backups
drwxr-xr-x 3 openhab openhab     4096 Dec 21 17:29 cache
drwxrwxr-x 6 openhab openhab     4096 Dec 20 22:49 config
drwxrwxr-x 3 openhab openhab    12288 Dec 20 23:37 etc
-rw-rw-r-- 1 openhab openhab    15517 Dec 14 19:43 hs_err_pid3833.log
drwxrwxr-x 3 openhab openhab     4096 Dec 14 19:43 jsondb
drwxrwxr-x 1 openhab openhabian  4096 Dec 21 17:32 persistence
drwxrwxr-x 2 openhab openhab     4096 Dec 14 19:43 secrets
drwxr-xr-x 4 root    root        4096 Dec 21 17:31 tmp
-rw-rw-r-- 1 openhab openhab       36 Dec 14 19:43 uuid
drwxrwxr-x 3 openhab openhab     4096 Dec 18 21:47 zigbee
drwxrwxr-x 2 openhab openhab     4096 Dec 19 16:14 zwave

Should I change the ownership of the directory and files therein? To openhab/openhab?

Thank you Ramon

Yes, /var/lib/openhab/tmp and content needs to be owned by openhab:openhab.

After changing those, and then it complained about the logs, so i just did a chown -r and that fixed it.

Thank you!

1 Like

thanks for the awesome information.
https://ometv.onl/ https://chatroulette.top/

1 Like