Skip to content

Instantly share code, notes, and snippets.

@atarkowska
Created April 28, 2016 13:00
Show Gist options
  • Save atarkowska/cbafc0e97811ae561aa02bb91b44e885 to your computer and use it in GitHub Desktop.
Save atarkowska/cbafc0e97811ae561aa02bb91b44e885 to your computer and use it in GitHub Desktop.
import error on 4064
$ dist/bin/omero import /Users/ola/OMERO/IMAGE/DEMO/PTRE/P-TRE_1_R3D_D3D.dv --debug=DEBUG
Previously logged in to 192.168.99.100:4064 as root
Server: [192.168.99.100:4064]
Username: [root]
Password:
Created session b851c807-efd4-462d-b57f-567daaa622c3 ([email protected]:4064). Idle timeout: 10 min. Current group: system
2016-04-28 13:59:14,273 247 [ main] INFO ome.formats.importer.ImportConfig - OMERO Version: 5.2.2-205-5acf9b8-dirty-ice35-b1
2016-04-28 13:59:14,287 261 [ main] INFO ome.formats.importer.ImportConfig - Bioformats version: 5.1.8 revision: 9eb8da31c1f01989f439963b9cc215b4398bedd8 date: 12 February 2016
2016-04-28 13:59:14,327 301 [ main] INFO formats.importer.cli.CommandLineImporter - Log levels -- Bio-Formats: DEBUG OMERO.importer: DEBUG
2016-04-28 13:59:14,329 303 [ main] DEBUG ome.formats.importer.ImportConfig - Loaded savedDirectory from ome.formats.importer.util.IniFileLoader@6e6c3152
2016-04-28 13:59:14,329 303 [ main] DEBUG ome.formats.importer.ImportConfig - Loaded savedDirectory from default
2016-04-28 13:59:14,380 354 [ main] DEBUG loci.formats.FormatHandler - 3i SlideBook SlideBook6Reader library not found. Please see http://www.openmicroscopy.org/site/support/bio-formats/formats/3i-slidebook.html for details.
java.lang.UnsatisfiedLinkError: null
at loci.formats.in.SlideBook6Reader.<clinit>(SlideBook6Reader.java:90) ~[formats-gpl.jar:5.1.8]
at java.lang.Class.forName0(Native Method) [na:1.8.0_65]
at java.lang.Class.forName(Class.java:264) [na:1.8.0_65]
at loci.formats.ClassList.<init>(ClassList.java:127) [formats-api.jar:5.1.8]
at loci.formats.ClassList.<init>(ClassList.java:85) [formats-api.jar:5.1.8]
at loci.formats.ImageReader.getDefaultReaderClasses(ImageReader.java:78) [formats-api.jar:5.1.8]
at ome.formats.importer.OMEROWrapper.createReader(OMEROWrapper.java:131) [blitz.jar:na]
at ome.formats.importer.OMEROWrapper.<init>(OMEROWrapper.java:93) [blitz.jar:na]
at ome.formats.importer.OMEROWrapper.<init>(OMEROWrapper.java:89) [blitz.jar:na]
at ome.formats.importer.cli.CommandLineImporter.<init>(CommandLineImporter.java:142) [blitz.jar:na]
at ome.formats.importer.cli.CommandLineImporter.main(CommandLineImporter.java:884) [blitz.jar:na]
2016-04-28 13:59:14,622 596 [ main] INFO ome.formats.importer.ImportCandidates - Depth: 4 Metadata Level: MINIMUM
2016-04-28 13:59:14,623 597 [ main] DEBUG ome.formats.importer.cli.ErrorHandler - SCANNING: Depth:0 Num: 1 Tot: n/a File: TRE_1_R3D_D3D.dv
2016-04-28 13:59:14,627 601 [ main] DEBUG loci.common.Location - Location.mapFile: embedded-stream.raw -> null
2016-04-28 13:59:14,629 603 [ main] DEBUG loci.common.Location - Location.mapFile: embedded-stream.raw -> null
2016-04-28 13:59:14,631 605 [ main] DEBUG loci.formats.Memoizer - skipping memo: no directory given
2016-04-28 13:59:14,641 615 [ main] DEBUG loci.common.NIOByteBufferProvider - Using mapped byte buffer? false
2016-04-28 13:59:14,650 624 [ main] INFO loci.formats.ImageReader - DeltavisionReader initializing /Users/ola/OMERO/IMAGE/DEMO/PTRE/P-TRE_1_R3D_D3D.dv
2016-04-28 13:59:14,650 624 [ main] DEBUG loci.formats.FormatHandler - DeltavisionReader initializing /Users/ola/OMERO/IMAGE/DEMO/PTRE/P-TRE_1_R3D_D3D.dv
2016-04-28 13:59:14,650 624 [ main] DEBUG loci.formats.FormatHandler - loci.formats.in.DeltavisionReader.initFile(/Users/ola/OMERO/IMAGE/DEMO/PTRE/P-TRE_1_R3D_D3D.dv)
2016-04-28 13:59:14,652 626 [ main] INFO loci.formats.FormatHandler - Reading header
2016-04-28 13:59:14,656 630 [ main] INFO loci.formats.FormatHandler - Populating core metadata
2016-04-28 13:59:14,657 631 [ main] INFO loci.formats.FormatHandler - Reading extended header
2016-04-28 13:59:14,668 642 [ main] INFO loci.formats.FormatHandler - Populating original metadata
2016-04-28 13:59:14,676 650 [ main] INFO loci.formats.FormatHandler - Populating OME metadata
2016-04-28 13:59:14,680 654 [ main] DEBUG loci.common.services.ServiceFactory - Loaded properties from: services.properties
2016-04-28 13:59:14,681 655 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.POIService and implementation class loci.formats.services.POIServiceImpl
2016-04-28 13:59:14,682 656 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.MDBService and implementation class loci.formats.services.MDBServiceImpl
2016-04-28 13:59:14,682 656 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.JPEGTurboService and implementation class loci.formats.services.JPEGTurboServiceImpl
2016-04-28 13:59:14,682 656 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.JAIIIOService and implementation class loci.formats.services.JAIIIOServiceImpl
2016-04-28 13:59:14,683 657 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.WlzService and implementation class loci.formats.services.WlzServiceImpl
2016-04-28 13:59:14,684 658 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.JHDFService and implementation class loci.formats.services.JHDFServiceImpl
2016-04-28 13:59:14,684 658 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.NetCDFService and implementation class loci.formats.services.NetCDFServiceImpl
2016-04-28 13:59:14,685 659 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.EXIFService and implementation class loci.formats.services.EXIFServiceImpl
2016-04-28 13:59:14,685 659 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.MetakitService and implementation class loci.formats.services.MetakitServiceImpl
2016-04-28 13:59:14,685 659 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.LuraWaveService and implementation class loci.formats.services.LuraWaveServiceImpl
2016-04-28 13:59:14,686 660 [ main] DEBUG loci.common.services.ServiceFactory - Added interface interface loci.formats.services.OMEXMLService and implementation class loci.formats.services.OMEXMLServiceImpl
2016-04-28 13:59:14,700 674 [ main] DEBUG loci.formats.Memoizer - start[1461848354631] time[68] tag[loci.formats.Memoizer.setId]
2016-04-28 13:59:14,711 685 [ main] DEBUG loci.common.Location - Location.mapFile: embedded-stream.raw -> null
2016-04-28 13:59:14,712 686 [ main] DEBUG loci.common.Location - Location.mapFile: embedded-stream.raw -> null
2016-04-28 13:59:14,712 686 [ main] DEBUG ome.formats.importer.cli.ErrorHandler - SCANNING: Depth:0 Num: 1 Tot: 1 File: TRE_1_R3D_D3D.dv
2016-04-28 13:59:14,715 689 [ main] INFO ome.formats.importer.ImportCandidates - 1 file(s) parsed into 1 group(s) with 1 call(s) to setId in 88ms. (92ms total) [0 unknowns]
2016-04-28 13:59:14,817 791 [ main] DEBUG ome.system.UpgradeCheck - Attempting to connect to http://upgrade.openmicroscopy.org.uk?version=5.2.2-205-5acf9b8-dirty-ice35-b1;os.name=Mac+OS+X;os.arch=x86_64;os.version=10.11.4;java.runtime.version=1.8.0_65-b17;java.vm.vendor=Oracle+Corporation
2016-04-28 13:59:14,890 864 [ main] INFO ome.system.UpgradeCheck - no update needed
2016-04-28 13:59:14,940 914 [ main] INFO ome.formats.OMEROMetadataStoreClient - Attempting initial SSL connection to 192.168.99.100:4064
2016-04-28 13:59:15,441 1415 [ main] INFO ome.formats.OMEROMetadataStoreClient - Insecure connection requested, falling back
2016-04-28 13:59:15,487 1461 [ main] ERROR formats.importer.cli.CommandLineImporter - Error during import process.
omero.ClientError: No host specified. Use omero.client(HOSTNAME), ICE_CONFIG, or similar.
at omero.client.init(client.java:399) ~[blitz.jar:na]
at omero.client.<init>(client.java:304) ~[blitz.jar:na]
at omero.client.createClient(client.java:499) ~[blitz.jar:na]
at ome.formats.OMEROMetadataStoreClient.unsecure(OMEROMetadataStoreClient.java:737) ~[blitz.jar:na]
at ome.formats.OMEROMetadataStoreClient.initialize(OMEROMetadataStoreClient.java:702) ~[blitz.jar:na]
at ome.formats.importer.ImportConfig.createStore(ImportConfig.java:378) ~[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:884) ~[blitz.jar:na]
@joshmoore
Copy link

