[ome-users] BlitzGateway: keep connection alive to write large ROIs

Paul Korir pkorir at ebi.ac.uk
Thu Apr 27 14:04:03 BST 2017


Thanks Will.


On 26/04/2017 11:16, William Moore (Staff) wrote:
> Hi Paul,
>
>  You can enable the keepAlive on the client object with
> conn.c.enableKeepAlive(300)
> See 5.2 docs: 
> https://downloads.openmicroscopy.org/omero/5.2.0/api/omero/client.html#enableKeepAlive-int-
>
> Also you can set this in the etc/omero.properties file.
> See discussion at 
> https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=495
>

My settings are:

# Sets the duration of inactivity in milliseconds after which
# a login is required.
omero.sessions.timeout=600000
omero.sessions.maximum=0
omero.sessions.sync_interval=120000
omero.sessions.sync_force=1800000
> Hope that helps,
>
>   Will.
I now get the following exception.

Traceback (most recent call last):
   File 
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py", 
line 4212, in __call__
     return self.f(*args, **kwargs)
   File 
"/Users/pkorir/omero/OMERO.server/lib/python/omero_api_IUpdate_ice.py", 
line 107, in saveObject
     return _M_omero.api.IUpdate._op_saveObject.invoke(self, ((obj, ), 
_ctx))
SocketException: Ice.SocketException:
Protocol wrong type for socket
Thu Apr 27 12:33:56 2017    Closing the connection...
Thu Apr 27 12:33:56 2017    Deleting ROIHandler instance... OK
WARNING:omero.client:Cannot get session service for killSession. Using 
closeSession
Thu Apr 27 12:33:56 2017    Connection closed.
Traceback (most recent call last):
   File "/Users/pkorir/VirtualEnvs/sfftk/bin/sffp", line 11, in <module>
     load_entry_point('sfftk-plus', 'console_scripts', 'sffp')()
   File 
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/sffplus.py", 
line 460, in main
     return handle_attachroi(args)
   File 
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/sffplus.py", 
line 381, in handle_attachroi
     omero_connection.saveRoi(roi)
   File 
"/Users/pkorir/Documents/workspace/bioimaging-scripts/trunk/sfftk-plus/sfftkplus/omero/handlers.py", 
line 149, in saveRoi
     updateService.saveObject(roi)
   File 
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py", 
line 4215, in __call__
     return self.handle_exception(e, *args, **kwargs)
   File 
"/Users/pkorir/omero/OMERO.server/lib/python/omero/gateway/__init__.py", 
line 4212, in __call__
     return self.f(*args, **kwargs)
   File 
"/Users/pkorir/omero/OMERO.server/lib/python/omero_api_IUpdate_ice.py", 
line 107, in saveObject
     return _M_omero.api.IUpdate._op_saveObject.invoke(self, ((obj, ), 
_ctx))
Ice.SocketException: Ice.SocketException:
Protocol wrong type for socket

-- 
Paul K. Korir, PhD
Scientific Programmer
EMBL-EBI
01223494422

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20170427/753f1c46/attachment.html>


More information about the ome-users mailing list