successfully moved my system to 4.1.1 from 3.4.5 running on a new platform
New platform is RPI 4 4Gb running bookworm OS
Installed OH with Apt, restored from a backup of my old system and then upgraded to 4.1.1
So far OH is running fine but when I start the console using openhab-cli console I get the following error:
Failed to load native library:jansi-2.4.0-d0428f62adbf797e-libjansi.so. osinfo: Linux/arm
java.lang.UnsatisfiedLinkError: /var/lib/openhab/tmp/jansi-2.4.0-d0428f62adbf797e-libjansi.so: /var/lib/openhab/tmp/jansi-2.4.0-d0428f62adbf797e-libjansi.so: cannot open shared object file: No such file or directory
Any ideas what is causing the error, or how to troubleshoot?
What is the permission of the folder /var/lib/openhab/tmp:
ls -ld /var/lib/openhab/tmp
drwxrwxr-x 12 openhab openhab 4096 Nov 26 11:59 /var/lib/openhab/tmp
Assumed you get the error message on openhabian getting the error message for user openhabian make sure that the directory is group writeable ( chmod g+w /var/lib/openhab/tmp )
In case you don’t use the openhabian distribution which user do you use when you run openhab-cli console command and what is the output of id usernamehere ( replace usernamehere with the name of the user that you use to run openhab-cli command.
ok. Then try to execute: sudo chmod ugo+w /var/lib/openhab/tmp
or add the pi user to group openhab and make sure that /var/lib/openhab/tmp is writeable for the group openhab.