<p>Seems something wrong with your topology script, you need to fix it. Maybe it has some shortened paths like ./bla.json. It should have access to <code>testnet-shelley-genesis.json</code> file(or maybe it called a bit different in your case) and seems this error hints that script can't access it.</p>
<p>Please post your topology updater script so we can fix it.</p>
<p>Currently when p2p is kind of really early on testnet(and it will work only with 1.33 version), you will need kind of relay on topology updater script.</p>
<p>When everything is fine you should see in logs something like this:</p>
<pre><code>&quot;nice to meet you&quot;
&quot;welcome to the topology&quot;
&quot;glad you're staying with us&quot;
&quot;glad you're staying with us&quot;
&quot;glad you're staying with us&quot;
...
&quot;glad you're staying with us&quot;
</code></pre>
<p>So in your case you didn't register properly with topology script and nobody is knowing about your relays. On other hand topologyupdater is kind of optional and after some time(it can be a long time) everybody should know your relay if you registered your pool correctly. So maybe you can share your ticker too? In any case I highly recommend for beginners to use topologyupdater, so start with fixing it.</p>

CC BY-SA 4.0
2021-12-31T22:44:25.893Z
Thanks for the reply!  Just updated my original post.  I also don't see my ticker in Cardanoscan, so maybe its a metadata issue?
prodineeritecht
CC BY-SA 4.0
2022-01-01T10:04:33.417Z
So there are several issues. Check here:
https://testnet.adatools.io/pools/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677
1) 6000 port is not unreachable from outside world. Your relay should be accessible on 600 port from everywhere, check your FW.
2) https://git.io/JyDWW -- is empty file, so you registered your pool with topology file what do not contain anything
os11k
CC BY-SA 4.0
2022-01-01T10:10:09.110Z
Regarding topology script, can you run `which cardano-cli` and post it here?
os11k
CC BY-SA 4.0
2022-01-01T10:13:39.973Z
without opening FW(6000 port of your relay) no other relays will be able to connect even if topology script is running as it should
os11k
CC BY-SA 4.0
2022-01-01T16:08:17.603Z
Not sure if it matters, but I used my relay’s private ip, rather than the AWS public ip when I created the pool cert.  So I’m also working on fixing that.  I’ll come back and comment when i’ve been able to move it forward
prodineeritecht
CC BY-SA 4.0
2022-01-01T16:26:19.480Z
Yes, you should not use private IP. Please send me `which cardano-cli` output, so we can fix your topology script. Plus don't forget to fix your metadata link, it is empty now.
os11k
CC BY-SA 4.0
2022-01-02T04:18:47.587Z
After a fair amount of fat fingering, I finally got a pool registration transaction together with the correct metadata: https://testnet.cardanoscan.io/transaction/aa09bf8b7ca07227e01f59cd9ee313050ec705685dcb70071defe3aeb77994be?tab=poolcertificates
I am going to wait for this to take effect and if everything starts working I'll update my original question with what I had wrong as well as give you the green check mark @os11k :)
prodineeritecht
CC BY-SA 4.0
2022-01-02T07:59:58.967Z
Hi, thank you! Now everything seems look right: https://testnet.adatools.io/pools/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677. In any case I would recommend to fix topology script, seems you have incorrect this part `CNODE_BIN="/usr/local/bin"`, what should be path where cardano-node binary is located. To check where binary is you can run `which cardano-node`
os11k
CC BY-SA 4.0
2022-01-02T14:42:10.273Z
The topology script I posted is from the coin cashew tutorial, I actually decided to stop using that one and grabbed the topology updater script from the guild and started using that.  I let it run over night and now I have a brand new topology in my Testnet-topology.json file!  Thank you very much for all the help!
prodineeritecht
CC BY-SA 4.0
2022-01-02T14:43:14.300Z
Cool, glad that you make it work. Cheers!
os11k
CC BY-SA 4.0
2021-12-31T19:29:09.087Z
2021-12-31T19:29:09.087Z
os11k
<p>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?</p>
<p><a href="https://i.sstatic.net/CCtCU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CCtCU.png" alt="gLiveView of my relay node" /></a></p>
<p>Also, I set up the topology updater script, and when I run it manually, its successful:</p>
<pre><code>{ &quot;resultcode&quot;: &quot;201&quot;, &quot;datetime&quot;:&quot;2021-12-29 22:45:01&quot;, &quot;clientIp&quot;: &quot;3.142.120.205&quot;, &quot;iptype&quot;: 4, &quot;msg&quot;: &quot;nice to meet you&quot; }
</code></pre>
<p>But when its running in cron, it always errors out:</p>
<pre><code>{ &quot;resultcode&quot;: &quot;502&quot;, &quot;datetime&quot;:&quot;2021-12-29 23:33:03&quot;, &quot;clientIp&quot;: &quot;3.142.120.205&quot;, &quot;msg&quot;: &quot;invalid blockNo []&quot; }
</code></pre>
<p>How would I go about troubleshooting this?</p>
<p>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</p>
<p>Update:
I forgot to mention in the original post the ticker I am using is &quot;HLTH&quot;.  Here is the link to the pool in Cardanoscan: <a href="https://testnet.cardanoscan.io/pool/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677" rel="nofollow noreferrer">https://testnet.cardanoscan.io/pool/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677</a>
I see now that my ticket isn't showing up, so maybe I have screwed up something with my metadata?</p>
<p>Here is the topologyUpdater.sh script I am using, I got this from the coin cashew tutorial:</p>
<pre><code>#!/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=&quot;CHANGE ME&quot;  # optional. must resolve to the IP you are requesting from
CNODE_BIN=&quot;/usr/local/bin&quot;
CNODE_HOME=/home/ec2-user/cardano-src/relay
CNODE_LOG_DIR=&quot;${CNODE_HOME}/logs&quot;
GENESIS_JSON=&quot;${CNODE_HOME}/testnet-shelley-genesis.json&quot;
NETWORKID=$(jq -r .networkId $GENESIS_JSON)
CNODE_VALENCY=1   # optional for multi-IP hostnames
NWMAGIC=$(jq -r .networkMagic &lt; $GENESIS_JSON)
[[ &quot;${NETWORKID}&quot; = &quot;Mainnet&quot; ]] &amp;&amp; HASH_IDENTIFIER=&quot;--mainnet&quot; || HASH_IDENTIFIER=&quot;--testnet-magic ${NWMAGIC}&quot;
[[ &quot;${NWMAGIC}&quot; = &quot;764824073&quot; ]] &amp;&amp; NETWORK_IDENTIFIER=&quot;--mainnet&quot; || NETWORK_IDENTIFIER=&quot;--testnet-magic ${NWMAGIC}&quot;

export PATH=&quot;${CNODE_BIN}:${PATH}&quot;
export CARDANO_NODE_SOCKET_PATH=&quot;${CNODE_HOME}/db/socket&quot;

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 [ &quot;${CNODE_HOSTNAME}&quot; != &quot;CHANGE ME&quot; ]; then
  T_HOSTNAME=&quot;&amp;hostname=${CNODE_HOSTNAME}&quot;
else
  T_HOSTNAME=''
fi

if [ ! -d ${CNODE_LOG_DIR} ]; then
  mkdir -p ${CNODE_LOG_DIR};
fi

curl -s &quot;https://api.clio.one/htopology/v1/?port=${CNODE_PORT}&amp;blockNo=${blockNo}&amp;valency=${CNODE_VALENCY}&amp;magic=${NWMAGIC}${T_HOSTNAME}&quot; | tee -a $CNODE_LOG_DIR/topologyUpdater_lastresult.json
</code></pre>
<p>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 &quot;continent&quot; field.</p>
<pre><code>    {
        &quot;Producers&quot;: [{
                &quot;addr&quot;: &quot;172.31.25.89&quot;,
                &quot;port&quot;: 6000,
                &quot;valency&quot;: 1
        },
        {
                &quot;addr&quot;: &quot;relays-new.cardano-testnet.iohkdev.io&quot;,
                &quot;port&quot;: 3001,
                &quot;valency&quot;: 2
        },
        {
                &quot;addr&quot;: &quot;64.225.4.242&quot;,
                &quot;port&quot;: 3001,
                &quot;valency&quot;: 2,
                &quot;continent&quot;: &quot;relays.testnet.stakenuts.com&quot;,
                &quot;state&quot;: &quot;New Jersey&quot;
        },
        {
                &quot;addr&quot;: &quot;34.223.107.64&quot;,
                &quot;port&quot;: 3001,
                &quot;valency&quot;: 2,
                &quot;continent&quot;: &quot;testnet-relays.onyxstakepool.com&quot;,
                &quot;state&quot;: &quot;Oregon&quot;
        },
        {
                &quot;addr&quot;: &quot;89.162.88.186&quot;,
                &quot;valency&quot;: 2,
                &quot;port&quot;: 9015,
                &quot;valency&quot;: 2,
                &quot;continent&quot;: &quot;testnet.adanorthpool.com&quot;,
                &quot;state&quot;: &quot;NO&quot;
        },
        {
                &quot;addr&quot;: &quot;202.92.217.26&quot;,
                &quot;port&quot;: 9710,
                &quot;valency&quot;: 2,
                &quot;continent&quot;: &quot;testicles.kiwipool.org&quot;,
                &quot;state&quot;: &quot;NZ&quot;
        }
        ]
}
</code></pre>
<p>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.</p>

