regarding studies not being sent to orthanc with an error #10
nikhilsharma524
started this conversation in
General
Replies: 1 comment
-
The problem here is that the "dcmsend" send util from the Offis DCMTK package, which is used by mercure for sending out DICOM files, reports the error EXITCODE_CANNOT_SEND_REQUEST. Since this problem occurs on the DCMTK level, there is nothing that can be done on the mercure level. I'd recommend running the listed dcmsend command by hand (as listed in the line "python[742201]: subprocess.CalledProcessError: Command '['dcmsend', ...") and then to look at the output. It could be that you are trying to send images that Orthanc cannot receive. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
INFO send: --------- [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec]
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: INFO send: Folder /opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec is ready for sending [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec]
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: INFO base: Sending /opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec to target 17505708 [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec]
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: ERROR builtin: Failed command:
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: ['dcmsend', '54.157.178.66', '4242', '+sd', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec', '-aet', 'mercure', '-aec', '17505708', '-nuc', '+sp', '*.dcm', '-to', '60', '+crf', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec/sent.txt']
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: because of EXITCODE_CANNOT_SEND_REQUEST [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec]
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: Traceback (most recent call last):
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/opt/mercure/app/dispatch/target_types/base.py", line 47, in send_to_target
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: result = check_output(command, encoding="utf-8", stderr=subprocess.STDOUT, **opts)
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: return run(popenargs, stdout=PIPE, timeout=timeout, check=True,
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/usr/lib/python3.8/subprocess.py", line 516, in run
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: raise CalledProcessError(retcode, process.args,
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: subprocess.CalledProcessError: Command '['dcmsend', '54.157.178.66', '4242', '+sd', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec', '-aet', 'mercure', '-aec', '17505708', '-nuc', '+sp', '.dcm', '-to', '60', '+crf', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec/sent.txt']' returned non-zero exit status 62.
we are receiving this error through mercure and some specific studies are not being sent with this failed status please tell us how to overcome this we have also increased the timeout interval from 60 to 600 then also they are not being received on orthanc.
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: ERROR send: Error sending uid 1.2.410.200001.1.1131.2589509089.2.20230611.1171731017.945.1 in task 12465f70-08bd-11ee-98c4-2f1f250f75ec to 17505708:
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: EXITCODE_CANNOT_SEND_REQUEST [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec] [target: 17505708]
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: Traceback (most recent call last):
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/opt/mercure/app/dispatch/target_types/base.py", line 47, in send_to_target
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: result = check_output(command, encoding="utf-8", stderr=subprocess.STDOUT, **opts)
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: return run(popenargs, stdout=PIPE, timeout=timeout, check=True,
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/usr/lib/python3.8/subprocess.py", line 516, in run
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: raise CalledProcessError(retcode, process.args,
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: subprocess.CalledProcessError: Command '['dcmsend', '54.157.178.66', '4242', '+sd', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec', '-aet', 'mercure', '-aec', '17505708', '-nuc', '+sp', '.dcm', '-to', '60', '+crf', '/opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec/sent.txt']' returned non-zero exit status 62.
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: During handling of the above exception, another exception occurred:
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: Traceback (most recent call last):
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/opt/mercure/app/dispatch/send.py", line 169, in execute
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: result = handler.send_to_target(task_content.id, target, dispatch_info, source_folder)
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/opt/mercure/app/dispatch/target_types/base.py", line 50, in send_to_target
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: self.handle_error(e, command)
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: File "/opt/mercure/app/dispatch/target_types/builtin.py", line 51, in handle_error
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: raise RuntimeError(f"{dcmsend_error_message}")
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: RuntimeError: EXITCODE_CANNOT_SEND_REQUEST
Jun 13 00:48:58 ip-172-31-72-121 python[742201]: INFO send: Done with dispatching folder /opt/mercure/data/outgoing/12465f70-08bd-11ee-98c4-2f1f250f75ec [task: 12465f70-08bd-11ee-98c4-2f1f250f75ec]
Beta Was this translation helpful? Give feedback.
All reactions