This is caused by

        try {
            __ic = Ice.Util.initialize(id);
        } catch (Ice.EndpointParseException epe) {
            throw new ClientError("No host specified. " +
                "Use omero.client(HOSTNAME), ICE_CONFIG, or similar.");
        }

i.e. the exception is being eaten. It would be good if we could get that debug'd so that we know for sure what the problem is.

I think that createClient is getting a bad value from the server. You could also set omero.dump=1 in order to find out more.

@atarkowska
Copy link
Author

are you sure that is the right place? I opened a PR ome/openmicroscopy#4620 then built on http://10.0.51.117:8080/job/OMERO-push/18/console

+ SERVER=http://10.0.51.117:8080/job/OMERO-build/lastSuccessfulBuild/artifact/src/target/OMERO.server-5.2.3-rc1-136-520230d-ice36-b20.zip
+ wget http://10.0.51.117:8080/job/OMERO-build/lastSuccessfulBuild/artifact/src/target/OMERO.server-5.2.3-rc1-136-520230d-ice36-b20.zip
--2016-04-29 12:05:53--  http://10.0.51.117:8080/job/OMERO-build/lastSuccessfulBuild/artifact/src/target/OMERO.server-5.2.3-rc1-136-520230d-ice36-b20.zip

[omero@4e846029fad8 OMERO.server]$ bin/omero admin diagnostics

