Nexus Repository 2 startup fails with "Could not lock User prefs. Couldn't flush user prefs: Couldn't get file lock. "

Nexus Repository 2 makes use of the Java preference store. This is located in $USER_HOME/.java/.userPrefs on Linux systems, and the preference store requires that this location supports file locks.

To fix this problem, either enable file locking on the volume which contains the home directory of the user running Nexus Repository 2 or override the preference store location to point to a volume that has file locking. To do the latter, edit $NEXUS_HOME/bin/jsw/conf/wrapper.conf.

Look for lines like this:"plain ssl"

Add a new line below them like this:<path-to-directory-location-where-prefs-should-be-stored>

Be sure to set the sequence number (shown here as "4") to the next unused sequence number in the list.

Have more questions? Submit a request


Article is closed for comments.