[ome-users] DropBox problem with a large .lif file

Josh Moore josh at glencoesoftware.com
Thu Jan 13 16:10:13 GMT 2011


Hi Harri,

On Jan 13, 2011, at 4:28 PM, Harri Jäälinoja wrote:
> I failed to import a big confocal stack (.lif, ~570M) via DropBox. In the logs I see one clear thing, a session timeout:
> 
> 2011-01-13 15:48:47,551 ERROR [         fsclient.fsDropBoxMonitorClient] (Thread-16 ) serverStackTrace = "ome.conditions.SessionTimeoutException: Session
> (started=2011-01-13 15:47:25.045, hits=1099, last access=2011-01-13 15:48:23.76) exceeded timeToLive (60000) by 5072 ms
> 
> 
> Where is this timeout set? I've attached the entire error message, maybe that also gives some clue.

Unfortunately, this value is hard-coded in lib/python/fsDropBoxMonitorClient.py on line 519:

        try:
            exp = sf.getAdminService().lookupExperimenter(exName)
 HERE -->   sess = sf.getSessionService().createSessionWithTimeout(p, 60000L)
            return sess.uuid.val
        except omero.ApiUsageException:
            self.log.info("User unknown: %s", exName)
            return None
        except:
            self.log.exception("Unknown exception during loginUser")
            return None

You can modify that value to significantly more than the time in **milliseconds** which you need for the import. Say, 7200000 for 2 hours, and then reset DropBox:

  bin/omero admin ice server stop DropBox

It will automatically restart itself. I've created a ticket if you would like to track the work:

     http://trac.openmicroscopy.org.uk/omero/ticket/3850

> I tried to import the same file with OMERO.importer, and that worked fine. One thing I started to wonder, though, is that with importer I first set the project and dataset where the file will be imported. How are these set in the case of DropBox? Or is that something that can be done later on? I didn't spot that immediately in the OMERO.insight.

DropBox will import the image without a dataset or project. You can then find it under the "Images" tab, and add it to whichever dataset you would like. If you would prefer, you can try adding:

<property name="omero.fs.importArgs"  value="-d 1"/>

to the element

<properties id="Profile">
</properties>

in etc/grid/default.xml, where 1 is the id for some dataset into which the importing user is allowed to import.

> Thanks, best regards,
> Harri

Cheers,
~Josh




More information about the ome-users mailing list