movescu from dcm4chee 5 - errorComment=Unknown AE

1,184 views
Skip to first unread message

Andrew Fischer

unread,
Jul 18, 2018, 11:09:15 AM7/18/18
to dcm4che
Hello,

I am trying to get movescu working with dcm4chee 5 and storescp.     I have this working with the older dcm4chee  2 archive.

In short, I have shell scripts  that use   movescu to  move studies from the archive to local files and then do a series of preprocessing steps on the data.

Our dcm4chee 5 archive is up and working.     No problem pushing data from our scanner, query and retrieve with Horos works too. 

Storescp is working.  I can send data to storescp using Horos.    It works as expected.  


The archive and movescu are running on the same computer.   However  I am using Docker for the archive.  Is that why this fails?  



~/dcm4che-5.13.1/bin/storescp --bind dcm_odin:11113 --directory /mnt/md0/dcmdb/ --filepath '{00080090}/{00100020}/{00200011}/{00080018}.dcm' > ~/dcm/storescp.log




movescu  failed with an Unknown AE error.    







 ~/dcm4che-5.13.1/bin/movescu -c DCM4CHEE_ODIN@localhost:11112 --dest dcm_odin 002.dcm



16:05:23,040 INFO  - Initiate connection from 0.0.0.0/0.0.0.0:0 to localhost:11112

16:05:23,046 INFO  - Established connection Socket[addr=localhost/127.0.0.1,port=11112,localport=49511]

16:05:23,056 DEBUG - /127.0.0.1:49511->localhost/127.0.0.1:11112(1): enter state: Sta4 - Awaiting transport connection opening to complete

16:05:23,057 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << A-ASSOCIATE-RQ

16:05:23,066 DEBUG - A-ASSOCIATE-RQ[

  calledAET: DCM4CHEE_ODIN

  callingAET: MOVESCU

  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name

  implClassUID: 1.2.40.0.13.1.3

  implVersionName: dcm4che-5.13.1

  maxPDULength: 16378

  maxOpsInvoked/maxOpsPerformed: 0/0

  PresentationContext[id: 1

    as: 1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE

    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian

    ts: 1.2.840.10008.1.2.1 - Explicit VR Little Endian

    ts: 1.2.840.10008.1.2.2 - Explicit VR Big Endian (Retired)

  ]

]

16:05:23,066 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta5 - Awaiting A-ASSOCIATE-AC or A-ASSOCIATE-RJ PDU

16:05:23,068 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> A-ASSOCIATE-AC

16:05:23,068 DEBUG - A-ASSOCIATE-AC[

  calledAET: DCM4CHEE_ODIN

  callingAET: MOVESCU

  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name

  implClassUID: 1.2.40.0.13.1.3

  implVersionName: dcm4che-5.13.1

  maxPDULength: 16378

  maxOpsInvoked/maxOpsPerformed: 0/0

  PresentationContext[id: 1

    result: 0 - acceptance

    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian

  ]

]

16:05:23,068 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta6 - Association established and ready for data transfer

16:05:23,084 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << 1:C-MOVE-RQ[pcid=1, prior=0

  cuid=1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian

16:05:23,110 DEBUG - Command:

(0000,0002) UI [1.2.840.10008.5.1.4.1.2.2.2] AffectedSOPClassUID

(0000,0100) US [33] CommandField

(0000,0110) US [1] MessageID

(0000,0600) AE [dcm_odin] MoveDestination

(0000,0700) US [0] Priority

(0000,0800) US [0] CommandDataSetType


16:05:23,110 DEBUG - Dataset:

(0008,0052) CS [STUDY] QueryRetrieveLevel

(0020,000D) UI [1.3.46.670589.11.17308.5.0.16436.2018071711050766002] StudyIns


16:05:23,117 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> 1:C-MOVE-RSP[pcid=1, status=a801H, errorComment=Unknown AE: dcm_odin

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian

16:05:23,117 DEBUG - Command:

(0000,0100) US [32801] CommandField

(0000,0120) US [1] MessageIDBeingRespondedTo

(0000,0800) US [257] CommandDataSetType

(0000,0900) US [43009] Status

(0000,0902) LO [Unknown AE: dcm_odin] ErrorComment


16:05:23,118 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << A-RELEASE-RQ

16:05:23,118 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta7 - Awaiting A-RELEASE-RP PDU

16:05:23,119 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> A-RELEASE-RP

16:05:23,119 INFO  - MOVESCU->DCM4CHEE_ODIN(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=49511]

16:05:23,119 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta1 - Idle



I can also see the error in the archive log:



2018-07-18 16:05:23,113 INFO  [org.dcm4chee.arc.retrieve.scp.CommonCMoveSCP] (EE-ManagedExecutorService-default-Thread-19) DCM4CHEE_ODIN<-MOVESCU(15): Process C-MOVE RQ:

(0008,0052) CS [STUDY] QueryRetrieveLevel

(0020,000D) UI [1.3.46.670589.11.17308.5.0.16436.2018071711050766002] StudyIns


2018-07-18 16:05:23,115 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-19) DCM4CHEE_ODIN<-MOVESCU(15): processing 1:C-MOVE-RQ[pcid=1, prior=0

  cuid=1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian failed. Caused by: : org.dcm4che3.net.service.DicomServiceException: Unknown AE: dcm_odin

at org.dcm4chee.arc.retrieve.scp.CommonCMoveSCP.newRetrieveContext(CommonCMoveSCP.java:167)

at org.dcm4chee.arc.retrieve.scp.CommonCMoveSCP.calculateMatches(CommonCMoveSCP.java:103)

at org.dcm4che3.net.service.BasicCMoveSCP.onDimseRQ(BasicCMoveSCP.java:66)

at org.dcm4che3.net.service.AbstractDicomService.onDimseRQ(AbstractDicomService.java:74)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)

at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)

at org.dcm4che3.net.service.DicomService$437306620$Proxy$_$$_WeldClientProxy.onDimseRQ(Unknown Source)

at org.dcm4che3.net.service.DicomServiceRegistry.onDimseRQ(DicomServiceRegistry.java:86)

at org.dcm4che3.net.ApplicationEntity.onDimseRQ(ApplicationEntity.java:459)

at org.dcm4che3.net.Association.onDimseRQ(Association.java:696)

at org.dcm4che3.net.PDUDecoder.decodeDIMSE(PDUDecoder.java:459)

at org.dcm4che3.net.Association.handlePDataTF(Association.java:679)

at org.dcm4che3.net.State$4.onPDataTF(State.java:103)

at org.dcm4che3.net.Association.onPDataTF(Association.java:675)

at org.dcm4che3.net.PDUDecoder.nextPDU(PDUDecoder.java:177)

at org.dcm4che3.net.Association$2.run(Association.java:518)

at org.jboss.as.ee.concurrent.ControlPointUtils$ControlledRunnable.run(ControlPointUtils.java:105)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.glassfish.enterprise.concurrent.internal.ManagedFutureTask.run(ManagedFutureTask.java:141)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

at org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)

at org.jboss.as.ee.concurrent.service.ElytronManagedThreadFactory$ElytronManagedThread.run(ElytronManagedThreadFactory.java:78)


2018-07-18 16:05:23,115 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-19) DCM4CHEE_ODIN<-MOVESCU(15) << 1:C-MOVE-RSP[pcid=1, status=a801H, errorComment=Unknown AE: dcm_odin

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian

2018-07-18 16:05:23,118 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-19) DCM4CHEE_ODIN<-MOVESCU(15) >> A-RELEASE-RQ

2018-07-18 16:05:23,119 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-19) DCM4CHEE_ODIN<-MOVESCU(15) << A-RELEASE-RP

2018-07-18 16:05:23,169 INFO  [org.dcm4che3.net.Association] (EE-ManagedScheduledExecutorService-default-Thread-23) DCM4CHEE_ODIN<-MOVESCU(15): close Socket[addr=/172.18.0.1,port=45384,localport=11112]



manick

unread,
Jul 19, 2018, 6:47:02 AM7/19/18
to dcm4che

Add AE title "dcm_odin" to the DCM4CHEE's AElist.

Andrew Fischer

unread,
Jul 19, 2018, 10:02:16 AM7/19/18
to dcm...@googlegroups.com

I don't have any external AE Titles in my dcm4chee AElist.  Configured as above, the archive works fine with every other device on our network.    For example I can send  from our MRI scanner and retrieve with my iMac. 


If I add dcm_odin to the Application Entities list, I get a connection refused error.   Am I doing this wrong?










andrewfischer@odin:~/findscu_dir$  ~/dcm4che-5.13.1/bin/movescu -c DCM4CHEE_ODIN@localhost:11112 --dest dcm_odin 002.dcm

14:58:13,635 INFO  - Initiate connection from 0.0.0.0/0.0.0.0:0 to localhost:11112

14:58:13,641 INFO  - Established connection Socket[addr=localhost/127.0.0.1,port=11112,localport=46385]

14:58:13,652 DEBUG - /127.0.0.1:46385->localhost/127.0.0.1:11112(1): enter state: Sta4 - Awaiting transport connection opening to complete

14:58:13,653 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << A-ASSOCIATE-RQ

14:58:13,661 DEBUG - A-ASSOCIATE-RQ[

  calledAET: DCM4CHEE_ODIN

  callingAET: MOVESCU

  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name

  implClassUID: 1.2.40.0.13.1.3

  implVersionName: dcm4che-5.13.1

  maxPDULength: 16378

  maxOpsInvoked/maxOpsPerformed: 0/0

  PresentationContext[id: 1

    as: 1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE

    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian

    ts: 1.2.840.10008.1.2.1 - Explicit VR Little Endian

    ts: 1.2.840.10008.1.2.2 - Explicit VR Big Endian (Retired)

  ]

]

14:58:13,661 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta5 - Awaiting A-ASSOCIATE-AC or A-ASSOCIATE-RJ PDU

14:58:13,663 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> A-ASSOCIATE-AC

14:58:13,663 DEBUG - A-ASSOCIATE-AC[

  calledAET: DCM4CHEE_ODIN

  callingAET: MOVESCU

  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name

  implClassUID: 1.2.40.0.13.1.3

  implVersionName: dcm4che-5.13.1

  maxPDULength: 16378

  maxOpsInvoked/maxOpsPerformed: 0/0

  PresentationContext[id: 1

    result: 0 - acceptance

    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian

  ]

]

14:58:13,664 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta6 - Association established and ready for data transfer

14:58:13,681 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << 1:C-MOVE-RQ[pcid=1, prior=0

  cuid=1.2.840.10008.5.1.4.1.2.2.2 - Study Root Query/Retrieve Information Model - MOVE

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian

14:58:13,707 DEBUG - Command:

(0000,0002) UI [1.2.840.10008.5.1.4.1.2.2.2] AffectedSOPClassUID

(0000,0100) US [33] CommandField

(0000,0110) US [1] MessageID

(0000,0600) AE [dcm_odin] MoveDestination

(0000,0700) US [0] Priority

(0000,0800) US [0] CommandDataSetType


14:58:13,708 DEBUG - Dataset:

(0008,0052) CS [STUDY] QueryRetrieveLevel

(0020,000D) UI [1.3.46.670589.11.17308.5.0.10376.2018071815252865000] StudyIns


14:58:13,815 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> 1:C-MOVE-RSP[pcid=1, status=a702H, errorComment=java.net.ConnectException: Connection refused (Connection refuse

  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian

14:58:13,815 DEBUG - Command:

(0000,0100) US [32801] CommandField

(0000,0120) US [1] MessageIDBeingRespondedTo

(0000,0800) US [257] CommandDataSetType

(0000,0900) US [42754] Status

(0000,0902) LO [java.net.ConnectException: Connection refused (Connection refu


14:58:13,816 INFO  - MOVESCU->DCM4CHEE_ODIN(1) << A-RELEASE-RQ

14:58:13,816 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta7 - Awaiting A-RELEASE-RP PDU

14:58:13,817 INFO  - MOVESCU->DCM4CHEE_ODIN(1) >> A-RELEASE-RP

14:58:13,817 INFO  - MOVESCU->DCM4CHEE_ODIN(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=46385]

14:58:13,818 DEBUG - MOVESCU->DCM4CHEE_ODIN(1): enter state: Sta1 - Idle

manick p

unread,
Jul 20, 2018, 12:19:47 AM7/20/18
to dcm...@googlegroups.com
Do Echo verification from dcm4chee to "dcm_odin", it should succeed to perform move operation.

On Thu, Jul 19, 2018 at 7:32 PM, Andrew Fischer <andrew...@gmail.com> wrote:

I don't have any external AE Titles in my dcm4chee AElist.  Configured as above, the archive works fine with every other device on our network.    For example I can send and retrieve from our MRI scanner and my iMac. 

--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+unsubscribe@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Andrew Fischer

unread,
Jul 20, 2018, 6:46:09 AM7/20/18
to dcm4che
How can I do that with dcm4chee 5?      Version 2 has echo in the GUI but I can't find that in dcm4chee 5 (arc-lite).


I've tried to figure out how to configure and test from the documentation too.    The Archive as SCP section of the wiki only covers storage SCP and not  query / retrieve. 






To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

manick p

unread,
Jul 20, 2018, 7:15:03 AM7/20/18
to dcm...@googlegroups.com
Its next to delete (X) icon for each configured AE title. 

To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+unsubscribe@googlegroups.com.

Andrew Fischer

unread,
Jul 20, 2018, 8:50:24 AM7/20/18
to dcm4che
I figured it out.   Thank you for the help.

I had been using  localhost:1113 for the net connection to dcm_odin.   That was incorrect because the archive is running under docker.   I changed to  odin's URL and now it works.


MOVESCU->DCM4CHEE_ODIN(1) >> 1:C-MOVE-RSP[pcid=1, remaining=48286, completed=10722, failed=0, warning=0, status=ff00H

Reply all
Reply to author
Forward
0 new messages