Neo4j Couldn’t get file lock

Problem

A non-root user is running Neo4j and you are seeing locking errors in the log file

Symptom May 8, 2013 6:20:31 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock User prefs. Unix error code 2. May 8, 2013 6:20:31 PM java.util.prefs.FileSystemPreferences syncWorld WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock. May 8, 2013 . . . → Read More: Neo4j Couldn’t get file lock