WARN about java.util.prefs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

WARN about java.util.prefs

Tomek
Hi All,

after installation of Nexus 2.8.05 open source edition I see in logs a lot of entries like:

jvm 1    | 2014-05-28 07:09:33,229+0000 WARN  [Timer-0] anonymous java.util.prefs - Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
jvm 1    | 2014-05-28 07:10:03,229+0000 WARN  [Timer-0] anonymous java.util.prefs - Could not lock User prefs.  Unix error code 2.

What should I do to get rid of this? I guess this is a file-permission problem, but not sure where to start...

--
Regards,
Tomek Kaczanowski
Reply | Threaded
Open this post in threaded view
|

Re: WARN about java.util.prefs

Tamás Cservenák
It seems that user running the nexus process has not home directory? Or have no perms to write into it?

For start, check out what user runs nexus, and verify his home directory is owned by that same users, and is writable to it.


Thanks,
~t~


On Wed, May 28, 2014 at 9:21 AM, Tomek <[hidden email]> wrote:
Hi All,

after installation of Nexus 2.8.05 open source edition I see in logs a lot
of entries like:

jvm 1    | 2014-05-28 07:09:33,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Couldn't flush user prefs:
java.util.prefs.BackingStoreException: Couldn't get file lock.
jvm 1    | 2014-05-28 07:10:03,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Could not lock User prefs.  Unix error code 2.

What should I do to get rid of this? I guess this is a file-permission
problem, but not sure where to start...

--
Regards,
Tomek Kaczanowski



--
View this message in context: http://maven.40175.n5.nabble.com/WARN-about-java-util-prefs-tp5794248.html
Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: WARN about java.util.prefs

Rich Seddon
In reply to this post by Tomek
One other thing to look at, the file system in the home directory needs to support native file locks, it looks like it might not.

The most common cause of this is using NFS volumes mounted without the client side "lock" option.

The location it is trying to lock is inside "~/.java/.userPrefs". A workaround would be to symlink this directory to a location which does have lock support.

Rich


On Wed, May 28, 2014 at 2:21 AM, Tomek <[hidden email]> wrote:
Hi All,

after installation of Nexus 2.8.05 open source edition I see in logs a lot
of entries like:

jvm 1    | 2014-05-28 07:09:33,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Couldn't flush user prefs:
java.util.prefs.BackingStoreException: Couldn't get file lock.
jvm 1    | 2014-05-28 07:10:03,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Could not lock User prefs.  Unix error code 2.

What should I do to get rid of this? I guess this is a file-permission
problem, but not sure where to start...

--
Regards,
Tomek Kaczanowski



--
View this message in context: http://maven.40175.n5.nabble.com/WARN-about-java-util-prefs-tp5794248.html
Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: WARN about java.util.prefs

Tomek
thanks guys - it is as Tamas suggested - no home dir for "nexus" user

thank you!


On Thu, May 29, 2014 at 5:31 PM, Rich Seddon <[hidden email]> wrote:
One other thing to look at, the file system in the home directory needs to support native file locks, it looks like it might not.

The most common cause of this is using NFS volumes mounted without the client side "lock" option.

The location it is trying to lock is inside "~/.java/.userPrefs". A workaround would be to symlink this directory to a location which does have lock support.

Rich



On Wed, May 28, 2014 at 2:21 AM, Tomek <[hidden email]> wrote:
Hi All,

after installation of Nexus 2.8.05 open source edition I see in logs a lot
of entries like:

jvm 1    | 2014-05-28 07:09:33,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Couldn't flush user prefs:
java.util.prefs.BackingStoreException: Couldn't get file lock.
jvm 1    | 2014-05-28 07:10:03,229+0000 WARN  [Timer-0] anonymous
java.util.prefs - Could not lock User prefs.  Unix error code 2.

What should I do to get rid of this? I guess this is a file-permission
problem, but not sure where to start...

--
Regards,
Tomek Kaczanowski



--
View this message in context: http://maven.40175.n5.nabble.com/WARN-about-java-util-prefs-tp5794248.html
Sent from the Nexus Maven Repository Manager Users List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]





--
Tomasz Kaczanowski
[hidden email]