dwv-orthanc-plugin
dwv-orthanc-plugin copied to clipboard
Can't run the plugin on Orthanc 1.4.0 and higher [using Docker]
Hi,
I'm trying to run your plugin on my new Orthanc server with Docker. I've built Dockerfile that will build your plugin — https://github.com/ivmartel/dwv-orthanc-plugin/files/2705336/Dockerfile.txt. But when I try to run Orthanc server it fails:
# docker run e6e8d6affa5c
AC: '/etc/orthanc/remote-access.json' taking precendence over related env vars (note: file might have been generated from env vars during a previous start)
DW: Plugin 'libOrthancDicomWeb' enabled
HTTP: '/etc/orthanc/http.json' taking precendence over related env vars (note: file might have been generated from env vars during a previous start)
OWV: Plugin 'libOrthancWebViewer' enabled
PLUGINS: '/etc/orthanc/plugins.json' taking precendence over related env vars (note: file might have been generated from env vars during a previous start)
STORAGE: '/etc/orthanc/storage.json' taking precendence over related env vars (note: file might have been generated from env vars during a previous start)
WSI: Plugin 'libOrthancWSI' enabled
WVB: Plugin 'libOsimisWebViewer' enabled
Startup command: Orthanc /etc/orthanc
W1222 15:40:03.192970 main.cpp:1299] Orthanc version: 1.4.0
W1222 15:40:03.194190 OrthancInitialization.cpp:168] Scanning folder "/etc/orthanc" for configuration files
W1222 15:40:03.194264 OrthancInitialization.cpp:120] Reading the configuration from: "/etc/orthanc/http.json"
W1222 15:40:03.194458 OrthancInitialization.cpp:120] Reading the configuration from: "/etc/orthanc/plugins.json"
W1222 15:40:03.194543 OrthancInitialization.cpp:120] Reading the configuration from: "/etc/orthanc/remote-access.json"
W1222 15:40:03.194618 OrthancInitialization.cpp:120] Reading the configuration from: "/etc/orthanc/storage.json"
W1222 15:40:03.220454 main.cpp:655] Loading plugin(s) from: /usr/share/orthanc/plugins
W1222 15:40:03.220701 PluginsManager.cpp:269] Registering plugin 'dwv-plugin' (version 0.8)
W1222 15:40:03.220726 PluginsManager.cpp:168] DWV plugin is initializing
E1222 15:40:03.220975 main.cpp:1325] Uncaught exception, stopping now: [Accessing an inexistent item] (code 7)
W1222 15:40:03.221152 main.cpp:1358] Orthanc has stopped
I tried it with latest versions of Orthanc docker — the same result.
Can you advice, please.
Regards, Roman
Ok, I have the same error running this dockerfile on Docker for windows. Not too sure why... One reason could be that Orthanc and the dwv plugin use different compilation options but I can't find anything special in the Orthanc CMakeLists.txt...
Not sure neither what an 'Item' is in the error message. Searching the ErrorCode_InexistentItem
error code in the source code gives OrthancMirror/search?q=ErrorCode_InexistentItem.
What do you propose?
More investigation!
More investigation!
Can I help you? I'm not programmer...
Making progress! I have a working docker image when I use Orthanc 1.4.2, meaning you have to change the FROM
line to use osimis/orthanc:18.9.3
in the Dockerfile.
To start the container, the minimum command is: docker run -p 8042:8042 orthanc
(see book.orthanc-server docker for more) and then you can open http://localhost:8042/ to see it live.
I hope it also works for you...
(footnote: I only tried with all the other plugins desactivated...)
I've tested in my environment. You're right — works till version 18.9.5 with all plugins enabled. Checked with real studies as well — your plugin works.
dicom-web Implementation of DICOMweb (QIDO-RS, STOW-RS and WADO-RS) and WADO-URI. 0.5 dwv-plugin 0.8 osimis-web-viewer Provides a Web viewer of DICOM series within Orthanc. 1.1.1.52-090cd828 web-viewer Provides a Web viewer of DICOM series within Orthanc. 2.4 wsi Provides a Web viewer of whole-slide microscopic images within Orthanc. 0.5
They've changed something in versions starting from v.18.11.x. Thank you very much for the efforts. I hope you will be able to make the plugin working in the latest versions as well.
Good! I'll check the compilation against Orthanc 1.5.
For ref, the osimis/orthanc docker image release notes: release-notes-docker-images.txt.
I added the option to build against Orthanc 1.5 (see #27). But no luck, this does not fix the problem with the osimis/orthanc docker images with version 18.11.x.
Sorry for delay, everyone were very busy. Checked with my installation and yes, you're right — doesn't work with new versions.