We're Hiring!

omero.server and omero.web

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: omero.server and omero.web

Postby bhcho » Wed Jun 09, 2010 3:40 pm

Is there any way to avoid the "nasty locking issues with files in OMERO root and JVM directories" in my circumstances?

I can re-install the OMERO server anyway to the server. but changing the circumstances is not an option now.

Do I need to wait for the version 4.2?
bhcho
 
Posts: 236
Joined: Mon Apr 05, 2010 2:15 pm

Re: omero.server and omero.web

Postby cxallan » Fri Jun 11, 2010 8:42 am

I don't see a particular reason to wait for 4.2 as it applies to this particular problem, no. First step would be to ensure that permissions are correct on the folders where the temporary and lock files are. Here are some of these errors from the log:

Code: Select all
2010-04-30 15:32:13,651 ERROR [              omero.util.TempFileManager] (MainThread) rmtree error: remove('/afs/cs.cmu.edu/user/bhcho/omero/tmp/omero_bhcho/9360/.lock') => [Errno 13] Permission denied: '/afs/cs.cmu.edu/user/bhcho/omero/tmp/omero_bhcho/9360/.lock'
2010-04-30 15:32:13,651 ERROR [              omero.util.TempFileManager] (MainThread) rmtree error: rmdir('/afs/cs.cmu.edu/user/bhcho/omero/tmp/omero_bhcho/9360') => [Errno 13] Permission denied: '/afs/cs.cmu.edu/user/bhcho/omero/tmp/omero_bhcho/9360'
...
2010-04-30 15:25:23,317 WARN  [        ome.services.util.ServiceHandler] (l.Server-8) Unknown exception thrown.

java.lang.SecurityException: Could not lock User prefs.Lock file access denied.
        at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:919)
        at java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:908)
        at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:714)
...
Exception in thread "Timer-0" java.lang.SecurityException: Could not lock User prefs.Lock file access denied.
        at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:919)
        at java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:908)
        at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:714)
        at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
        at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:451)
        at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:33)
        at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:419)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-0" java.lang.SecurityException: Could not lock User prefs.Lock file access denied.
        at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:919)
        at java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:908)
        at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:714)
        at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
        at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:451)
        at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:33)
        at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:419)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

Should be in /afs/cs.cmu.edu/user/bhcho/.java/...


It also may help to examine the global preferences directory here:

Code: Select all
2010-04-30 10:29:24,408 WARN  [                         java.util.prefs] (      main) Prefs file removed in background /afs/cs.cmu.edu/misc/java/amd64_f10/jdk1.6.0_16/libexec/jdk1.6.0_16-64bit/jre/.systemPrefs/prefs.xml
...


The locking and shared storage semantics on AFS are unfortunately not something I'm very familiar with (though my recollection is that it does not support many POSIX locking features) so this is something you're going to have ask whomever set the system up for you.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest