Horos Retrieve fails in C-GET mode: SCU Failed 0006:0208 DIMSE No valid Presentation Context ID

3,934 views
Skip to first unread message

Paolo Trifiletti

unread,
Mar 1, 2016, 9:21:54 PM3/1/16
to Orthanc Users
Dear All,

I have a cloud based installation of ORTHANC server, the cloud server has all the required  ports open. I would like to use on my pc a dicom client like Horos/Osirix. I tried configuring Horos; C-ECHO, C-FIND, C-STORE work well, so I can connect, query and send the studies to the cloud pacs, but once I try to retrieve the images in C-GET mode the horos client shows  this error message:

"DICOM Network Failure (query)
SCU Failed 0006:0208 DIMSE No valid Presentation Context ID"

Once I switch to C-MOVE mode the client shows  this error message:
"Move Failed
Failed: UnableToProcess"

and the ORTHANC logs show:

E0302 03:06:22.380820 DicomUserConnection.cpp:159] DicomUserConnection: Failed to establish association

0006:0317 Peer aborted Association (or never connected)

0006:031c TCP Initialization Error: Operation now in progress (Timeout)

E0302 03:06:22.381097 MoveScp.cpp:181] IMoveRequestHandler Failed: Error in the network protocol


My Orthanc conf file:


 "DicomModalities" : "horos-paolo" : ["MacBook-PaoloTri", "93.47.xxx.yyy", 11112 }


where "93.47.xxx.yyy" is the public IP of my laptop where HOROS is installed


In the C-MOVE mode I can understand the behavior, because the cloud server can't reach the client using the public IP of my laptop....but in the C-GET mode it should work...


Any suggestions?


Thanks

Paolo

Sébastien Jodogne

unread,
Mar 2, 2016, 2:38:52 AM3/2/16
to Orthanc Users
Hello,

DICOM C-Get is deprecated and, as such, is not supported by Orthanc.

You have 3 options:
  1. Use DICOM C-Move (query/retrieve). This is probably not the best solution if you are cloud-based.
  2. Use a viewer that supports DICOMweb (more precisely QIDO-RS and WADO-RS), and install the DICOMweb plugin for Orthanc.
  3. Write some custom script (e.g. in Python) to locally download images from the cloud when needed, using the REST API of Orthanc.
HTH,
Sébastien-

Paolo Trifiletti

unread,
Mar 2, 2016, 8:05:31 AM3/2/16
to Orthanc Users
Dear Sebastien,

thanks a lot for your quick reply.

How do you suggest to configure Orthanc and my local network in order to make C-MOVE mode working in a cloud based environment?

Any help could be really appreciated.

All the bests

Paolo

Sébastien Jodogne

unread,
Mar 2, 2016, 8:18:02 AM3/2/16
to Orthanc Users
You would have to configure the firewall of your LAN so that your cloud-based instance of Orthanc can send images to your local instance of Horos/OsiriX.

Before testing query/retrieve, you should check whether (1) your cloud-based Orthanc can C-Echo your local Horos/OsiriX, then (2) your cloud-based Orthanc can C-Store a file to Horos/OsiriX. Query/Retrieve should then work.

Beware however that this is a highly insecure way of exchanging medical images! The imaging data will travel unencrypted, and anybody will be able to send images to your Horos/OsiriX.

You should definitely never use DICOM Query/Retrieve to exchange medical images over the cloud. Using an HTTPS-based approach (DICOMweb or REST API of Orthanc) or a VPN are the only secured solutions available.

Paolo Trifiletti

unread,
Mar 7, 2016, 6:38:08 AM3/7/16
to Orthanc Users
Dear Sebastien,

thanks a lot for your reply. I'm absolutely aware about the security issues related to the medical data exchange, this project fortunately deals only with anonymized images for shared research purposes among few diagnostic centers.

I will try and I let you know

All the bests

Paolo

solis....@gmail.com

