C_MOVE: Connection closed while waiting for DIMSE message

40 views
Skip to first unread message

Bharys J

unread,
May 18, 2023, 7:39:13 AM5/18/23
to pynetdicom

Hi, 

I was trying C_MOVE on Dicoogle pacs installed on local machine. Association is established but the connection is aborted

C_FIND & C_STORE works fine

Pynetdicom version:2.0.2
PACS: Dicoogle, version 3.1.0-20220624_1052
Python:3.10

I get the same error when running the script given here https://pydicom.github.io/pynetdicom/stable/apps/movescu.html 

Please find the code below

settings = get_settings(local_pacs_settings)
ds = get_query_ds(query_path)
ds/identifier (0008, 0052) Query/Retrieve Level CS: 'PATIENT' (0010, 0010) Patient's Name PN: 'D1-0002'
ae = AE()
ae.add_requested_context(PatientRootQueryRetrieveInformationModelMove)
ae.supported_contexts = StoragePresentationContexts
ae.ae_title = settings['AETITLE']
scp = ae.start_server(("",int(settings['PORT'])),block=False,evt_handlers=handlers)
assoc = ae.associate(settings['PHOST'],int(settings['PPORT']),ae_title=settings['PAETITLE'])
if assoc.is_established:
    res = assoc.send_c_move(ds,settings['AETITLE'],PatientRootQueryRetrieveInformationModelMove)
    for (status,identifier) in res:
        if status:
            print('C-MOVE query status: 0x{0:04x}'.format(status.Status))
        else:
            print('Connection timed out, was aborted or received invalid response')
    assoc.release()
else:
    print('Association rejected, aborted or never connected')
scp.shutdown()

This is the response E: Connection closed while waiting for DIMSE message I: Releasing Association I: Association Aborted (A-P-ABORT) I: Association Aborted
Thanks in advance for any leads to resolve this issue
-
Reply all
Reply to author
Forward
0 new messages