Could Not Lock User Prefs Unix Error Code 2
Contents |
Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. could not lock user prefs. unix error code 24. Problem The following appears in theatlassian-confluence.log about every 2 could not lock system prefs. unix error code 0 milliseconds: 2014-09-28 13:24:33,960 WARN [Timer-10] [java.util.prefs] syncWorld Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file warning: could not lock system prefs. unix error code 7. 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 not lock User prefs. Unix error code warning: could not create system preferences directory. system preferences are unusable. 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] [java.util.prefs] checkLockFile0ErrorCode Could not lock User prefs. Unix error code 2.
Warning: Couldn't Create User Preferences Directory. User Preferences Are Unusable.
-- 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 Confluence has the proper permissions to access this directory.You may use the following commands: chown -R
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 About Us Learn
Checklockfile0errorcode
more about Stack Overflow the company Business Learn more about hiring developers or posting could not lock system prefs. unix error code 6 ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community could not lock user prefs.lock file access denied websphere 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 different users in linux up vote https://confluence.atlassian.com/confkb/could-not-lock-user-prefs-unix-error-code-2-670958391.html 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 directory. System preferences are unusable. May 30, 2014 1:16:55 PM http://stackoverflow.com/questions/23960451/java-system-preferences-under-different-users-in-linux 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 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote accepted Resolved… You can set these settings
the Top Bookmark Subscribe Printer Friendly Page « Message Listing « Previous Topic Next Topic » conorlynch Visitor Posts: 1 Registered: 06-12-2014 controller https://community.appdynamics.com/t5/AppDynamics-Discussions/controller-Installer-system-prefs-unix-error/td-p/9885 Installer system prefs.unix error Hi, I've been installing appdynamics on a VM https://bukkit.org/threads/java-problems-after-updating-to-bukkit-rb.153824/ 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 unpack the 64bit could not 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 root user's password. Contact your administrator in case you don'thave this passwordPasswordAug 14, 2014 12:35:28 PM java.util.prefs.FileSystemPreferences could not lock 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 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. Onlyadministr
04:48:26 [WARNING] Couldn't create user preferences directory. User preferences are unusable. 2013-06-17 04:48:26 [WARNING] java.io.IOException: No such file or directory and 17.06 04:51:27 [Server] WARNING Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. 17.06 04:51:27 [Server] WARNING Could not lock User prefs. Unix error code 2. Please help me, I have a folder .java that has nothing iside, where i think it should be the user preferences directory those are problems showed in the console, this is constantly repeated 17.06 04:51:27 [Server] WARNING Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. 17.06 04:51:27 [Server] WARNING Could not lock User prefs. Unix error code 2. and this is only when I start the server I use a host 2013-06-17 04:48:26 [WARNING] Couldn't create user preferences directory. User preferences are unusable. 2013-06-17 04:48:26 [WARNING] java.io.IOException: No such file or directory BUmp EDIT by Moderator: merged posts, please use the edit button instead of double posting. Last edited by a moderator: Jun 2, 2016 Il_Picasso, Jun 17, 2013 #1 Offline LHammonds Uninstall Java JRE, reboot, install JRE 1.7.0 Update 21 LHammonds, Jun 17, 2013 #2 (You must log in or sign up to reply here.) Show Ignored Content Thread Status: Not open for further replies. Share This Page Tweet Your name or email address: Do you already have an account? No, create an account now. Yes, my password is: Forgot your password? Stay logged in Bukkit Forums Home Forums > Bukkit > Bukkit Help > Home Home Quick Links Recent Activity What's New? Help Forums Forums Quick Links Members Staff Search Forums What's New? Rules Docs About Us Get CraftBukkit BukkitDev Get Plugins Search titles only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... Terms and Rules Curse Enjoy the game Not a Member? Get your Free Account! Sign up for Free! Featured SitesMore Guild Wars 2 Guru Guild Wars 2 Guru The latest and greatest on Tyria. LoL Pro LoL Pro Dominate with Pro LoL guides. MMO-Champion MMO-Champion Keep ahead with the champions of WoW coverage. GW2DB GW2DB Explore Tyria with Curse and GW2DB. Browse Core Curse MMO-Champion WowStead CurseForge WowAce SkyrimForge SC2Mapster LoLPro ExilePro Bukkit Forums Community Minecraft Forum Terraria Online Arena Junkies Guild