Echo failed! Reason: Failed to establish Association

2,212 views
Skip to first unread message

Beginner

unread,
Jul 13, 2016, 7:38:49 AM7/13/16
to dcm4che
I installed dcm4chee:  dcm4chee-2.18.1-psql, dcm4chee-arr-3.0.11-psql, jboss-4.2.3.GA, jdk 1.6 . In the dcm4chee-web console, I added a new entity DCMRCV but it fail to echo showing error: 

DICOM Echo to dicom://DCMRCV@localhost:11113:
Echo failed! Reason: Failed to establish Association aet:DCMRCV


The same is with CDRECORD which is created automatically 

But DCM4CHEE is successfully echoed 
server.log

Dan Berman

unread,
Apr 6, 2017, 3:17:31 PM4/6/17
to dcm4che
I am also experiencing the same issue every time i install dcm4chee. I have installed dcm4chee version 2.18.3 on Ubuntu 14.04 as well as previous versions and continue to run into this issue. 

The dcm4chee localhost entry passes both pings and echos, and I can use that entry to send a patient from dcm4chee to itself. I am also able to send from a dicom server (Velocity in this case) to dcm4chee and the file ends up in dcm4chee database. Velocity can also send to itself, so it is listening with the AE title and port provided to dcm4chee in the AE entry. I can test this dcm4chee AE entry to Velocity with a successful ping, but an echo fails. It seems to go back and forth between instantly failing:

DICOM Echo to dicom://TES...@10.37.108.90:104:
Echo failed! Reason: Failed to establish Association aet:TESTDB

and occasionally just hanging for a while and timing out after 30 seconds or so. I am unsure why it is inconsistent. 

So...

Velocity can send to dcm4chee
velocity can send to itself
Velocity system has port 104 open
dcm4chee server has ports 1-60000 open for ingress and egress
dcm4chee can ping itself using localhost and send to itself (I can see the files coming across in the log)
dcm4chee CANNOT echo or send to velocity, or any other dicom server.  but it can ping the IP.

Echo request from the log:

19:12:56,411 ERROR [EchoService] Echo dicom://TES...@10.37.108.90:104 failed
java.io.IOException: Failed to establish Association aet:TESTDB
        at org.dcm4chee.web.service.common.AbstractScuService.open(AbstractScuService.java:282)
        at org.dcm4chee.web.service.echo.EchoService.echo(EchoService.java:123)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.dcm4chee.web.war.ae.delegate.EchoDelegate.echo(EchoDelegate.java:64)
        at org.dcm4chee.web.war.ae.DicomEchoWindow$DicomEchoPage.doEcho(DicomEchoWindow.java:267)
        at org.dcm4chee.web.war.ae.DicomEchoWindow$DicomEchoPage.onBeforeRender(DicomEchoWindow.java:260)
        at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
        at org.apache.wicket.Component.beforeRender(Component.java:1103)
        at org.apache.wicket.Component.prepareForRender(Component.java:2297)
        at org.apache.wicket.Page.prepareForRender(Page.java:1545)
        at org.apache.wicket.Component.prepareForRender(Component.java:2329)
        at org.apache.wicket.Page.renderPage(Page.java:912)
        at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1287)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:662)

Dan Berman

unread,
Apr 6, 2017, 3:20:53 PM4/6/17
to dcm...@googlegroups.com
I have also discovered more unusual behavior attempting to echo the localhost AE entry. Not sure if it's related

1.  Starting with the default localhost entry ( DCM4CHEE localhost 11112 ) the echo passes. 
2. I can change the host in the DICOM Echo window to the public IP of the system (say, 192.168.1.157), hit Echo and it passes. 
3. I then save this entry (changes the hostname to the IP address that previously passed)
4. Clicking echo on the newly saved entry fails (even though it just passed before I clicked save)
5. If I edit this entry and change the hostname back to localhost and click echo, it will fail again. 
6. If I then save localhost back into the entry, close it, and click echo again, it will pass

My best guess at this point is that it is failing to echo the full IP address, and it is only appearing to pass because the changes are not being saved correctly until the DICOM echo window is reopened. 

It seems that the system cannot echo any full IP address, only "localhost". But the ping does pass. Is there an additional configuration that I need to set up?

This is all with the localhost entry. Not sure if it's related to being unable to ping any external dicom server. 

Pi Shetshotisak

unread,
Aug 3, 2018, 10:22:58 AM8/3/18
to dcm4che
I think I have the same problem
did you find solution yet?
Reply all
Reply to author
Forward
0 new messages