Orthanc to Orthanc study transfer error (0006:031d TCP I/O Error)

I’m trying to send a study from one Orthanc Instance on my network to another but the transfer is failing with some kind of TCP error. The relevant portion of my log file is below:

I0115 18:02:30.149132 HttpServer.cpp:1189] (http) GET /modalities
I0115 18:02:36.052574 HttpServer.cpp:1189] (http) POST /modalities/ORTHANC2/store
I0115 18:02:36.160179 JobsRegistry.cpp:701] New job submitted with priority 0: 278a2dfb-f863-476d-8c05-4767a04a62fe
I0115 18:02:36.161147 JobsEngine.cpp:133] (jobs) Executing job with priority 0 in worker thread 1: 278a2dfb-f863-476d-8c05-4767a04a62fe
I0115 18:02:36.163142 DicomModalityStoreJob.cpp:61] Sending instance 64dc6dfd-95b3cec5-4184a7a5-7e06e82b-6f267f32 to modality “TEST-PACS”
I0115 18:02:36.166133 FilesystemStorage.cpp:157] Reading attachment “20e634a4-eaef-4b04-821b-7cc2da14b91a” of “DICOM” content type
I0115 18:02:36.176723 DicomAssociation.cpp:260] (dicom) Opening a DICOM SCU connection from AET “TEST-PACS3” to AET “TEST-PACS” on host 192.168.10.77:4242 (manufacturer: Generic)
E0115 18:02:38.427901 OrthancException.cpp:57] Error in the network protocol: DicomAssociation - C-STORE to AET “TEST-PACS”: DIMSE Failed to send message (0006:031d TCP I/O Error (An existing connection was forcibly closed by the remote host.) occurred in routine: writeDataPDU)
I0115 18:02:38.433431 JobsRegistry.cpp:475] Job has completed with failure: 278a2dfb-f863-476d-8c05-4767a04a62fe
E0115 18:02:38.434428 OrthancException.cpp:57] Error in the network protocol: DicomAssociation - C-STORE to AET “TEST-PACS”: DIMSE Failed to send message (0006:031d TCP I/O Error (An existing connection was forcibly closed by the remote host.) occurred in routine: writeDataPDU)

I0115 18:19:53.887615 CommandDispatcher.cpp:324] Association Received from AET TEST-PACS3 on IP 192.168.10.10
I0115 18:19:53.904216 main.cpp:287] Incoming connection from AET TEST-PACS3on IP 24.227.253.5, calling AET TEST-PACS
I0115 18:19:53.909098 CommandDispatcher.cpp:677] Association Acknowledged (Max Send PDV: 16372)
I0115 18:19:54.005772 FilesystemStorage.cpp:107] Creating attachment “1d4dbd2c-1256-464e-8df8-43a666003088” of “DICOM” type (size: 1MB)
I0115 18:19:54.016513 FilesystemStorage.cpp:107] Creating attachment “09dd0593-01da-4b52-b96e-3e10eac46f50” of “JSON summary of DICOM” type (size: 1MB)
I0115 18:19:54.025302 FilesystemStorage.cpp:218] Deleting attachment “1d4dbd2c-1256-464e-8df8-43a666003088” of type 1
I0115 18:19:54.030184 FilesystemStorage.cpp:218] Deleting attachment “09dd0593-01da-4b52-b96e-3e10eac46f50” of type 2
I0115 18:19:54.036043 ServerContext.cpp:516] Already stored
I0115 18:19:54.038973 main.cpp:307] Incoming Store request from AET TEST-PACS3 on IP 192.168.10.10, calling AET TEST-PACS
W0115 18:19:54.044832 CommandDispatcher.cpp:815] Rejected Store request from remote DICOM modality with AET “TEST-PACS3” and hostname “192.168.10.10”
I0115 18:19:54.051667 CommandDispatcher.cpp:933] DIMSE failure (aborting association): DIMSE Caller passed in an illegal association

This is an issue with your network, for which we can’t provide any support:

https://stackoverflow.com/a/2582070/881731