MOVESCU: Error: Unable to Process; Internal Error

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sgalic
Posts: 2
Joined: Tue, 2019-02-05, 11:25

MOVESCU: Error: Unable to Process; Internal Error

#1 Post by sgalic »

Hello all,

I'm trying to debug DICOM retrieve problem and running against the wall. The error itself suggests that the problem is on the server side but I want to check that I'm making correct queries before I go to the server admin. I'll anonymize my UIDs and titles. First of all, my Windows client (AETITLE: "LOCAL" PORT: 4006) is added to servers security list (AETITLE: "REMOTE" IP: 192.168.2.2 PORT: 104). Here we go:

Surveying all incoming connections:

Code: Select all

netstat -a -n -t 1 | find ":4006"
Ok, now for the DICOM part:

Code: Select all

storescp -d --aetitle LOCAL 4006
Then I search for a file.

Code: Select all

gdcmscu --find --image --studyroot --call REMOTE --aetitle LOCAL 192.168.2.2 104 --key 8,20="20190126" --key 20,11="999" 
--key 20,e --key 8,18
With response:

Code: Select all

Find Response: 6
(0008,0005) ?? (CS) [ISO_IR 100]                                  		# 10,1-n Specific Character Set
(0008,0016) ?? (UI) [1.2.840.10008.5.1.4.1.1.7]                   	# 26,1 SOP Class UID
(0008,0018) ?? (UI) [7.8.9] 							# 50,1 SOP Instance UID
(0008,0020) ?? (DA) [20190126]                                    		# 8,1 Study Date
(0008,0052) ?? (CS) [IMAGE ]                                      		# 6,1 Query/Retrieve Level
(0008,0054) ?? (AE) [REMOTENG]                                      		# 6,1-n Retrieve AE Title
(0008,0056) ?? (CS) [ONLINE]                                      		# 6,1 Instance Availability
(0020,000d) ?? (UI) [1.2.3]								# 50,1 Study Instance UID
(0020,000e) ?? (UI) [4.5.6] 							# 50,1 Series Instance UID
(0020,0011) ?? (IS) [999 ]                                        			# 4,1 Series Number
Then, I'm making MOVE request:

Code: Select all

movescu -v -d -S -k 0008,0052="IMAGE" -k 0020,000D="1.2.3" -k 0020,000E="4.5.6" -k 0008,0018="7.8.9" --call REMOTE 
-aet LOCAL 192.168.2.2 104
with response:

Code: Select all

D: $dcmtk: movescu v3.6.0 2011-01-06 $
D: 
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name:   OFFIS_DCMTK_360
D: Their Implementation Class UID:    
D: Their Implementation Version Name: 
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    LOCAL
D: Called Application Name:     REMOTE
D: Responding Application Name: resp. AP Title
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:       =BigEndianExplicit
D:       =LittleEndianImplicit
D:   Context ID:        3 (Proposed)
D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:       =BigEndianExplicit
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 204 + 6 bytes PDU header
D:   02  00  00  00  00  cc  00  01  00  00  48  4e  4b  36  53  4b
D:   42  20  20  20  20  20  20  20  20  20  41  52  49  41  20  20
D:   20  20  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   21  00  00  19  03  00  00  00  40  00  00  11  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  50  00  00
D:   31  51  00  00  04  00  01  86  a0  52  00  00  16  31  2e  32
D:   2e  31  32  34  2e  31  31  33  35  33  32  2e  33  35  31  30
D:   2e  35  30  55  00  00  0b  41  47  46  41  4d  41  59  32  30
D:   30  33
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name:   OFFIS_DCMTK_360
D: Their Implementation Class UID:    1.2.124.113532.3510.50
D: Their Implementation Version Name: AGFAMAY2003
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    LOCAL
D: Called Application Name:     REMOTE
D: Responding Application Name: REMOTE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  100000
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D:   Context ID:        3 (Accepted)
D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 99988)
I: Sending Move Request: MsgID 1
I: Request:
I: 
I: # Dicom-Data-Set
I: # Used TransferSyntax: Unknown Transfer Syntax
I: (0008,0018) UI [7.8.9] #  50, 1 SOPInstanceUID
I: (0008,0052) CS [IMAGE]                                  #   6, 1 QueryRetrieveLevel
I: (0020,000d) UI [1.2.3] #  50, 1 StudyInstanceUID
I: (0020,000e) UI [4.5.6] #  50, 1 SeriesInstanceUID
I: 
I: Move Response 1:
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : 1
I: Completed Suboperations       : 0
I: Failed Suboperations          : 0
I: Warning Suboperations         : 0
I: Data Set                      : none
I: DIMSE Status                  : 0xff00: Pending
I: ======================= END DIMSE MESSAGE =======================
I: Move Response 2:
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : 1
I: Completed Suboperations       : 0
I: Failed Suboperations          : 0
I: Warning Suboperations         : 0
I: Data Set                      : none
I: DIMSE Status                  : 0xff00: Pending
I: ======================= END DIMSE MESSAGE =======================
I: Move Response 3:
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : 1
I: Completed Suboperations       : 0
I: Failed Suboperations          : 0
I: Warning Suboperations         : 0
I: Data Set                      : none
I: DIMSE Status                  : 0xff00: Pending
I: ======================= END DIMSE MESSAGE =======================
I: Move Response 4:
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : 1
I: Completed Suboperations       : 0
I: Failed Suboperations          : 0
I: Warning Suboperations         : 0
I: Data Set                      : none
I: DIMSE Status                  : 0xff00: Pending
I: ======================= END DIMSE MESSAGE =======================
I: Move Response 5:
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : 1
I: Completed Suboperations       : 0
I: Failed Suboperations          : 0
I: Warning Suboperations         : 0
I: Data Set                      : none
I: DIMSE Status                  : 0xff00: Pending
I: ======================= END DIMSE MESSAGE =======================
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : none
I: Completed Suboperations       : none
I: Failed Suboperations          : none
I: Warning Suboperations         : none
I: Data Set                      : none
I: DIMSE Status                  : 0xc001: Error: Failed - Unable to process
I: ======================= END DIMSE MESSAGE =======================
W: Status Detail:
W: 
W: # Dicom-Data-Set
W: # Used TransferSyntax: Little Endian Implicit
W: (0000,0902) LO [Error: Unable to Process; Internal Error] #  40, 1 ErrorComment
W: 
I: Releasing Association
I've also tried to pull entire series with:

