OH2 not starting upgrade 20170101125906

Hi,I have openHAB2 online running since mid November 2016.
After I made an upgrade today with apt-get upgrade oH2 didn’t starting.

Start-Date: 2017-01-01 19:16:22
Commandline: apt-get upgrade
Upgrade: openhab2-online:armhf (2.0.0~20170101125906, 2.0.0~20170101125906)
End-Date: 2017-01-01 19:16:46

The openHAB2 Service was running but no access to OH2 website and no LOG File entry
What can I do ?

● openhab2.service - openHAB 2 - empowering the smart home
_ Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)_
_ Active: active (running) since So 2017-01-01 19:42:13 CET; 16s ago_
_ Docs: http://docs.openhab.org_
_ https://community.openhab.org_
_ Process: 1783 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=3)_
_ Main PID: 2356 (karaf)_
_ CGroup: /system.slice/openhab2.service_
_ ├─2356 /bin/bash /usr/share/openhab2/runtime/bin/karaf server_
_ └─2506 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/openhab2 -Dfelix…_

Jan 01 19:42:21 cubie start.sh[2356]: at org.apache.karaf.main.Main.createLock(Main.java:439)
Jan 01 19:42:21 cubie start.sh[2356]: … 3 more
Jan 01 19:42:21 cubie start.sh[2356]: Caused by: java.lang.RuntimeException: Could not create file lock: Invalid karaf.lock.dir system property ‘/var/lib/openhab2/tmp’ : does not exist
Jan 01 19:42:21 cubie start.sh[2356]: at org.apache.karaf.main.lock.SimpleFileLock.(SimpleFileLock.java:58)
Jan 01 19:42:21 cubie start.sh[2356]: … 8 more
Jan 01 19:42:21 cubie start.sh[2356]: Caused by: java.lang.IllegalArgumentException: Invalid karaf.lock.dir system property ‘/var/lib/openhab2/tmp’ : does not exist
Jan 01 19:42:21 cubie start.sh[2356]: at org.apache.karaf.main.lock.SimpleFileLock.validateDirectoryExists(SimpleFileLock.java:117)
Jan 01 19:42:21 cubie start.sh[2356]: at org.apache.karaf.main.lock.SimpleFileLock.getKarafLock(SimpleFileLock.java:93)
Jan 01 19:42:21 cubie start.sh[2356]: at org.apache.karaf.main.lock.SimpleFileLock.(SimpleFileLock.java:46)
Jan 01 19:42:21 cubie start.sh[2356]: … 8 more
ingo@cubie:/usr/share/openhab2$

same here :confused:

Same here,
I had this error in /var/log/daemon.log:

“Could not create file lock: Invalid karaf.lock.dir system property ‘/var/lib/openhab2/tmp’ : does not exist”

Creating the “tmp” dir fix the issue for me.
Greetings
Marc

btw. happy new year.

Same here to. :-S

Looks like a bug in the Debian package that the tmp folder isn’t created automatically.
I have created an issue to track this.

Thank you all

Creating the missing folder fixed the problem
/var/lib/openhab2/tmp

1 Like

For me too,
thx! :wink:

For me not fix the error
is necesary put anything in side of path?

Only creating the dir and change the owner of the dir to openhab “chown openhab:openhab tmp”.

1 Like

thanks very much now it’s working

1 Like

Same issue for me, but creating the /tmp directory fixed. Thanks!