I just recently set up a stakepool on the Testnet. I am running v1.32.1 of Cardano-node on both my relay and BP. Each node (relay and BP) are EC2 instances within the same VPC, and both are running the AWS version of Linux. I have also verified that I can reach my relay's IP and port from the internet. But when I run gLiveView on my relay, I only see one incoming peer connection, and both total and pending tx's are at 0. The pool has been up and running for a couple of days now, so I am not sure if I have something misconfigured or if it just takes a bit of time for my relay to be discovered by the network?
Also, I set up the topology updater script, and when I run it manually, its successful:
{ "resultcode": "201", "datetime":"2021-12-29 22:45:01", "clientIp": "3.142.120.205", "iptype": 4, "msg": "nice to meet you" }
But when its running in cron, it always errors out:
{ "resultcode": "502", "datetime":"2021-12-29 23:33:03", "clientIp": "3.142.120.205", "msg": "invalid blockNo []" }
How would I go about troubleshooting this?
Linux Info: Linux version 5.10.82-83.359.amzn2.x86_64 (mockbuild@ip-10-0-37-156) (gcc10-gcc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1), GNU ld version 2.35-21.amzn2.0.1) #1 SMP Tue Nov 30 20:47:14 UTC 2021
Update: I forgot to mention in the original post the ticker I am using is "HLTH". Here is the link to the pool in Cardanoscan: https://testnet.cardanoscan.io/pool/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677 I see now that my ticket isn't showing up, so maybe I have screwed up something with my metadata?
Here is the topologyUpdater.sh script I am using, I got this from the coin cashew tutorial:
#!/bin/bash
# shellcheck disable=SC2086,SC2034
USERNAME=ec2-user
CNODE_PORT=6000 # must match your relay node port as set in the startup command
CNODE_HOSTNAME="CHANGE ME" # optional. must resolve to the IP you are requesting from
CNODE_BIN="/usr/local/bin"
CNODE_HOME=/home/ec2-user/cardano-src/relay
CNODE_LOG_DIR="${CNODE_HOME}/logs"
GENESIS_JSON="${CNODE_HOME}/testnet-shelley-genesis.json"
NETWORKID=$(jq -r .networkId $GENESIS_JSON)
CNODE_VALENCY=1 # optional for multi-IP hostnames
NWMAGIC=$(jq -r .networkMagic < $GENESIS_JSON)
[[ "${NETWORKID}" = "Mainnet" ]] && HASH_IDENTIFIER="--mainnet" || HASH_IDENTIFIER="--testnet-magic ${NWMAGIC}"
[[ "${NWMAGIC}" = "764824073" ]] && NETWORK_IDENTIFIER="--mainnet" || NETWORK_IDENTIFIER="--testnet-magic ${NWMAGIC}"
export PATH="${CNODE_BIN}:${PATH}"
export CARDANO_NODE_SOCKET_PATH="${CNODE_HOME}/db/socket"
echo Network Identifer: ${NETWORK_IDENTIFIER}
blockNo=$(cardano-cli query tip ${NETWORK_IDENTIFIER} | jq -r .block )
# Note:
# if you run your node in IPv4/IPv6 dual stack network configuration and want announced the
# IPv4 address only please add the -4 parameter to the curl command below (curl -4 -s ...)
if [ "${CNODE_HOSTNAME}" != "CHANGE ME" ]; then
T_HOSTNAME="&hostname=${CNODE_HOSTNAME}"
else
T_HOSTNAME=''
fi
if [ ! -d ${CNODE_LOG_DIR} ]; then
mkdir -p ${CNODE_LOG_DIR};
fi
curl -s "https://api.clio.one/htopology/v1/?port=${CNODE_PORT}&blockNo=${blockNo}&valency=${CNODE_VALENCY}&magic=${NWMAGIC}${T_HOSTNAME}" | tee -a $CNODE_LOG_DIR/topologyUpdater_lastresult.json
Additionally, here is my Testnet-topology.json file. I decided to try swapping in the IP addresses of each relay, and so I could remember which ones were which I put the DNS name of the relay into the "continent" field.
{
"Producers": [{
"addr": "172.31.25.89",
"port": 6000,
"valency": 1
},
{
"addr": "relays-new.cardano-testnet.iohkdev.io",
"port": 3001,
"valency": 2
},
{
"addr": "64.225.4.242",
"port": 3001,
"valency": 2,
"continent": "relays.testnet.stakenuts.com",
"state": "New Jersey"
},
{
"addr": "34.223.107.64",
"port": 3001,
"valency": 2,
"continent": "testnet-relays.onyxstakepool.com",
"state": "Oregon"
},
{
"addr": "89.162.88.186",
"valency": 2,
"port": 9015,
"valency": 2,
"continent": "testnet.adanorthpool.com",
"state": "NO"
},
{
"addr": "202.92.217.26",
"port": 9710,
"valency": 2,
"continent": "testicles.kiwipool.org",
"state": "NZ"
}
]
}
I followed a mix of the stakepool course tutorial and coin cashew to get this done. If I can't get this figured out I am probably going to tear it back down and then just start with the Guild Operators site and start from the prereqs.sh.