ShinyProxy / docker issue after machine crash

Hi,
after a machine crash due to a full disk, I’m getting an error Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused when trying to start an app.

Restarting the machine after crash worked and it looks likeShinyProxy is starting fine but seems to have issues to connect to docker / start containers. I can also start docker containers manually but this does not work for ShinyProxy.

Are there any ideas how to investigate further?

Sep 18 10:44:40 kghapp80v java[1117]: Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:480) ~[jersey-apache-connector-2.30.1.jar!/:na]
Sep 18 10:44:40 kghapp80v java[1117]:         ... 14 common frames omitted
Sep 18 10:44:40 kghapp80v java[1117]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.12.jar!/:4.5.12]
Sep 18 10:44:40 kghapp80v java[1117]:         ... 23 common frames omitted
~# systemctl status shinyproxy.service
● shinyproxy.service - ShinyProxy
   Loaded: loaded (/etc/systemd/system/shinyproxy.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2024-09-18 07:32:38 UTC; 3h 12min ago
 Main PID: 1117 (java)
    Tasks: 44 (limit: 19093)
   CGroup: /system.slice/shinyproxy.service
           └─1117 /usr/bin/java -jar /opt/shinyproxy/shinyproxy.jar
:~# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─http-proxy.conf
   Active: active (running) since Wed 2024-09-18 10:22:21 UTC; 23min ago
     Docs: https://docs.docker.com
 Main PID: 5046 (dockerd)
    Tasks: 28
   CGroup: /system.slice/docker.service
           ├─5046 /usr/bin/dockerd -H fd://
           └─5083 docker-containerd --config /var/run/docker/containerd/containerd.toml

Sep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.261454000Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.261491600Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420380570, CONNECTING" module=grpc
Sep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.262216600Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc420380570, READY" module=grpc
Sep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.262244000Z" level=info msg="Loading containers: start."
Sep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.682424300Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred ISep 18 10:22:20 kghapp80v dockerd[5046]: time="2024-09-18T10:22:20.938166000Z" level=info msg="Loading containers: done."
Sep 18 10:22:21 kghapp80v dockerd[5046]: time="2024-09-18T10:22:21.055254600Z" level=info msg="Docker daemon" commit=e68fc7a graphdriver(s)=overlay2 version=18.06.1-ce
Sep 18 10:22:21 kghapp80v dockerd[5046]: time="2024-09-18T10:22:21.055330800Z" level=info msg="Daemon has completed initialization"
Sep 18 10:22:21 kghapp80v systemd[1]: Started Docker Application Container Engine.
Sep 18 10:22:21 kghapp80v dockerd[5046]: time="2024-09-18T10:22:21.080179500Z" level=info msg="API listen on /var/run/docker.sock"

Problem solved, the file /etc/systemd/system/docker.service.d/docker.conf was not there anymore. I’ve created a new one as fix and now ShinyProxy is working fine.

I’ve noticed this here…
Before fix

After fix