Errors when stopping openhab2 service: Unable to acquire the state change lock for the module: osgi.identity

Hello community,
maybe someone can help me to investigate the root cause of this error.
It always happens when I stop openhab2 service with

sudo systemctl stop openhab2.service

The error already occured with openhab 2.2 stable and I hoped that I could get rid of it after todays update to openhab 2.3.0 stable with

sudo apt-get update
sudo apt-get upgrade

Prior to updating, I deleted nearly everything from

/var/lib/openhab2/

except files in

/var/lib/openhab2/config, /var/lib/openhab2/etc, /var/lib/openhab2/persistence

Environment:

  • apt installation of openhab2 2.3.0-1 stable (migrated from 2.2 stable)
  • Debian 9.4 (amd64)
  • openjdk-8-jre-headless (8u171-b11)
root@smarthome:~ # cat /var/log/syslog
May 28 15:28:56 smarthome systemd[1]: Stopping openHAB 2 - empowering the smart home...
May 28 15:29:01 smarthome karaf[16205]: org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="3.12.50.v20170928-1321"; osgi.identity="org.eclipse.osgi"; singleton:="true" [id=0] STOPPED [STOPPED]
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncStop(EquinoxBundle.java:156)
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
May 28 15:29:01 smarthome karaf[16205]: #011at org.apache.karaf.main.Main$2$1.run(Main.java:355)
May 28 15:29:01 smarthome karaf[16205]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
May 28 15:29:01 smarthome karaf[16205]: #011at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
May 28 15:29:21 smarthome systemd[1]: Stopped openHAB 2 - empowering the smart home.

Can someone give me a hint where to look at?
Many thanks in advance!

You could try Zulu or Oracle’s JVM (8)
Maybe (?) this is due to openJDK’s JVM