<stake-pool><testnet>
Testnet relay doesn't have any incoming peer connections other than my BP node
# Testnet relay doesn't have any incoming peer connections other than my BP node

(Asked by: username_0 on 2021-12-31)

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.

**Tags:** stake-pool, testnet

---

## 1 answers

### Answer by username_1 on 2021-12-31. Score: 0 | Accepted answer

Seems something wrong with your topology script, you need to fix it. Maybe it has some shortened paths like ./bla.json. It should have access to testnet-shelley-genesis.json file(or maybe it called a bit different in your case) and seems this error hints that script can't access it.
Please post your topology updater script so we can fix it.
Currently when p2p is kind of really early on testnet(and it will work only with 1.33 version), you will need kind of relay on topology updater script.
When everything is fine you should see in logs something like this:
"nice to meet you"
"welcome to the topology"
"glad you're staying with us"
"glad you're staying with us"
"glad you're staying with us"
...
"glad you're staying with us"

So in your case you didn't register properly with topology script and nobody is knowing about your relays. On other hand topologyupdater is kind of optional and after some time(it can be a long time) everybody should know your relay if you registered your pool correctly. So maybe you can share your ticker too? In any case I highly recommend for beginners to use topologyupdater, so start with fixing it.

> **Comments:**
> **username_0**: Thanks for the reply!  Just updated my original post.  I also don't see my ticker in Cardanoscan, so maybe its a metadata issue?  
> **username_1**: So there are several issues. Check here: https://testnet.adatools.io/pools/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677 1) 6000 port is not unreachable from outside world. Your relay should be accessible on 600 port from everywhere, check your FW. 2) https://git.io/JyDWW -- is empty file, so you registered your pool with topology file what do not contain anything  
> **username_1**: Regarding topology script, can you run `which cardano-cli` and post it here?  
> **username_1**: without opening FW(6000 port of your relay) no other relays will be able to connect even if topology script is running as it should  
> **username_0**: Not sure if it matters, but I used my relay’s private ip, rather than the AWS public ip when I created the pool cert.  So I’m also working on fixing that.  I’ll come back and comment when i’ve been able to move it forward  
> **username_1**: Yes, you should not use private IP. Please send me `which cardano-cli` output, so we can fix your topology script. Plus don't forget to fix your metadata link, it is empty now.  
> **username_0**: After a fair amount of fat fingering, I finally got a pool registration transaction together with the correct metadata: https://testnet.cardanoscan.io/transaction/aa09bf8b7ca07227e01f59cd9ee313050ec705685dcb70071defe3aeb77994be?tab=poolcertificates I am going to wait for this to take effect and if everything starts working I'll update my original question with what I had wrong as well as give you the green check mark @os11k :)  
> **username_1**: Hi, thank you! Now everything seems look right: https://testnet.adatools.io/pools/614235f4d6c44cfc46a1ee16c95eb6d10008204c830d056f188e7677. In any case I would recommend to fix topology script, seems you have incorrect this part `CNODE_BIN="/usr/local/bin"`, what should be path where cardano-node binary is located. To check where binary is you can run `which cardano-node`  
> **username_0**: The topology script I posted is from the coin cashew tutorial, I actually decided to stop using that one and grabbed the topology updater script from the guild and started using that.  I let it run over night and now I have a brand new topology in my Testnet-topology.json file!  Thank you very much for all the help!  
> **username_1**: Cool, glad that you make it work. Cheers!  

---

