I created a docker container whilst following the tutorial at Start your node - Stake pool course
but it just keeps printing
[String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
i already tried telnet and it worked
cardano-node_1 | Trying 3.124.178.139...
cardano-node_1 | Connected to relays-new.cardano-testnet.iohkdev.io.
Here the full log
cardano-node_1 | Listening on http://127.0.0.1:12798
cardano-node_1 | [3c34a0a3:cardano.node.networkMagic:Notice:5] [2021-03-11 07:41:10.17 UTC] NetworkMagic 1097911063
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.protocol:Notice:5] [2021-03-11 07:41:10.17 UTC] Byron; Shelley
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.version:Notice:5] [2021-03-11 07:41:10.17 UTC] 1.24.2
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.commit:Notice:5] [2021-03-11 07:41:10.17 UTC] 400d18092ce604352cf36fe5f105b0d7c78be074
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-03-11 07:41:10.17 UTC] 2021-03-11 07:41:10.1711758 UTC
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-03-11 07:41:10.17 UTC] 2019-07-24 20:20:16 UTC
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-03-11 07:41:10.17 UTC] 20s
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-03-11 07:41:10.17 UTC] 21600
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-03-11 07:41:10.17 UTC] 1s
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-03-11 07:41:10.17 UTC] 432000
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-03-11 07:41:10.17 UTC] 129600
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-03-11 07:41:10.17 UTC] 1s
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-03-11 07:41:10.17 UTC] 432000
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-03-11 07:41:10.17 UTC] 129600
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-03-11 07:41:10.17 UTC] 1s
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-03-11 07:41:10.17 UTC] 432000
cardano-node_1 | [3c34a0a3:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-03-11 07:41:10.17 UTC] 129600
cardano-node_1 | [3c34a0a3:cardano.node.addresses:Notice:5] [2021-03-11 07:41:10.18 UTC] [SocketInfo 0.0.0.0:3001]
cardano-node_1 | [3c34a0a3:cardano.node.diffusion-mode:Notice:5] [2021-03-11 07:41:10.18 UTC] InitiatorAndResponderDiffusionMode
cardano-node_1 | [3c34a0a3:cardano.node.dns-producers:Notice:5] [2021-03-11 07:41:10.18 UTC] [DnsSubscriptionTarget {dstDomain = "relays-new.cardano-testnet.iohkdev.io", dstPort = 3001, dstValency = 2}]
cardano-node_1 | [3c34a0a3:cardano.node.ip-producers:Notice:5] [2021-03-11 07:41:10.18 UTC] IPSubscriptionTarget {ispIps = [], ispValency = 0}
cardano-node_1 | [3c34a0a3:cardano.node.ChainDB:Info:5] [2021-03-11 07:41:10.20 UTC] Opened imm db with immutable tip at genesis (origin) and chunk 0
cardano-node_1 | [3c34a0a3:cardano.node.ChainDB:Info:5] [2021-03-11 07:41:10.20 UTC] Opened vol db
cardano-node_1 | [3c34a0a3:cardano.node.ChainDB:Info:5] [2021-03-11 07:41:10.20 UTC] Replaying ledger from genesis
cardano-node_1 | [3c34a0a3:cardano.node.ChainDB:Info:5] [2021-03-11 07:41:10.20 UTC] Opened lgr db
cardano-node_1 | [3c34a0a3:cardano.node.ChainDB:Info:5] [2021-03-11 07:41:10.20 UTC] Opened db with immutable tip at genesis (origin) and tip 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:41:10.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:41:20.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:41:30.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:41:40.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:41:50.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:00.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:10.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:20.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:30.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:40.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:42:50.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:43:00.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
cardano-node_1 | [3c34a0a3:cardano.node.DnsSubscription:Warning:52] [2021-03-11 07:43:10.21 UTC] [String "Failed to start all required subscriptions",String "SubscriptionTrace",String "\"relays-new.cardano-testnet.iohkdev.io\""]
here the docker file
FROM ubuntu:focal as cardano-node-build
# Dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install build-essential pkg-config libffi-dev libgmp-dev -y
RUN apt-get install libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev -y
RUN apt-get install make g++ tmux git jq wget libncursesw5 libtool autoconf -y
# Cabal is a system for building and packaging Haskell libraries and programs.
RUN wget https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
RUN tar -xf cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
RUN rm cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz cabal.sig
RUN mkdir -p ~/.local/bin
RUN mv cabal ~/.local/bin/
ENV PATH="$PATH:/root/.local/bin"
# Glasgow Haskell Compiler
RUN wget https://downloads.haskell.org/~ghc/8.10.2/ghc-8.10.2-x86_64-deb9-linux.tar.xz
RUN tar -xf ghc-8.10.2-x86_64-deb9-linux.tar.xz
RUN rm ghc-8.10.2-x86_64-deb9-linux.tar.xz
WORKDIR "/ghc-8.10.2"
RUN ./configure
RUN make install
WORKDIR "/"
# Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more.
ENV LD_LIBRARY_PATH "/usr/local/lib:$LD_LIBRARY_PATH"
ENV PKG_CONFIG_PATH "/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
RUN git clone https://github.com/input-output-hk/libsodium
WORKDIR "/libsodium"
RUN git checkout 66f017f1
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
WORKDIR "/"
# Cardano Node
RUN git clone https://github.com/input-output-hk/cardano-node.git
WORKDIR "/cardano-node"
RUN git fetch --all --tags
RUN git tag
RUN git checkout tags/1.24.2
RUN cabal clean
RUN cabal update
RUN cabal build all
RUN cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-1.24.2/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
RUN cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-1.24.2/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
WORKDIR "/"
FROM ubuntu:focal
ENV PATH="$PATH:/root/.local/bin"
COPY --from=cardano-node-build /usr/local/lib /usr/local/lib
COPY --from=cardano-node-build /usr/local/lib/pkgconfig /usr/local/lib/pkgconfig
COPY --from=cardano-node-build /root/.local/bin /root/.local/bin
ENV LD_LIBRARY_PATH "/usr/local/lib:$LD_LIBRARY_PATH"
ENV PKG_CONFIG_PATH "/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
CMD cardano-node run \
--topology /root/relay/testnet-topology.json \
--database-path /root/db \
--socket-path node.socket \
--host-addr 0.0.0.0 \
--port 3001 \
--config /root/relay/testnet-config.json
i’ve downloaded the config files from Cardano Configurations
my docker-compose file looks like this
version: '3'
services:
cardano-node:
build: .
image: peterspace.de/cardano/cardano-node:latest
environment:
- KEY=VALUE
volumes:
- ./relay:/root/relay
- ./db:/root/db
ports:
- 3001:3001
in the tutorial it just starts syncing the blockchain