Orthanc snap package

I am attempting to package Orthanc as a snap. I have the server running but I seem to be failing some test and was looking for guidance on how to pass these test. I am running the test located at https://bitbucket.org/sjodogne/orthanc-tests. The output is below. Any insights would be appreciated. My code for the snap package is located at https://github.com/bricebm/OrthancSnap. I’m testing the snap package on Ubuntu 18.04.2, using the Orthanc package from the ubuntu archive as the 2nd instance.

bricebm@Z440:~/Downloads/sjodogne-orthanc-tests-7dc50b474bd4$ python ./Tests/Run.py --server localhost --aet ORTHANC --rest 8042 --username alice --password orthanctest --force
Parameters of the instance of Orthanc being tested:
{‘DicomAet’: ‘ORTHANC’,
‘DicomPort’: 4242,
‘Password’: ‘orthanctest’,
‘Server’: ‘localhost’,
‘Url’: ‘http://localhost:8042/’,
‘Username’: ‘alice’}

Waiting for the internal Orthanc to start…
W0304 19:59:09.327718 main.cpp:1297] Orthanc version: 1.3.1
W0304 19:59:09.327824 main.cpp:1145] Performance warning: Non-release build, runtime debug assertions are turned on
W0304 19:59:09.329544 OrthancInitialization.cpp:114] Reading the configuration from: “/tmp/IntegrationTestsConfiguration.json”
W0304 19:59:09.351042 FromDcmtkBridge.cpp:149] Loading the external DICOM dictionary “/usr/share/libdcmtk12/dicom.dic”
W0304 19:59:09.363732 FromDcmtkBridge.cpp:149] Loading the external DICOM dictionary “/usr/share/libdcmtk12/private.dic”
W0304 19:59:09.370459 FromDcmtkBridge.cpp:2075] Registering JPEG Lossless codecs in DCMTK
W0304 19:59:09.370504 FromDcmtkBridge.cpp:2080] Registering JPEG codecs in DCMTK
W0304 19:59:09.379059 OrthancInitialization.cpp:998] SQLite index directory: “/tmp/OrthancStorage”
W0304 19:59:09.379347 OrthancInitialization.cpp:1068] Storage directory: “/tmp/OrthancStorage”
W0304 19:59:09.379954 HttpClient.cpp:686] HTTPS will use the CA certificates from this file: /tmp
W0304 19:59:09.380483 ServerScheduler.cpp:135] The server scheduler has started
W0304 19:59:09.380516 LuaContext.cpp:103] Lua says: Lua toolbox installed
W0304 19:59:09.380563 ServerContext.cpp:182] Disk compression is disabled
W0304 19:59:09.380578 ServerIndex.cpp:1403] No limit on the number of stored patients
W0304 19:59:09.380600 ServerIndex.cpp:1420] No limit on the size of the storage area
W0304 19:59:09.380926 main.cpp:862] DICOM server listening with AET ORTHANCTEST on port: 5001
W0304 19:59:09.380965 MongooseServer.cpp:1075] HTTP compression is disabled
W0304 19:59:09.383043 main.cpp:795] HTTP server listening on port: 5000
W0304 19:59:09.383144 main.cpp:682] Orthanc has started

Starting the tests…
…F…W: dcm2xml: this is a DICOMDIR file, which can contain more than one SpecificCharacterSet (0008,0005) element … using option --convert-to-utf8 is strongly recommended
…W: DcmItem: Invalid Element (0002,0003) found in data set
…EE…F…W: dcm2xml: this is a DICOMDIR file, which can contain more than one SpecificCharacterSet (0008,0005) element … using option --convert-to-utf8 is strongly recommended
.W: dcm2xml: this is a DICOMDIR file, which can contain more than one SpecificCharacterSet (0008,0005) element … using option --convert-to-utf8 is strongly recommended
…W: DcmItem: Invalid Element (0002,0003) found in data set
…W: DcmItem: Invalid Element (0002,0003) found in data set
W0304 19:59:38.716102 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:38.873619 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:39.025827 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:39.138199 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:39.292560 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:39.388235 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
.W0304 19:59:40.213893 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
W0304 19:59:40.386685 OrthancMoveRequestHandler.cpp:179] Move-SCU request received for AET “ORTHANC”
…Skipping version checks since you’re currently in mainline

Hello,

First of all, many thanks for your contribution!

I am attempting to package Orthanc as a snap. I have the server running but I seem to be failing some test and was looking for guidance on how to pass these test. I am running the test located at https://bitbucket.org/sjodogne/orthanc-tests. The output is below. Any insights would be appreciated. My code for the snap package is located at https://github.com/bricebm/OrthancSnap. I’m testing the snap package on Ubuntu 18.04.2, using the Orthanc package from the ubuntu archive as the 2nd instance.

I have just applied a patch in the integration tests that should solve the errors “test_incoming_movescu” and “test_incoming_movescu_accession”:
https://bitbucket.org/sjodogne/orthanc-tests/commits/4087505ddfe313f8a0f010d176597a768d46e097

Regarding the two other errors wrt. encodings, I’m really puzzled. Are you sure that the en_US and en_US.UTF-8 locales have been properly generated, as can be seen in the postinst step of the Debian package?

Could you check that the LSB (Linux Standard Base) precompiled binaries are also affected by this issue on your computer?

Regards,
Sébastien-