I was trying to run the ShineyProxy application in docker and try to access the Hello_Application shiney app inside the shineyproxy application. It is failed to start and gives below error.
Error log:
2023-08-15 13:19:12 2023-08-15 12:19:12.010 WARN 1 — [pool-1-thread-1] e.o.containerproxy.service.ProxyService : [user=jack proxyId=da78966b-82a8-4ac0-a460-def26d7e1daa specId=01_hello] Proxy failed to start
2023-08-15 13:19:12
2023-08-15 13:19:12 eu.openanalytics.containerproxy.ProxyFailedToStartException: Container with index 0 failed to start
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.backend.AbstractContainerBackend.startProxy(AbstractContainerBackend.java:116) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.service.ProxyService.startOrResumeProxy(ProxyService.java:455) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.service.ProxyService.lambda$startProxy$4(ProxyService.java:279) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.service.ProxyService.lambda$action$11(ProxyService.java:599) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
2023-08-15 13:19:12 at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2023-08-15 13:19:12 Caused by: eu.openanalytics.containerproxy.ContainerFailedToStartException: Docker container failed to start
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.backend.docker.DockerEngineBackend.startContainer(DockerEngineBackend.java:153) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.backend.AbstractContainerBackend.startProxy(AbstractContainerBackend.java:108) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 … 8 common frames omitted
2023-08-15 13:19:12 Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.18.0.3:1234 [/172.18.0.3] failed: Connection refused (Connection refused)
2023-08-15 13:19:12 at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2848) ~[docker-client-8.16.0.jar!/:8.16.0]
2023-08-15 13:19:12 at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2712) ~[docker-client-8.16.0.jar!/:8.16.0]
2023-08-15 13:19:12 at com.spotify.docker.client.DefaultDockerClient.inspectImage(DefaultDockerClient.java:1509) ~[docker-client-8.16.0.jar!/:8.16.0]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.backend.docker.DockerEngineBackend.isImagePresent(DockerEngineBackend.java:243) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 at eu.openanalytics.containerproxy.backend.docker.DockerEngineBackend.startContainer(DockerEngineBackend.java:81) ~[containerproxy-1.0.2.jar!/:1.0.2]
2023-08-15 13:19:12 … 9 common frames omitted
2023-08-15 13:19:12 Caused by: java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.18.0.3:1234 [/172.18.0.3] failed: Connection refused (Connection refused)
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2710) ~[docker-client-8.16.0.jar!/:8.16.0]
2023-08-15 13:19:12 … 12 common frames omitted
2023-08-15 13:19:12 Caused by: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to 172.18.0.3:1234 [/172.18.0.3] failed: Connection refused (Connection refused)
2023-08-15 13:19:12 at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:488) ~[jersey-apache-connector-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:498) ~[jersey-apache-connector-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) ~[na:na]
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37) ~[jersey-guava-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:494) ~[jersey-apache-connector-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:181) ~[jersey-client-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:303) ~[jersey-common-2.26-b03.jar!/:na]
2023-08-15 13:19:12 at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:209) ~[jersey-client-2.26-b03.jar!/:na]
2023-08-15 13:19:12 … 5 common frames omitted
2023-08-15 13:19:12 Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 172.18.0.3:1234 [/172.18.0.3] failed: Connection refused (Connection refused)
2023-08-15 13:19:12 at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) ~[httpclient-4.5.13.jar!/:4.5.13]
2023-08-15 13:19:12 at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:442) ~[jersey-apache-connector-2.26-b03.jar!/:na]
2023-08-15 13:19:12 … 21 common frames omitted
2023-08-15 13:19:12 Caused by: java.net.ConnectException: Connection refused (Connection refused)