Not sure if this is the correct board for bug reports.
Just installed 3.2 Release build and working in the console (by openhab-cli console OR by ssh it is the same)
Password:
**/var/lib/openhab/tmp/jansi-2.4.0-34b1e19254185a22-libjansi.so.lck (Permission denied)**
_ _ _ ____
___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/
|_| 3.2.0 - Release Build
Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.
**Error in initialization script: /var/lib/openhab/etc/shell.init.script: /var/lib/openhab/etc/shell.init.script**
openhab>
It does not seem to be an actual permission issue…
admin@flcozy:~$ ls -l /var/lib/openhab
total 40
drwxr-xr-x 3 openhab openhab 4096 Dec 22 11:50 cache
drwxr-xr-x 5 openhab openhab 4096 Dec 22 15:47 config
drwxr-xr-x 3 openhab openhab 4096 Dec 22 16:40 etc
drwxr-xr-x 3 openhab openhab 4096 Dec 22 14:26 jsondb
drwxr-xr-x 3 openhab openhab 4096 Dec 22 13:36 marketplace
drwxr-xr-x 2 openhab openhab 4096 Dec 22 11:50 pax-web-jsp
drwxr-xr-x 5 openhab openhab 4096 Dec 22 11:44 persistence
drwxr-xr-x 2 openhab openhab 4096 Dec 22 11:50 secrets
drwxrwxr-x 9 openhab openhab 4096 Dec 22 15:47 tmp
drwxr-xr-x 2 openhab openhab 4096 Dec 23 10:18 zwave
Here are some details:
openhab> shell:info
Karaf
Karaf version 4.3.4
Karaf home /usr/share/openhab/runtime
Karaf base /var/lib/openhab
OSGi Framework org.eclipse.osgi-3.16.300.v20210525-1715
JVM
Java Virtual Machine OpenJDK 64-Bit Server VM version 11.0.13+8-LTS
Version 11.0.13
Vendor Azul Systems, Inc.
Pid 14487
Uptime 19 hours 5 minutes
Process CPU time 10 minutes
Process CPU load 0.00
System CPU load 0.00
Open file descriptors 1,945
Max file descriptors 102,642
Total compile time 2 minutes
Threads
Live threads 142
Daemon threads 90
Peak 221
Total started 11096
Memory
Current heap size 118,460 kbytes
Maximum heap size 2,009,088 kbytes
Committed heap size 261,120 kbytes
Pending objects 0
Garbage collector Name = 'G1 Young Generation', Collections = 73, Time = 1.073 seconds
Garbage collector Name = 'G1 Old Generation', Collections = 0, Time = 0.000 seconds
Classes
Current classes loaded 19,004
Total classes loaded 19,571
Total classes unloaded 567
Operating system
Name Linux version 5.11.0-43-generic
Architecture amd64
Processors 4
openhab> shell:exec whoami
openhab
openhab>
admin@flcozy:~$ sudo ps aux | grep openhab
openhab 14487 0.9 6.9 5968340 558640 ? Ssl Dec22 10:55 /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.logdir=/var/log/openhab -Dfelix.cm.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dnashorn.args=--no-deprecation-warning -Dorg.apache.cxf.osgi.http.transport.disable=true -Dorg.ops4j.pax.web.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:+UseG1GC --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED --patch-module java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.3.4.jar --patch-module java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.3.4.jar --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports=java.security.sasl/com.sun.security.sasl=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/var/lib/openhab -Dkaraf.etc=/var/lib/openhab/etc -Dkaraf.log=/var/log/openhab -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab/tmp -Djava.util.logging.config.file=/var/lib/openhab/etc/java.util.logging.properties -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.3.4.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.jaas.boot-4.3.4.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.main-4.3.4.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.specs.activator-4.3.4.jar:/usr/share/openhab/runtime/lib/boot/osgi.core-7.0.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/istack-commons-runtime-3.0.10.jar:/usr/share/openhab/runtime/lib/jdk9plus/jakarta.xml.bind-api-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.annotation-api-1.3.2.jar:/usr/share/openhab/runtime/lib/jdk9plus/jaxb-runtime-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/org.apache.servicemix.specs.activation-api-1.2.1-1.2.1_3.jar:/usr/share/openhab/runtime/lib/jdk9plus/txw2-2.3.3.jar org.apache.karaf.main.Main
admin@flcozy:~$ /usr/bin/java --version
openjdk 11.0.13 2021-10-19 LTS
OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)
admin@flcozy:~$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Apr 24 2021 /usr/bin/java -> /etc/alternatives/java
admin@flcozy:~$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 28 Nov 27 10:06 /etc/alternatives/java -> /usr/lib/jvm/zulu11/bin/java