dwv-orthanc-plugin icon indicating copy to clipboard operation
dwv-orthanc-plugin copied to clipboard

Can't run the plugin on Orthanc 1.4.0 and higher [using Docker]

Open romanmm opened this issue 6 years ago • 10 comments

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

Dockerfile.txt

romanmm avatar Dec 22 '18 15:12 romanmm

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.

ivmartel avatar Jan 09 '19 10:01 ivmartel

What do you propose?

romanmm avatar Jan 09 '19 11:01 romanmm

More investigation!

ivmartel avatar Jan 09 '19 14:01 ivmartel

More investigation!

Can I help you? I'm not programmer...

romanmm avatar Jan 09 '19 14:01 romanmm

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...

ivmartel avatar Jan 10 '19 10:01 ivmartel

(footnote: I only tried with all the other plugins desactivated...)

ivmartel avatar Jan 10 '19 10:01 ivmartel

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.

romanmm avatar Jan 10 '19 12:01 romanmm

Good! I'll check the compilation against Orthanc 1.5.

For ref, the osimis/orthanc docker image release notes: release-notes-docker-images.txt.

ivmartel avatar Jan 10 '19 15:01 ivmartel

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.

ivmartel avatar Jan 15 '19 08:01 ivmartel

Sorry for delay, everyone were very busy. Checked with my installation and yes, you're right — doesn't work with new versions.

romanmm avatar Mar 03 '19 09:03 romanmm