p0lar
(p0lar)
1
Is this something to worry about ? running on Ubuntu latest snapshot and running as openhab:openhab
2016-12-31 16:17:35.073 [WARN ] [java.util.prefs ] - Could not lock User prefs. Unix error code 20.
2016-12-31 16:17:35.073 [WARN ] [java.util.prefs ] - Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
dapanda
(Tadey Stasevych)
2
Having same issue, except different error code.
2017-01-03 21:56:54.143 [WARN ] [java.util.prefs ] - Could not lock User prefs. Unix error code 2.
2017-01-03 21:56:54.143 [WARN ] [java.util.prefs ] - Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Toneus
(TonyC)
3
Effectively, JAVA is trying to do some file lock management. If the JAVA User Root is not set, then Java does not have a path to work with.
I edited runtime/bin/setenv to set the userRoot.
#
# set java options
#
export JAVA_OPTS="${JAVA_OPTS}
-Djava.util.prefs.userRoot=${OPENHAB_HOME}
-Dopenhab.home=${OPENHAB_HOME}
-Dopenhab.conf=${OPENHAB_CONF}
Steve40
(Steve)
4
Did you ever find a solution? I’m getting Error Code 2 also, but the solution below doesn’t help.