Code: Select all

movescu -v -d -S -k 0008,0052="SERIES" -k 0020,000D="1.2.3" -k 0020,000E="4.5.6" --call REMOTE -aet LOCAL -aem LOCAL 192.168.2.2 104
with response :

Code: Select all

D: $dcmtk: movescu v3.6.0 2011-01-06 $
D: 
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name:   OFFIS_DCMTK_360
D: Their Implementation Class UID:    
D: Their Implementation Version Name: 
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    LOCAL
D: Called Application Name:     REMOTE
D: Responding Application Name: resp. AP Title
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:       =BigEndianExplicit
D:       =LittleEndianImplicit
D:   Context ID:        3 (Proposed)
D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:       =BigEndianExplicit
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 204 + 6 bytes PDU header
D:   02  00  00  00  00  cc  00  01  00  00  48  4e  4b  36  53  4b
D:   42  20  20  20  20  20  20  20  20  20  41  52  49  41  20  20
D:   20  20  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   21  00  00  19  03  00  00  00  40  00  00  11  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  50  00  00
D:   31  51  00  00  04  00  01  86  a0  52  00  00  16  31  2e  32
D:   2e  31  32  34  2e  31  31  33  35  33  32  2e  33  35  31  30
D:   2e  35  30  55  00  00  0b  41  47  46  41  4d  41  59  32  30
D:   30  33
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name:   OFFIS_DCMTK_360
D: Their Implementation Class UID:    1.2.124.113532.3510.50
D: Their Implementation Version Name: AGFAMAY2003
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    LOCAL
D: Called Application Name:     REMOTE
D: Responding Application Name: REMOTE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  100000
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D:   Context ID:        3 (Accepted)
D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 99988)
I: Sending Move Request: MsgID 1
I: Request:
I: 
I: # Dicom-Data-Set
I: # Used TransferSyntax: Unknown Transfer Syntax
I: (0008,0052) CS [SERIES]                                 #   6, 1 QueryRetrieveLevel
I: (0020,000d) UI [1.2.3] #  52, 1 StudyInstanceUID
I: (0020,000e) UI [4.5.6] #  52, 1 SeriesInstanceUID
I: 
I: ===================== INCOMING DIMSE MESSAGE ====================
I: Message Type                  : C-MOVE RSP
I: Message ID Being Responded To : 1
I: Affected SOP Class UID        : MOVEStudyRootQueryRetrieveInformationModel
I: Remaining Suboperations       : none
I: Completed Suboperations       : none
I: Failed Suboperations          : none
I: Warning Suboperations         : none
I: Data Set                      : none
I: DIMSE Status                  : 0xc001: Error: Failed - Unable to process
I: ======================= END DIMSE MESSAGE =======================
W: Status Detail:
W: 
W: # Dicom-Data-Set
W: # Used TransferSyntax: Little Endian Implicit
W: (0000,0902) LO [Error: Unable to Process; Internal Error] #  40, 1 ErrorComment
W: 
I: Releasing Association
On a side note, netstat does not detect incoming connections so REMOTE is not even trying to return the call. I have also tried with a commercial medical software and MITO. Both are able to search but non is able to pull the data. The only thing I find suspicious is in the FIND response, where it stands that

Code: Select all

(0008,0054) ?? (AE) [REMOTENG]                                      		# 6,1-n Retrieve AE Title
Retrieve entity AE title (REMOTENG) is NOT the same as the one whose connection parameters was provided to me(REMOTE). Anyone care to comment?

So, am I making any glaring mistake, or is it time to go to remote server admin? :D

Thank you very much!

J. Riesmeier
DCMTK Developer
Posts: 2503
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: MOVESCU: Error: Unable to Process; Internal Error

#2 Post by J. Riesmeier »

First question: Did you configure your LOCAL system (i.e. the system where the storescp is running on) as a known move destination on your PACS?
Retrieve entity AE title (REMOTENG) is NOT the same as the one whose connection parameters was provided to me(REMOTE). Anyone care to comment?
Then, you have to access REMOTENG for retrieving the selected DICOM objects, i.e. use this remote AET when calling movescu.

sgalic
Posts: 2
Joined: Tue, 2019-02-05, 11:25

Re: MOVESCU: Error: Unable to Process; Internal Error

#3 Post by sgalic »

First question: Did you configure your LOCAL system (i.e. the system where the storescp is running on) as a known move destination on your PACS?
Yes, client is for sure set up correctly in the server config.
Retrieve entity AE title (REMOTENG) is NOT the same as the one whose connection parameters was provided to me(REMOTE). Anyone care to comment?
Then, you have to access REMOTENG for retrieving the selected DICOM objects, i.e. use this remote AET when calling movescu.
I suspected as much. But what I find curious is that a professional software by a well known manufacturer is not able to be redirected, so to speak, to correct remote server.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest