Small progress on my side: I have just managed to reproduce the issue by running pbuilder on a Debian testing virtual machine (as everything works fine on Debian unstable).

In the Debian testing setup, I see that pbuilder still uses dcmtk 3.6.9-5, as in Debian unstable:

$ less orthanc_1.12.7+dfsg-2_amd64.buildinfo
Format: 1.0
Source: orthanc
Binary: liborthancframework-dev liborthancframework1 liborthancframework1-dbgsym orthanc orthanc-dbgsym orthanc-dev orthanc-doc
Architecture: all amd64 source
Version: 1.12.7+dfsg-2
[...]
Installed-Build-Depends:
[...]
 dcmtk-data (= 3.6.9-5),
 libdcmtk-dev (= 3.6.9-5),
 libdcmtk19 (= 3.6.9-5),
[...]


But, on Debian testing, the binaries do not work because the system-wide installation of dcmtk is 3.6.9-4:

$ apt-cache policy dcmtk-data
dcmtk-data:
  Installed: 3.6.9-4
  Candidate: 3.6.9-4


As a consequence, autopkgtest fails because the Orthanc service cannot find "/usr/share/dcmtk/dicom.dic" (the new location in dcmtk >= 3.6.9-5), while it should use "/usr/share/dcmtk-3.6.9/dicom.dic" (the old location for dcmtk <= 3.6.9-4). This can be seen in the logs of Orthanc:

$ sudo cat /var/log/orthanc/Orthanc.log
W0422 21:38:10.929821 MAIN main.cpp:2102] Orthanc version: 1.12.7 W0422 21:38:10.929868 MAIN OrthancConfiguration.cpp:110] Scanning folder "/etc/orthanc" for configuration files W0422 21:38:10.929884 MAIN OrthancConfiguration.cpp:59] Reading the configuration from: "/etc/orthanc/credentials.json" W0422 21:38:10.929947 MAIN OrthancConfiguration.cpp:59] Reading the configuration from: "/etc/orthanc/worklists.json" W0422 21:38:10.929968 MAIN OrthancConfiguration.cpp:59] Reading the configuration from: "/etc/orthanc/orthanc.json" W0422 21:38:10.930340 MAIN OrthancConfiguration.cpp:59] Reading the configuration from: "/etc/orthanc/serve-folders.json" W0422 21:38:10.936950 MAIN FromDcmtkBridge.cpp:383] Loading external DICOM dictionary: "/usr/share/dcmtk/dicom.dic" E0422 21:38:10.937024 MAIN main.cpp:2159] Uncaught exception, stopping now: [Inexistent file] (code 13)
W0422 21:38:10.937031             MAIN main.cpp:2190] Orthanc has stopped


So, this seems to confirm my initial guess about the fact that this issue is a side-effect of #1098944:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098944

The question now is: What can be done? I guess that the proper solution would be to "unblock" dcmtk 3.6.9-5, but is it true and, if so, how would this be feasible?

Regards,
Sébastien-

Reply via email to