Cannot perform any view outside the lan 2.18.3

325 views
Skip to first unread message

Ricardo Tolivia

unread,
Apr 8, 2016, 10:55:38 AM4/8/16
to dcm4che
Hi everyone, here is the deal. I have all running inside the lan, i can access from every pc via browser, oviyam, weasis latest versions installed works, no errors.

The problem comes when i try to open any viewer outside the network via "mydomain:8080", if i go to "mydomain:8080/dcm4che-web3" it show the list of studies, and i can preview the images, but when i click the EYE buttom to go to weasis, the jnlp download never starts, and the server throws this error:


2016-04-08 11:14:46,156 ERROR -> (http-0.0.0.0-8080-3) [org.dcm4chee.web.war.folder.webviewer.Webviewer] Cannot view the selection!
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092)
at org.dcm4chee.web.webview.weasis.WeasisLinkProvider.viewAllSelection(WeasisLinkProvider.java:174)
at org.dcm4chee.web.common.webview.link.WebviewerLinkProvider.viewAllSelection(WebviewerLinkProvider.java:149)
at org.dcm4chee.web.war.folder.webviewer.Webviewer$1.onClick(Webviewer.java:140)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1279)
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:745)

Thanks you!!!

zaka

unread,
Apr 8, 2016, 12:08:27 PM4/8/16
to dcm4che
Check your weasis-pacs-connector.properties settings for pacs.aet, pacs.host and pacs.port.

пятница, 8 апреля 2016 г., 19:55:38 UTC+5 пользователь Ricardo Tolivia написал:
Hi everyone, here is the deal. I have all running inside the lan, i can access from every pc via browser, oviyam, weasis latest versions installed works, no errors.

The problem comes when i try to open any viewer outside the network via "mydomain:8080", if i go to "mydomain:8080/dcm4che-web3" it show the list of studies, and i can preview the images, but when i click the EYE buttom to go to weasis, the jnlp download never starts, and the server throws this error:


2016-04-08 11:14:46,156 ERROR -> (http-0.0.0.0-8080-3) [org.dcm4chee.web.war.folder.webviewer.Webviewer] Cannot view the selection!
java.net.ConnectException: Connection refused: connect

Thanks you!!!

Ricardo Tolivia

unread,
Apr 8, 2016, 12:57:02 PM4/8/16
to dcm4che
I didnt change anything there, the values are:

##########  PACS properties ########## 
# AET, hostname and port of the PACS
pacs.aet=DCM4CHEE
pacs.host=localhost
pacs.port=11112

Nicolas Roduit

unread,
Apr 9, 2016, 10:24:40 AM4/9/16
to dcm4che
There is a connection refused on http://domain:8080/weasis-pacs-connector/viewer

Do you have a firewall that blocking this URL?

Alexandr Kuznetsov

unread,
Dec 2, 2019, 11:56:10 AM12/2/19
to dcm...@googlegroups.com
Hi everyone!
I have the same problem as Ricardo Tolivia. dcm4chee 2.18.3 works fine in the local network. Weasis 3.5.4 loads and displays the pictures. When I go from the Internet to the local network, the Weasis does not load, instead another browser window opens. To connect to a computer on a local network, I use port 8080 forwarding. The firewall is turned off.

