Team Elements

Status: Caution PostgreSQL Open Source Initiative (OSI) Java
PUBLIC PROFILE

Back to topics

Issues and Open Discussion

Strange tomcat log

You need to be logged in to post messages

Strange tomcat log

2/6/2007 5:56 AM EST (edited)

Hi,

Im getting this message on my Tomcat 5.5.20 :

Feb 6, 2007 2:50:18 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:50:18 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:50:48 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:50:48 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:51:18 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:51:18 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:51:48 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:51:48 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:52:18 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:52:18 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:52:48 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:52:48 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:53:18 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:53:18 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Feb 6, 2007 2:53:48 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 20.
Feb 6, 2007 2:53:48 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

This message is repeated all day long...

1. 2/7/2007 7:06 PM EST
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

It's probably that the tomcat user doesn't have a home directory. The Java API is trying to store a preference there so that the next time Tomcat restarts Team Elements can find the fileLibrary path.

See if you can login to the o/s as the tomcat user.

2. 2/7/2007 7:21 PM EST
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Alternatively, I found the following that might work...

In the Tomcat startup script, you can add a variable called CATALINA_OPTS, or use an environment variable, with a directory that the tomcat user does have access to...

CATALINA_OPTS="-Djava.awt.headless=true -Djava.util.prefs.userRoot=/var/lib/teamelements/fileLibrary/userPrefs -Djava.util.prefs.systemRoot=/var/lib/teamelements/fileLibrary/systemPrefs"

1. java.awt.headless is used for any server generated graphics
2. the other two specify the directory to write the prefs to (and must already exist with the correct permissions).

Please try and let us know!

3. 4/10/2007 5:31 AM EDT

ok, playing with the CATALINA_OPTS variable did the trick.

Thank you,

Best regards,

Bruno.

3 results found