Could Not Lock User Prefs Unix Error Code 2 Glassfish
Contents |
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. could not lock user prefs. unix error code 24. Dec 14, 2011 9:29:21 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could could not lock system prefs. unix error code 0 not lock User prefs. Unix error code 2. Cause This occurs when the
Warning: Could Not Lock System Prefs. Unix Error Code 7.
user being used to run aJIRA applicationdoesn't have a writeable home directory (for example: /home/jiraor~jiradidn't exist). It is possible for a plugin
Warning: Could Not Create System Preferences Directory. System Preferences Are Unusable.
to use the prefs module, which defaults to write to ~/.jira/ It is possible the home directory was not created as part of the installation as process, as tracked under JRA-33595 - jira installer does not create the jira home directory when it creates the warning: couldn't create user preferences directory. user preferences are unusable. user Resolved . Resolution Create the user home directory. This is not $JIRA_HOME, it is the Linux user directory, for example /home/jira. Make sure the user running JIRA application has the proper permissions to access this direct If changing the permissions didn't have any effect, add the followingJVM parameter:-Djava.util.prefs.userRoot=/
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Could Not Lock System Prefs. Unix Error Code 6
workings and policies of this site About Us Learn more about checklockfile0errorcode Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions could not lock user prefs.lock file access denied websphere Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. https://confluence.atlassian.com/jirakb/could-not-lock-user-prefs-unix-error-code-2-270829588.html Join them; it only takes a minute: Sign up java system preferences under different users in linux up vote 6 down vote favorite 3 I'm trying to run multiple jvms (including tomcat) under different users on one linux box. I'm not seeing too many issues, but in catalina.out I keep seeing this: May 30, 2014 1:16:16 PM org.apache.catalina.startup.Catalina start http://stackoverflow.com/questions/23960451/java-system-preferences-under-different-users-in-linux INFO: Server startup in 7626 ms May 30, 2014 1:16:37 PM java.util.prefs.FileSystemPreferences$2 run WARNING: Could not create system preferences directory. System preferences are unusable. May 30, 2014 1:16:55 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock System prefs. Unix error code -158097957. May 30, 2014 1:16:55 PM java.util.prefs.FileSystemPreferences syncWorld WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. I did some digging/reading and deduced the following: An administrator with root access must create the system preferences directory /etc/.java/.systemPrefs with drwxr-xr-x access. Java's looking for /etc/.java/.systemPrefs/.system.lock and /etc/.java/.systemPrefs/.systemRootModFile Manually creating the above files (use "touch" to create empty files) and their containing directories should fix. Rights to the files should be 544, rights to their directories should be 755, owner and group are root for all. But I am not root, getting someone to run root is expensive and I have multiple users running jvms, does that mean i have to create those files and set up permissions just so that all users have access with those privileges? Has anyone ever run into this issue an
flush user prefs: Couldn't get file lock.Agile Board ExportXMLWordPrintable Details Type: Bug Status: Closed Priority: Minor Resolution: Won't Fix Affects Version/s: 1.7.1 Fix Version/s: None Component/s: None Labels: None Environment: CentOS 5.1, sonatype-work https://issues.sonatype.org/browse/nexus-3671 folder running on an NFS share Description Seeing the following in the wrapper.log file: jvm 1 | 2010-07-26 19:23:49 WARN [Timer-1 ] - java.util.prefs - Could not lock User prefs. Unix error code 2. jvm 1 | 2010-07-26 19:23:49 WARN [Timer-1 ] - java.util.prefs - Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. I'm wondering if this is could not just a warning or if it is actually an error code and cannot save updates to user preferences. It is likely caused because the underlying FS (NFS) does not support file-level locking. Issue Links relates NEXUS-6360 Consider making java prefs store location under sonatype-work/nexus/prefs Closed Activity All Comments Work Log History Activity Ascending order - Click to sort in descending could not lock order Hide Permalink Alexander added a comment - 03/29/12 08:34 AM I'm facing the same issue on Debian. Show Alexander added a comment - 03/29/12 08:34 AM I'm facing the same issue on Debian. 9 older comments Hide Permalink Sonatype Support added a comment - 08/20/13 09:46 PM This issue has not been updated for 5 business days. If you have an update, please use the "Add Comment" action to let us know. If you have no other questions, please close this issue. If no update is received in the next 5 business days, this issue will be automatically closed. Thank you, The Sonatype Support Team Show Sonatype Support added a comment - 08/20/13 09:46 PM This issue has not been updated for 5 business days. If you have an update, please use the "Add Comment" action to let us know. If you have no other questions, please close this issue. If no update is received in the next 5 business days, this issue will be automatically closed. Thank you, The Sonatype Support Team Hide Permalink David Ericks