================================================================================
OMERO Diagnostics 5.2.3-rc1-136-520230d-ice36-b20
================================================================================


[omero@4e846029fad8 /]$ bin/omero config get                                                                                          
omero.router.insecure=OMERO.Glacier2/router:ssl -p @omero.ports.prefix@@omero.ports.tcp@ -h @omero.host@

and still the same error message on CLI, no stacktrace as in PR

@atarkowska
Copy link
Author

thanks for the hint

2016-04-29 13:44:03,151 1750       [      main] ERROR  formats.importer.cli.CommandLineImporter - Error during import process.
omero.ClientError: Ice.EndpointParseException
    str = "invalid port value `@omero.ports.prefix@@omero.ports.tcp@' in endpoint `ssl -p @omero.ports.prefix@@omero.ports.tcp@ -h 192.168.99.100'"
    at omero.client.init(client.java:399) ~[blitz.jar:na]
    at omero.client.<init>(client.java:304) ~[blitz.jar:na]
    at omero.client.createClient(client.java:498) ~[blitz.jar:na]
    at ome.formats.OMEROMetadataStoreClient.unsecure(OMEROMetadataStoreClient.java:737) ~[blitz.jar:na]
    at ome.formats.OMEROMetadataStoreClient.initialize(OMEROMetadataStoreClient.java:702) ~[blitz.jar:na]
    at ome.formats.importer.ImportConfig.createStore(ImportConfig.java:378) ~[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:884) ~[blitz.jar:na]

@atarkowska
Copy link
Author

If i set bin/omero config set omero.router.insecure "OMERO.Glacier2/router:ssl -p 4064 -h localhost" on the server

I am getting:

2016-04-29 13:47:52,345 3217       [      main] ERROR  formats.importer.cli.CommandLineImporter - Error during import process.
Ice.ConnectionRefusedException: java.net.ConnectException: Connection refused
    at IceInternal.ConnectRequestHandler.getConnection(ConnectRequestHandler.java:244) ~[ice.jar:na]

@atarkowska
Copy link
Author

sorry one more try:

bin/omero config set omero.router.insecure "OMERO.Glacier2/router:ssl -p 4064 -h 192.168.99.100" on the server and works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment