I have arm64 ubuntu machines. I want to run cluster with them. The docker image I found compatible is the one from nessusio . I run it using a .yml file over a kubernetes cluster. And when I inspect the logs doing microk8s.kubectl logs --tail=500 -f relay2-0
, I got:
[relay2-0:cardano.node.DnsSubscription:Warning:57] [2021-05-28 14:09:50.99 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[relay2-0:cardano.node.DnsSubscription:Warning:59] [2021-05-28 14:09:51.29 UTC] Domain: "$BPROD_CLUSTER_IP" Failed to start all required subscriptions
Why is this? For me its a little confusing the doc from this gitbook . I don’t know how to configure the BPROD_CLUSTER_IP variable.
Hi!
what is the content of topology file?
1 Like
{
"Producers": [
{
"addr": "relays-new.cardano-testnet.iohkdev.io",
"port": 3001,
"valency": 2
},
{
"addr": "cardano-producer1-service.default.svc.cluster.local",
"port": 3001,
"valency": 1
}
]
}
I got two relays nodes running.
switch out from a variable to ip?
1 Like
Sorry, i didn’t actualize the configmap from kubernetes, and this is the real topology.json that I’m using:
{
"Producers": [
{
"addr": "relays-new.cardano-testnet.iohkdev.io",
"port": 3001,
"valency": 2
},
{
"addr": "$BPROD_CLUSTER_IP",
"port": 3001,
"valency": 1
}
]
}
yes - remove the second item from the list
{
"Producers": [
{
"addr": "relays-new.cardano-testnet.iohkdev.io",
"port": 3001,
"valency": 2
}
]
}
1 Like
It keeps giving me the same problem but for relays-new.cardano-testnet.iohkdev.io only
hmm - that will be probably a bug?
check this topic:
I am trying to establish a Stakepool with Kubernetes.
Now i faced an issue with the peer nodes.
If i have configure “addr” attribute in the topology.json file with a dns Address i get a warning like this:
[testnet-:cardano.node.DnsSubscription:Warning:54] [2021-05-26 15:22:42.12 UTC] Domain: "relay02.orkastaker.com" Failed to start all required subscriptions
[testnet-:cardano.node.DnsSubscription:Warning:60] [2021-05-26 15:22:42.15 UTC] Domain: "tn.adastack.net" Failed to start all required s…
so what you should do is to resolve the IP address of relays-new.cardano-testnet.iohkdev.io and use one of the IPs you get.
nslookup relays-new.cardano-testnet.iohkdev.io
1 Like
great! would be useful to comment on github, that you have the same issue…
opened 11:35AM - 27 May 21 UTC
bug
**External**
**Area**
*Other* Cardano Node Relay Connection
**Summary**…
A clear and specific description of what the bug is.
**Steps to reproduce**
Start a cardano node inside of a docker container e.g:
```
cardano-node run \
--topology path/to/mainnet-topology.json \
--database-path path/to/db \
--socket-path path/to/db/node.socket \
--host-addr 0.0.0.0 \
--port 3001 \
--config path/to/mainnet-config.json
```
while the topology.json files has an entry with a dns name (not an ip address)
```
{
"Producers": [
{
"addr": "relays-new.cardano-testnet.iohkdev.io",
"port": 3001,
"valency": 2
}
]
}
```
With this configuration it fails:
```
[seeland-:cardano.node.dns-producers:Notice:5] [2021-05-26 19:08:49.68 UTC] [DnsSubscriptionTarget {dstDomain = "relays-new.cardano-testnet.iohkdev.io", dstPort = 3001, dstValency = 2}]
[seeland-:cardano.node.ip-producers:Notice:5] [2021-05-26 19:08:49.68 UTC] IPSubscriptionTarget {ispIps = [], ispValency = 0}
[seeland-:cardano.node.ChainDB:Info:5] [2021-05-26 19:08:49.72 UTC] Opened imm db with immutable tip at genesis (origin) and chunk 0
[seeland-:cardano.node.ChainDB:Info:5] [2021-05-26 19:08:49.72 UTC] Opened vol db
[seeland-:cardano.node.ChainDB:Info:5] [2021-05-26 19:08:49.72 UTC] Replaying ledger from genesis
[seeland-:cardano.node.ChainDB:Info:5] [2021-05-26 19:08:49.72 UTC] Opened lgr db
[seeland-:cardano.node.ChainDB:Info:5] [2021-05-26 19:08:49.72 UTC] Opened db with immutable tip at genesis (origin) and tip genesis (origin)
[seeland-:cardano.node.ChainDB:Notice:34] [2021-05-26 19:08:49.73 UTC] Chain extended, new tip: 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0
[seeland-:cardano.node.DnsSubscription:Warning:55] [2021-05-26 19:08:49.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[seeland-:cardano.node.DnsSubscription:Warning:55] [2021-05-26 19:08:59.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[seeland-:cardano.node.DnsSubscription:Warning:55] [2021-05-26 19:09:09.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[seeland-:cardano.node.ChainDB:Notice:76] [2021-05-26 19:09:18.86 UTC] before next, messages elided = 2259510500755060
[seeland-:cardano.node.ChainDB:Notice:76] [2021-05-26 19:09:18.86 UTC] Chain extended, new tip: 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0
[seeland-:cardano.node.DnsSubscription:Warning:55] [2021-05-26 19:09:19.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
[seeland-:cardano.node.DnsSubscription:Warning:55] [2021-05-26 19:09:29.73 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Failed to start all required subscriptions
```
If you use an ip address instead it works.
I checked if there is an issue with Kubernetes and DNS but i am able to resolve the dns from within the pod:
```
root@seeland-stakepool-relay1-77587998b4-zj6k5:/config# nslookup relays-new.cardano-testnet.iohkdev.io
Server: 10.96.0.10
Address: 10.96.0.10#53
Non-authoritative answer:
Name: relays-new.cardano-testnet.iohkdev.io
Address: 54.250.11.33
Name: relays-new.cardano-testnet.iohkdev.io
Address: 3.129.133.68
Name: relays-new.cardano-testnet.iohkdev.io
Address: 3.9.80.183
Name: relays-new.cardano-testnet.iohkdev.io
Address: 3.124.178.139
Name: relays-new.cardano-testnet.iohkdev.io
Address: 175.41.160.108
Name: relays-new.cardano-testnet.iohkdev.io
Address: 18.159.64.253
Name: relays-new.cardano-testnet.iohkdev.io
Address: 54.241.77.32
Name: relays-new.cardano-testnet.iohkdev.io
Address: 3.128.220.55
```
**Expected behavior**
DNSSubscription should work like it works for IP addresses.
**System info:**
- OS Name: Ubuntu
- OS Version 20.04
- Kubernetes Cluster: v1.21.0
- Node version cardano-node 1.27.0 - linux-x86_64 - ghc-8.10
- CLI version cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
**Additional context**
The Problem has been disscussed in the Cardano Forum [DNS Address fails while IP Address works](https://forum.cardano.org/t/dns-address-fails-while-ip-address-is-working/62900)