Could Not Lock System Prefs. Unix Error Code 2
Contents |
Cloud apps, the contents of this article cannot be applied java.util.prefs.filesystempreferences syncworld to Atlassian Cloud applications. Problem The following appears in
Could Not Lock User Prefs. Unix Error Code 24.
theatlassian-confluence.log about every 2 milliseconds: 2014-09-28 13:24:33,960 WARN [Timer-10] [java.util.prefs] syncWorld Couldn't flush
Could Not Lock System Prefs. Unix Error Code 0
user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username 2014-09-28 13:25:03,958 WARN [Timer-10] [java.util.prefs] checkLockFile0ErrorCode Could
Warning: Could Not Lock System Prefs.unix Error Code 7.
not lock User prefs. Unix error code 2. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username 2014-09-28 13:25:03,960 WARN [Timer-10] [java.util.prefs] syncWorld Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username 2014-09-28 13:25:33,958 WARN [Timer-10] warning: could not create system preferences directory. system preferences are unusable. [java.util.prefs] checkLockFile0ErrorCode Could not lock User prefs. Unix error code 2. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username 2014-09-28 13:25:33,960 WARN [Timer-10] [java.util.prefs] syncWorld Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username 2014-09-28 13:26:03,958 WARN [Timer-10] [java.util.prefs] checkLockFile0ErrorCode Could not lock User prefs. Unix error code 2. -- referer: https://my.site.com | url: /display/SPACE/my+wiki | userName: username Cause This occurs when the user being used to run Confluence does not have a writeable home directory (for example: /home/confluenceor~confluencedidn't exist). It is possible for a plugin to use the preferences module, which defaults to write to ~/.confluence/ Resolution Create the confluence user home directory. This is not $CONFLUENCE_HOME, it is the Linux user directory, for example /home/confluence. Make sure the user running Conflu
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site checklockfile0errorcode About Us Learn more about Stack Overflow the company Business Learn more about warning: couldn't create user preferences directory. user preferences are unusable. hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss could not lock system prefs. unix error code 6 Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up java system preferences under https://confluence.atlassian.com/confkb/could-not-lock-user-prefs-unix-error-code-2-670958391.html 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 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 http://stackoverflow.com/questions/23960451/java-system-preferences-under-different-users-in-linux 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 and if they have is there a simpler solution i am missing? java linux tomcat permissions root share|improve this question edited May 30 '14 at 17:44 Arturo Volpe 1,69111129 asked May 30 '14 at 17:40 Nik 6241825 ad
the Top Bookmark Subscribe Printer Friendly Page « Message Listing « Previous Topic Next Topic » conorlynch https://community.appdynamics.com/t5/AppDynamics-Discussions/controller-Installer-system-prefs-unix-error/td-p/9885 Visitor Posts: 1 Registered: 06-12-2014 controller Installer system prefs.unix error Hi, I've been installing appdynamics on a VM to test without difficulty. I'm just after starting an install on a dedicated machine and get the below just after agreeing to the license: setup sofar - centos 6.5, 64 bit, groupadd appd useradd could not appdyn -g appd su - appdyn unpack the 64bit controller & start the install Enter AppDynamics Controller database root user's passwordThe database root user is the superuser account that has all the privilegesnecessary to administer the AppDynamics Controller database. Onlyadministrators of the AppDynamics Controller are expected to know thedatabase could not lock root user's password. Contact your administrator in case you don'thave this passwordPasswordAug 14, 2014 12:35:28 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCodeWARNING: Could not lock System prefs.Unix error code 0.Aug 14, 2014 12:35:28 PM java.util.prefs.FileSystemPreferences syncWorldWARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.Aug 14, 2014 12:35:58 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode Any ideas? Obviously enough I'm not installing as root - home directory for appdyn is writable, is this looking for access to /etc/.java/.systemprefs to write files? Cheers, controller Installer system prefs.unix error Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content 08-14-2014 04:51 AM Hi, I've been installing appdynamics on a VM to test without difficulty. I'm just after starting an install on a dedicated machine and get the below just after agreeing to the license: setup sofar - centos 6.5, 64 bit, groupadd appd useradd appdyn -g appd su - appdyn u