I updated our server from 5.2.7 to 5.4.10. We use CentOS 7 (centos-release-7-6.1810.2.el7.centos.x86_64). The update was trouble-free and the Omero server seems to work without problems except the following.
If I try to import an image with the CLI importer I got an SSLHandshakeException.
- Code: Select all
Created session for XXXX@XXXX:4064. Idle timeout: 10 min. Current group: Developer
2019-04-04 09:42:08,044 557 [ main] INFO ome.formats.importer.ImportConfig - OMERO Version: 5.4.10-ice36
2019-04-04 09:42:08,070 583 [ main] INFO ome.formats.importer.ImportConfig - Bioformats version: 5.9.2 revision: 9fc607f85b8900be786813296f1eee75cc1ed883 date: 31 August 2018
2019-04-04 09:42:08,138 651 [ main] INFO formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: ERROR OMERO.importer: INFO
2019-04-04 09:42:08,629 1142 [ main] INFO ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2019-04-04 09:42:08,915 1428 [ main] INFO ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 282ms. (286ms total) [0 unknowns]
2019-04-04 09:42:10,094 2607 [ main] INFO ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to localhost:4064
2019-04-04 09:42:10,477 2990 [ main] ERROR formats.importer.cli.CommandLineImporter - Error during import process.
Ice.SecurityException: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at IceInternal.AsyncResultI.__wait(AsyncResultI.java:276) ~[ice.jar:na]
at Ice.ObjectPrxHelperBase.end_ice_isA(ObjectPrxHelperBase.java:310) ~[ice.jar:na]
at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:92) ~[ice.jar:na]
at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:69) ~[ice.jar:na]
at Ice.ObjectPrxHelperBase.checkedCastImpl(ObjectPrxHelperBase.java:2810) ~[ice.jar:na]
at Ice.ObjectPrxHelperBase.checkedCastImpl(ObjectPrxHelperBase.java:2770) ~[ice.jar:na]
at Glacier2.RouterPrxHelper.checkedCast(RouterPrxHelper.java:1787) ~[glacier2.jar:na]
at omero.client.getRouter(client.java:826) ~[blitz.jar:na]
at omero.client.createSession(client.java:747) ~[blitz.jar:na]
at omero.client.joinSession(client.java:682) ~[blitz.jar:na]
at ome.formats.OMEROMetadataStoreClient.initialize(OMEROMetadataStoreClient.java:700) ~[blitz.jar:na]
at ome.formats.importer.ImportConfig.createStore(ImportConfig.java:380) ~[blitz.jar:na]
at ome.formats.importer.cli.CommandLineImporter.<init>(CommandLineImporter.java:170) ~[blitz.jar:na]
at ome.formats.importer.cli.CommandLineImporter.main(CommandLineImporter.java:991) ~[blitz.jar:na]
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.Handshaker.activate(Handshaker.java:509) ~[na:1.8.0_201]
at sun.security.ssl.SSLEngineImpl.kickstartHandshake(SSLEngineImpl.java:714) ~[na:1.8.0_201]
at sun.security.ssl.SSLEngineImpl.beginHandshake(SSLEngineImpl.java:741) ~[na:1.8.0_201]
at IceSSL.SSLEngine.createSSLEngine(SSLEngine.java:856) ~[ice.jar:na]
at IceSSL.Instance.createSSLEngine(Instance.java:42) ~[ice.jar:na]
at IceSSL.ConnectorI.connect(ConnectorI.java:30) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory$ConnectCallback.nextConnector(OutgoingConnectionFactory.java:1101) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory$ConnectCallback.access$100(OutgoingConnectionFactory.java:868) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory.getConnection(OutgoingConnectionFactory.java:569) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory.access$800(OutgoingConnectionFactory.java:14) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory$ConnectCallback.getConnection(OutgoingConnectionFactory.java:1048) ~[ice.jar:na]
at IceInternal.OutgoingConnectionFactory$ConnectCallback.connectors(OutgoingConnectionFactory.java:932) ~[ice.jar:na]
at IceInternal.EndpointHostResolver$1.run(EndpointHostResolver.java:103) ~[ice.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_201]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_201]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_201]
At https://docs.openmicroscopy.org/omero/5.4.10/sysadmins/troubleshooting.html I found a possible workaround by calling
- Code: Select all
sed -i 's/\("IceSSL.Ciphers".*ADH\)/\1:@SECLEVEL=0/' OMERO.server/lib/python/omero/clients.py OMERO.server/etc/templates/grid/templates.xml
and
python -m py_compile OMERO.server/lib/python/omero/clients.py
After doing that and restart the OMERO server I got a other error:
- Code: Select all
InternalException: Failed to connect: exception ::Ice::PluginInitializationException
{
reason = IceSSL: unable to set ciphers using `ADH:@SECLEVEL=0': invalid command
}
What did I have to change to import images vai CLI.
Thank,
Daniel