In the logs, I see when the local network and the viewer are loading:
2019-12-02 18:21:45,006 DEBUG -> (http-0.0.0.0-8080-4) [org.weasis.dicom.data.Patient] Patient toXml [
<Patient PatientID="090125171403" IssuerOfPatientID="DRTECH" PatientName="Anonimous." PatientBirthDate="19681217" PatientSex="M" >
<Study StudyInstanceUID="1.2.840.114257.08372.2019012515145723281" StudyDescription="FOOT" StudyDate="20191202" StudyTime="173524" AccessionNumber="0901251714031" StudyID="0901251714031" >
<Series SeriesInstanceUID="1.2.840.114257.08372.2019012515145723281.1.1" SeriesDescription="FOOT AP" SeriesNumber="1" Modality="DX" >
<Instance SOPInstanceUID="1.2.840.114257.08372.2019012515145723281.1.1.1" InstanceNumber="1" />
</Series>
<Series SeriesInstanceUID="1.2.840.114257.08372.2019012515145723281.1.2" SeriesDescription="FOOT LAT" SeriesNumber="1" Modality="DX" >
<Instance SOPInstanceUID="1.2.840.114257.08372.2019012515145723281.1.2.2" InstanceNumber="2" />
</Series>
</Study>
</Patient>]
2019-12-02 18:21:45,007 INFO  -> (http-0.0.0.0-8080-5) [STDOUT] 2019-12-02 18:21:45,007 [-0.0.0.0-8080-5] INFO  o.w.s.JnlpLauncher        1 - templatePath = file:/home/dcm4chee/server/default/tmp/deploy/tmp1857453768046290679weasis-pacs-connector-exp.war/weasis.jnlp
2019-12-02 18:22:08,963 INFO  -> (Thread-1425) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] Check file system group LOSSY_STORAGE for deletion of orphaned private files
2019-12-02 18:22:08,969 INFO  -> (Thread-1426) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] Check file system group ONLINE_STORAGE for deletion of orphaned private files
2019-12-02 18:22:36,873 INFO  -> (http-0.0.0.0-8080-5) [STDOUT] 2019-12-02 18:22:36,872 [-0.0.0.0-8080-5] INFO  o.w.s.RequestManifest     Consume ManifestBuilder with id=9
2019-12-02 18:22:37,112 INFO  -> (http-0.0.0.0-8080-5) [org.dcm4chex.wado.web.WADOServlet] 192.168.0.198 - WADO URL:/wado?requestType=WADO&studyUID=1.2.840.114257.08372.2019012515145723281&seriesUID=1.2.840.114257.08372.2019012515145723281.1.2&objectUID=1.2.840.114257.08372.2019012515145723281.1.2.2&contentType=image/jpeg&imageQuality=70&rows=256&columns=256
2019-12-02 18:22:37,112 INFO  -> (http-0.0.0.0-8080-5) [org.dcm4chex.wado.mbean.WADOSupport] Get WADO object for 1.2.840.114257.08372.2019012515145723281.1.2.2
2019-12-02 18:22:37,113 WARN  -> (http-0.0.0.0-8080-5) [org.d .......

When an unsuccessful attempt from outside the network, then in the log:

2019-12-02 18:23:05,945 ERROR -> (http-0.0.0.0-8080-1) [org.dcm4chee.web.war.folder.webviewer.Webviewer] Cannot view the selection!
java.net.ConnectException: В соединении отказано
    at java.net.PlainSocketImpl.socketConnect(Native Method)

    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092)
    at org.dcm4chee.web.webview.weasis.WeasisLinkProvider.viewAllSelection(WeasisLinkProvider.java:210)
-------------------

When I connect to the server through OpenVPN, there are no problems either. But this forces all users to have OpenVPN, which is not always convenient.
Probably not enough port forwarding of 8080 and 11112?
I can’t solve this problem in any way. I ask the help of the community.
Thanks .


суббота, 9 апреля 2016 г., 17:24:40 UTC+3 пользователь Nicolas Roduit написал:

Nicolas Roduit

unread,
Dec 3, 2019, 7:32:48 AM12/3/19
to dcm4che
First, it is not recommended to use version 2.18.3 outside a local network for security reasons (vulnerable to several known attacks).

The problem is probably due to a proxy server configuration (at Java level) or a firewall restriction.

Zilvinas Nedelcenka

unread,
Mar 6, 2020, 10:27:15 AM3/6/20
to dcm4che
Hello,
please tell us how do you solved this problem - I have the same problem today...

Thank you very much!

Best regards,
Zilvinas

Alexandr Kuznetsov

unread,
Mar 6, 2020, 12:01:57 PM3/6/20
to dcm4che
The problem is not resolved as described.
The only solution when there is security and loading the viewer for me is using OpenVPN. Then the server and the client are in the same secure LAN and there are no port forwarding. And I keep using it.

Best regards,
Alexandr

пятница, 6 марта 2020 г., 17:27:15 UTC+2 пользователь Zilvinas Nedelcenka написал:

Zilvinas Nedelcenka

unread,
Mar 7, 2020, 3:26:12 AM3/7/20
to dcm4che
it sounds like a NAT issue. But in that case many, if not all, installations should work well only locally. I wonder how many people have this problem

Nicolas Roduit

unread,
Mar 7, 2020, 1:30:11 PM3/7/20
to dcm4che
dcm4chee 2.18.3 is obsolete and has not been updated for several years and will not be updated again. It is strongly discouraged to use this version outside of a protected local network. 

Nicolas Martino

unread,
Apr 27, 2023, 10:27:49 AM4/27/23
to dcm4che
This is too old, but I had the same problem because I run dcm4chee 2.18.3 in a docker environment and I want to access it from another network (not from internet, but it's the same case ).
I handled this by setting up a reverse proxy and exposing it to access the dcm4chee 2.18.3 backend server
Notes:
 -  I configured weasis-pacs-connector to use Weasis Protocol.
-  As @Roduit says it is strongly discouraged to use this version outside of a protected local network

You must change <IP> according to your dcm4chee server, the nginx configuration is:

upstream dcm4chee {
    server <IP>:8080;
}

server {
    listen 80;

    location / {
        return 301 /dcm4chee-web3;
    }

    location /weasis-pacs-connector {
        proxy_buffering off;
        proxy_pass  http://dcm4chee/weasis-pacs-connector;
        proxy_set_header Host $host;
    }

    location /wado {
        proxy_buffering off;
        proxy_pass  http://dcm4chee/wado;
        proxy_set_header Host $host;
    }

    location /dcm4chee-web3 {
        proxy_buffering off;
        proxy_redirect off;
        proxy_pass  http://dcm4chee/dcm4chee-web3;
        proxy_set_header Host $host;
    }
}
Reply all
Reply to author
Forward
0 new messages