unread,
Mar 18, 2016, 11:55:47 PM3/18/16
to Orthanc Users
El lunes, 7 de marzo de 2016, 5:38:08 (UTC-6), Paolo Trifiletti escribió:
> Dear Sebastien,
>
>
> thanks a lot for your reply. I'm absolutely aware about the security issues related to the medical data exchange, this project fortunately deals only with anonymized images for shared research purposes among few diagnostic centers.
>
>
> I will try and I let you know
>
>
> All the bests
>
>
> Paolo
>
> Il giorno mercoledì 2 marzo 2016 14:18:02 UTC+1, Sébastien Jodogne ha scritto:
> You would have to configure the firewall of your LAN so that your cloud-based instance of Orthanc can send images to your local instance of Horos/OsiriX.
>
>
> Before testing query/retrieve, you should check whether (1) your cloud-based Orthanc can C-Echo your local Horos/OsiriX, then (2) your cloud-based Orthanc can C-Store a file to Horos/OsiriX. Query/Retrieve should then work.
>
>
>
> Beware however that this is a highly insecure way of exchanging medical images! The imaging data will travel unencrypted, and anybody will be able to send images to your Horos/OsiriX.
>
>
> You should definitely never use DICOM Query/Retrieve to exchange medical images over the cloud. Using an HTTPS-based approach (DICOMweb or REST API of Orthanc) or a VPN are the only secured solutions available.
>
>
> On Wednesday, March 2, 2016 at 2:05:31 PM UTC+1, Paolo Trifiletti wrote:
> Dear Sebastien,
>
>
> thanks a lot for your quick reply.
>
>
> How do you suggest to configure Orthanc and my local network in order to make C-MOVE mode working in a cloud based environment?
>
>
> Any help could be really appreciated.
>
>
> All the bests
>
>
> Paolo
>
> Il giorno mercoledì 2 marzo 2016 08:38:52 UTC+1, Sébastien Jodogne ha scritto:
> Hello,
>
>
> DICOM C-Get is deprecated and, as such, is not supported by Orthanc.
>
>
> You have 3 options:
> Use DICOM C-Move (query/retrieve). This is probably not the best solution if you are cloud-based.Use a viewer that supports DICOMweb (more precisely QIDO-RS and WADO-RS), and install the DICOMweb plugin for Orthanc.Write some custom script (e.g. in Python) to locally download images from the cloud when needed, using the REST API of Orthanc.
> HTH,
> Sébastien-
>
>
> On Wednesday, March 2, 2016 at 3:21:54 AM UTC+1, Paolo Trifiletti wrote:
> Dear All,
>
>
> I have a cloud based installation of ORTHANC server, the cloud server has all the required  ports open. I would like to use on my pc a dicom client like Horos/Osirix. I tried configuring Horos; C-ECHO, C-FIND, C-STORE work well, so I can connect, query and send the studies to the cloud pacs, but once I try to retrieve the images in C-GET mode the horos client shows  this error message:
>
>
>
> "DICOM Network Failure (query)
> SCU Failed 0006:0208 DIMSE No valid Presentation Context ID"
>
>
> Once I switch to C-MOVE mode the client shows  this error message:
> "Move Failed
> Failed: UnableToProcess"
>
>
>
> and the ORTHANC logs show:
>
>
>
>
>
>
>
>
>
>
>
> E0302 03:06:22.380820 DicomUserConnection.cpp:159] DicomUserConnection: Failed to establish association
>
> 0006:0317 Peer aborted Association (or never connected)
>
> 0006:031c TCP Initialization Error: Operation now in progress (Timeout)
>
> E0302 03:06:22.381097 MoveScp.cpp:181] IMoveRequestHandler Failed: Error in the network protocol
>
>
> My Orthanc conf file:
>
>
>  "DicomModalities" : { "horos-paolo" : ["MacBook-PaoloTri", "93.47.xxx.yyy", 11112 ] }
>
>
> where "93.47.xxx.yyy" is the public IP of my laptop where HOROS is installed
>
>
> In the C-MOVE mode I can understand the behavior, because the cloud server can't reach the client using the public IP of my laptop....but in the C-GET mode it should work...
>
>
> Any suggestions?
>
>
> Thanks
>
>
> Paolo

Hello All

Excuse me, have you tried to retrieve the studies via WADO (with the DicomWeb plugin installed)

In the HOROS/OSIRIX node configuration would be something like:

[ip] [aet] [port, ej 4242] [retrieve]

where:
[ip] would be a public ip or a http address, like for example.ddns.net in case of using the no-ip free ddns service fon instance

[aet] AE Title

[port] The Orthanc port, def 4242

[restrieve] select WADO, and the internal options would be something like wado-path:wado, wado-port:8042, encryption:https, user: ej "alice", pass: ej."alice password", syntax: "ELE"]

and in the server Orthanc i did configure the modalitie as
"HOROS": ["HOROS", "public ip", 11112]
* i could not tried using a ddns because my home router does not operate correctly so i dont know if it can work.

hope you find this info helpful.

reggards,

Manuel


PS Sebastien Thank you very much for this project, its really awesome!!!!!

haji.abdulr...@gmail.com

unread,
Apr 5, 2016, 1:39:48 AM4/5/16
to Orthanc Users
Dear Sebastien
Kindly guide me, I have lost all my dicom images in Horos, how to recover them?
Thank you in advance

Sébastien Jodogne

unread,
Apr 5, 2016, 2:40:02 AM4/5/16
to Orthanc Users, haji.abdulr...@gmail.com
Hello,

Please provide a complete description of your problem and your infrastructure, and make sure to read the troubleshooting guide:
Reply all
Reply to author
Forward
0 new messages