storescp Association Aborted

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
PMarcheschi
Posts: 2
Joined: Mon, 2019-10-28, 17:40
Contact:

storescp Association Aborted

#1 Post by PMarcheschi »

Hi

I'm trying, under linux dcmtk-3.6.4, to create a script in order to move to an external server, zipped studies.
But I have an error with storescp: I: Association Aborted
I use dcm4chee server to send dicom files, If I use dcm4che storescp, I receive files normally without error.

I read the https://forum.dcmtk.org/viewtopic.php?t=3722 , but I need to recompile the tool.
I tried to recompile the tool with gcc 5.4.0 issuing the make with:

Code: Select all

make -j8 CFLAGS=-DDISABLE_RECV_TIMEOUT
It compiles fine but I got the same error.

this is the command line I use:

Code: Select all

~/bin/dcmtk/bin/storescp -v +v +xa -sp -pm -dhl -od ./BIGDATA  -xcs "./bin/comprimi.sh #p&"  2100
On the dcm4chee server I got a message:

Code: Select all

failed with status A702 Error Comment:null
  Started at 2019-10-28 18.00.19,780 failed at 2019-10-28 18.00.29,804
on storescp side , I got:

Code: Select all

I: Association Release
I: Association Received
I: Parameters:
I: ====================== BEGIN A-ASSOCIATE-RQ =====================
I: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
I: Our Implementation Version Name:   OFFIS_DCMTK_364
I: Their Implementation Class UID:    1.2.40.0.13.1.1.1
I: Their Implementation Version Name: dcm4che-1.4.34
I: Application Context Name:    1.2.840.10008.3.1.1.1
I: Calling Application Name:    DCM4SCOLL1
I: Called Application Name:     BIGDATA
I: Responding Application Name: 
I: Our Max PDU Receive Size:    16384
I: Their Max PDU Receive Size:  16352
I: Presentation Contexts:
I:   Context ID:        1 (Proposed)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Proposed Transfer Syntax(es):
I:       =LittleEndianImplicit
I:   Context ID:        3 (Proposed)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Proposed Transfer Syntax(es):
I:       =LittleEndianExplicit
I:   Context ID:        5 (Proposed)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Proposed Transfer Syntax(es):
I:       =JPEGLossless:Non-hierarchical-1stOrderPrediction
I: Requested Extended Negotiation: none
I: Accepted Extended Negotiation:  none
I: Requested User Identity Negotiation: none
I: User Identity Negotiation Response:  none
I: ======================= END A-ASSOCIATE-RQ ======================
I: Association Acknowledged (Max Send PDV: 16340)
I: ====================== BEGIN A-ASSOCIATE-AC =====================
I: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
I: Our Implementation Version Name:   OFFIS_DCMTK_364
I: Their Implementation Class UID:    1.2.40.0.13.1.1.1
I: Their Implementation Version Name: dcm4che-1.4.34
I: Application Context Name:    1.2.840.10008.3.1.1.1
I: Calling Application Name:    DCM4SCOLL1
I: Called Application Name:     BIGDATA
I: Responding Application Name: BIGDATA
I: Our Max PDU Receive Size:    16384
I: Their Max PDU Receive Size:  16352
I: Presentation Contexts:
I:   Context ID:        1 (Accepted)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Accepted SCP/SCU Role: Default
I:     Accepted Transfer Syntax: =LittleEndianImplicit
I:   Context ID:        3 (Accepted)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Accepted SCP/SCU Role: Default
I:     Accepted Transfer Syntax: =LittleEndianExplicit
I:   Context ID:        5 (Accepted)
I:     Abstract Syntax: =NuclearMedicineImageStorage
I:     Proposed SCP/SCU Role: Default
I:     Accepted SCP/SCU Role: Default
I:     Accepted Transfer Syntax: =JPEGLossless:Non-hierarchical-1stOrderPrediction
I: Requested Extended Negotiation: none
I: Accepted Extended Negotiation:  none
I: Requested User Identity Negotiation: none
I: User Identity Negotiation Response:  none
I: ======================= END A-ASSOCIATE-AC ======================
I: Association Aborted
Do you have some tip to solve the issue?

Thank you
Paolo

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

Re: storescp Association Aborted

#2 Post by J. Riesmeier »

From config/docs/macros.txt (DCMTK 3.6.4):

Code: Select all

DISABLE_RECV_TIMEOUT
  This macro is not supported anymore since the timeout for the recv() function
  is now configurable at runtime.  See global variable dcmSocketReceiveTimeout.
The socket timeout is now configurable for various DCMTK network tools, e.g. storescp:

Code: Select all

 other network options:
    [...]
    -ts   --socket-timeout       [s]econds: integer (default: 60)
                                 timeout for network socket (0 for none)
You should enable the --debug output of the storescp to get more details in the log.

PMarcheschi
Posts: 2
Joined: Mon, 2019-10-28, 17:40
Contact:

Re: storescp Association Aborted

#3 Post by PMarcheschi »

Hi
Thank you for clarifying that.
I tried a lot of combination with no luck.

I discovered that I can receive all images with --fork option.
But this option is incompatible with the --exec-on-eostudy command.
error: --exec-on-eostudy not allowed with --fork

Maybe I have to act on the dcm4chee server side.
Paolo

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

Re: storescp Association Aborted

#4 Post by J. Riesmeier »

Yes, it sounds like the Storage SCU (dcm2chee) is starting multiple associations on the same port. This is only supported if storescp is started in "fork mode".

Post Reply

Who is online

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