Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DnsSubscription : Connection timed out behind a proxy #389

Open
bcoste opened this issue Jul 1, 2021 · 2 comments
Open

DnsSubscription : Connection timed out behind a proxy #389

bcoste opened this issue Jul 1, 2021 · 2 comments

Comments

@bcoste
Copy link

bcoste commented Jul 1, 2021

My Cardano-rosetta node failed to sync the relay relays-new.cardano-testnet.iohkdev.io with a "Connection timed out" error.

I'm using the docker image inputoutput/cardano-rosetta:1.2.1-testnet with kubernetes.

I think the issue is due to my company's proxy blocking the traffic.

I tried to start manually cardano-node with proxy parameters but it didn't solved :
http_proxy="http://10.110.255.174:8080" HTTP_PROXY="http://10.110.255.174:8080" https_proxy="http://10.110.255.174:8080" HTTPS_PROXY="http://10.110.255.174:8080" /usr/local/bin/cardano-node run --config /config/cardano-node/config.json --database-path /data/node-db --socket-path /ipc/node.socket --topology /config/cardano-node/topology.json

How the proxy parameters should be provided to cardano-rosetta to make it work behind a proxy ?

The issue #340 has similar errors.

Logs of my container :

[cardano-:cardano.node.networkMagic:Notice:5] [2021-06-30 15:29:22.42 UTC] NetworkMagic 1097911063
[cardano-:cardano.node.basicInfo.protocol:Notice:5] [2021-06-30 15:29:22.42 UTC] Byron; Shelley
[cardano-:cardano.node.basicInfo.version:Notice:5] [2021-06-30 15:29:22.42 UTC] 1.25.1
[cardano-:cardano.node.basicInfo.commit:Notice:5] [2021-06-30 15:29:22.42 UTC] 0000000000000000000000000000000000000000
[cardano-:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-06-30 15:29:22.42 UTC] 2021-06-30 15:29:22.425853007 UTC
[cardano-:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-06-30 15:29:22.42 UTC] 2019-07-24 20:20:16 UTC
[cardano-:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-06-30 15:29:22.42 UTC] 20s
[cardano-:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-06-30 15:29:22.42 UTC] 21600
[cardano-:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-06-30 15:29:22.42 UTC] 1s
[cardano-:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-06-30 15:29:22.42 UTC] 432000
[cardano-:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-06-30 15:29:22.42 UTC] 129600
[cardano-:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-06-30 15:29:22.42 UTC] 1s
[cardano-:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-06-30 15:29:22.42 UTC] 432000
[cardano-:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-06-30 15:29:22.42 UTC] 129600
[cardano-:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-06-30 15:29:22.42 UTC] 1s
[cardano-:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-06-30 15:29:22.42 UTC] 432000
[cardano-:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-06-30 15:29:22.42 UTC] 129600
[cardano-:cardano.node.addresses:Notice:5] [2021-06-30 15:29:22.45 UTC] [SocketInfo 0.0.0.0:0,SocketInfo [::]:0]
[cardano-:cardano.node.diffusion-mode:Notice:5] [2021-06-30 15:29:22.45 UTC] InitiatorAndResponderDiffusionMode
[cardano-:cardano.node.dns-producers:Notice:5] [2021-06-30 15:29:22.45 UTC] [DnsSubscriptionTarget {dstDomain = "relays-new.cardano-testnet.iohkdev.io", dstPort = 3001, dstValency = 2}]
[cardano-:cardano.node.ip-producers:Notice:5] [2021-06-30 15:29:22.45 UTC] IPSubscriptionTarget {ispIps = [], ispValency = 0}
[cardano-:cardano.node.ChainDB:Info:5] [2021-06-30 15:29:22.47 UTC] Opened imm db with immutable tip at genesis (origin) and chunk 0
[cardano-:cardano.node.ChainDB:Info:5] [2021-06-30 15:29:22.47 UTC] Opened vol db
[cardano-:cardano.node.ChainDB:Info:5] [2021-06-30 15:29:22.47 UTC] Replaying ledger from genesis
[cardano-:cardano.node.ChainDB:Info:5] [2021-06-30 15:29:22.47 UTC] Opened lgr db
[cardano-:cardano.node.ChainDB:Info:5] [2021-06-30 15:29:22.47 UTC] Opened db with immutable tip at genesis (origin) and tip 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0
[cardano-:cardano.node.DnsSubscription:Notice:52] [2021-06-30 15:29:22.58 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 52.58.117.45:3001
[cardano-:cardano.node.DnsSubscription:Notice:53] [2021-06-30 15:29:22.61 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 175.41.160.108:3001
[cardano-:cardano.node.DnsSubscription:Notice:54] [2021-06-30 15:29:22.64 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 18.132.238.21:3001
[cardano-:cardano.node.DnsSubscription:Notice:55] [2021-06-30 15:29:22.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 3.129.133.68:3001
[cardano-:cardano.node.DnsSubscription:Notice:56] [2021-06-30 15:29:22.69 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 3.9.80.183:3001
[cardano-:cardano.node.DnsSubscription:Notice:57] [2021-06-30 15:29:22.72 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.151.49.138:3001
[cardano-:cardano.node.DnsSubscription:Notice:58] [2021-06-30 15:29:22.74 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 18.159.64.253:3001
[cardano-:cardano.node.DnsSubscription:Notice:59] [2021-06-30 15:29:22.77 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.241.77.32:3001
[cardano-:cardano.node.DnsSubscription:Error:58] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 18.159.64.253:3001 exception: Network.Socket.connect: <socket: 30>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:57] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 54.151.49.138:3001 exception: Network.Socket.connect: <socket: 29>: timeout (Connection timed out)
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.66 UTC] IP 18.159.64.253:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 30>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.66 UTC] IP 54.151.49.138:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 29>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.DnsSubscription:Error:52] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 52.58.117.45:3001 exception: Network.Socket.connect: <socket: 23>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:59] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 54.241.77.32:3001 exception: Network.Socket.connect: <socket: 31>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:56] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 3.9.80.183:3001 exception: Network.Socket.connect: <socket: 28>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:55] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 3.129.133.68:3001 exception: Network.Socket.connect: <socket: 27>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:54] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 18.132.238.21:3001 exception: Network.Socket.connect: <socket: 26>: timeout (Connection timed out)
[cardano-:cardano.node.DnsSubscription:Error:53] [2021-06-30 15:31:33.66 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Exception, destination 175.41.160.108:3001 exception: Network.Socket.connect: <socket: 24>: timeout (Connection timed out)
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 54.241.77.32:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 31>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 3.9.80.183:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 28>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 3.129.133.68:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 27>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 18.132.238.21:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 26>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 175.41.160.108:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 24>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.ErrorPolicy:Notice:39] [2021-06-30 15:31:33.67 UTC] IP 52.58.117.45:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace Network.Socket.connect: <socket: 23>: timeout (Connection timed out))) 20s
[cardano-:cardano.node.DnsSubscription:Warning:44] [2021-06-30 15:31:33.67 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[cardano-:cardano.node.DnsSubscription:Warning:44] [2021-06-30 15:31:34.68 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[cardano-:cardano.node.DnsSubscription:Warning:44] [2021-06-30 15:31:44.68 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[cardano-:cardano.node.DnsSubscription:Notice:67] [2021-06-30 15:31:54.68 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 18.159.64.253:3001
[cardano-:cardano.node.DnsSubscription:Notice:68] [2021-06-30 15:31:54.70 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.151.49.138:3001
[cardano-:cardano.node.DnsSubscription:Notice:69] [2021-06-30 15:31:54.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 175.41.160.108:3001
[cardano-:cardano.node.DnsSubscription:Notice:70] [2021-06-30 15:31:54.75 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.241.77.32:3001
[cardano-:cardano.node.DnsSubscription:Notice:71] [2021-06-30 15:31:54.78 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 52.58.117.45:3001
[cardano-:cardano.node.DnsSubscription:Notice:72] [2021-06-30 15:31:54.81 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 3.129.133.68:3001
[cardano-:cardano.node.DnsSubscription:Notice:73] [2021-06-30 15:31:54.83 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 18.132.238.21:3001
[cardano-:cardano.node.DnsSubscription:Notice:74] [2021-06-30 15:31:54.86 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 3.9.80.183:3001

@rhyslbw
Copy link
Collaborator

rhyslbw commented Jul 20, 2021

Is your Docker daemon configured? Do you have other Docker containers running in this env?

@bcoste
Copy link
Author

bcoste commented Jul 21, 2021

I don't have Docker installed, I use microk8s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants