Hello,
I am currently trying to setup my first stake-pool in the testnet.
I created an docker-compose-file with env-variables and downloaded the sample configuration files.
Starting a normal node and syncing to the testnet works without any issues and I also can connect to the specified port of the container. (I used the default port 3001) It was necessary to bind the cardano-node process in the container to 0.0.0.0 instead of 127.0.0.1 to make it work.
telnet to 127.0.0.1 with port 3001 results in an established connection. But when I start another container that runs on a different port and use the topology file to sync with my first node, is does not work.
The first log-messages of the cardano-node that should connect to my relay-node look good, but then, the connection closed because of a timeout:
[b846b81f:cardano.node.IpSubscription:Info:204] [2021-02-23 20:40:09.24 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Trying to connect to 127.0.0.1:3001
[b846b81f:cardano.node.IpSubscription:Info:268] [2021-02-23 20:40:09.24 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Connection Attempt Start, destination 127.0.0.1:3001
[b846b81f:cardano.node.IpSubscription:Notice:204] [2021-02-23 20:40:09.24 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Waiting 0.025s before attempting a new connection
[b846b81f:cardano.node.IpSubscription:Notice:268] [2021-02-23 20:40:09.24 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Connection Attempt End, destination 127.0.0.1:3001 outcome: ConnectSuccessLast
[b846b81f:cardano.node.ErrorPolicy:Warning:206] [2021-02-23 20:40:09.24 UTC] IP 127.0.0.1:37405 ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError MuxBearerClosed "<socket: 99> closed when reading data, waiting on next header True"))) 20s 20s
[b846b81f:cardano.node.IpSubscription:Error:268] [2021-02-23 20:43:09.25 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Application Exception: 127.0.0.1:3001 ExceededTimeLimit (ChainSync (Header (HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) ('[] *))))))) (Tip HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) ('[] *))))))) (ServerAgency TokNext TokMustReply)
[b846b81f:cardano.node.IpSubscription:Info:268] [2021-02-23 20:43:09.25 UTC] IPs: 0.0.0.0:0 [127.0.0.1:3001] Closed socket to 127.0.0.1:3001
[b846b81f:cardano.node.ErrorPolicy:Notice:202] [2021-02-23 20:43:09.25 UTC] IP 127.0.0.1:3001 ErrorPolicySuspendConsumer (Just (ApplicationExceptionTrace ExceededTimeLimit (ChainSync (Header (HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) ('[] *))))))) (Tip HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) ('[] *))))))) (ServerAgency TokNext TokMustReply))) 20s
My docker-compose files look like this:
version: "3.9"
services:
node:
image: "inputoutput/cardano-node:1.25.1"
ports:
- ${NODE_PORT}:3001
volumes:
- ${NODE_BASE_FOLDER}/data:/data
- ${NODE_BASE_FOLDER}/configuration:/configuration
tmpfs:
- /ipc
command: run --config /configuration/config.json --database-path /data/db --topology /configuration/topology.json --host-addr 0.0.0.0 --port 3001 --socket-path /ipc/node.socket
with an .env file that looks like this:
NODE_BASE_FOLDER="/cardano-nodes/node-testnet"
NODE_PORT="3001"
Does anyone have an idea, what might be the error in my setup?
I wanted to attach the config-files for the cardano-node also, but this filetype is not allowed in the forum.
BR,
Matthias