Stake pool relay only 1 inbound connection, what is wrong?

followed this excellent guide all the way through Guide: How to build a Cardano Stake Pool - CoinCashew

problem is I only have 1 inbound connection. I thought it might be that I did not have port 6000 and port 3001 open to the world, so I just updated the firewall rules. This is what is shown on my relay with gLiveView
Screenshot from 2021-01-01 10-18-11

This is the latest from topology updater. I restarted relay node a few minutes ago

This is my firewall rules:
Screenshot from 2021-01-01 10-20-45

From the cardano-node logs it appears it is unable to connect to other nodes, but I am not sure.
Screenshot from 2021-01-01 10-21-52

The other, possibly related issue, is that on my block-producing nodes, there are no processed transactions
Screenshot from 2021-01-01 10-23-13

Any suggestions on what to do here? Should I wait longer to see if inbound connection counts increase?

1 Like

compare your config file with

www.charity-pool.ro/config.json

Also U need to open in firewall only the port configured in env file… which in your case should be 6000 (check env file)

ok, thanks, made changes and restarting

reading other posts, just changed the topology updater to this one here: guild-operators/topologyUpdater.sh at alpha · cardano-community/guild-operators · GitHub

I’ll wait a few hours then do a pull.

I may be using a mix of Guild-Operator scripts with CoinCashew guide. Will have to go through the Guild-Operator scripts and get familiar with them Guild Operators Documentation

Can u paste your configuration file here?
You don’t need to wait few hours… your BP is connected so there are not issues with firewall or env file…

{
  "ApplicationName": "cardano-sl",
  "ApplicationVersion": 1,
  "ByronGenesisFile": "mainnet-byron-genesis.json",
  "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
  "LastKnownBlockVersion-Alt": 0,
  "LastKnownBlockVersion-Major": 3,
  "LastKnownBlockVersion-Minor": 0,
  "MaxKnownMajorProtocolVersion": 2,
  "Protocol": "Cardano",
  "RequiresNetworkMagic": "RequiresNoMagic",
  "ShelleyGenesisFile": "mainnet-shelley-genesis.json",
  "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
  "MaxConcurrencyDeadline": 4,
  "TraceBlockFetchClient": true,
  "TraceBlockFetchDecisions": true,
  "TraceBlockFetchProtocol": true,
  "TraceBlockFetchProtocolSerialised": true,
  "TraceBlockFetchServer": true,
  "TraceChainDb": true,
  "TraceChainSyncBlockServer": true,
  "TraceChainSyncClient": true,
  "TraceChainSyncHeaderServer": true,
  "TraceChainSyncProtocol": true,
  "TraceDNSResolver": true,
  "TraceDNSSubscription": true,
  "TraceErrorPolicy": true,
  "TraceForge": true,
  "TraceHandshake": false,
  "TraceIpSubscription": true,
  "TraceLocalChainSyncProtocol": true,
  "TraceLocalErrorPolicy": true,
  "TraceLocalHandshake": false,
  "TraceLocalTxSubmissionProtocol": true,
  "TraceLocalTxSubmissionServer": true,
  "TraceMempool": true,
  "TraceMux": false,
  "TraceTxInbound": true,
  "TraceTxOutbound": true,
  "TraceTxSubmissionProtocol": true,
  "TracingVerbosity": "NormalVerbosity",
  "TurnOnLogMetrics": true,
  "TurnOnLogging": true,
  "defaultBackends": [
    "KatipBK"
  ],
  "defaultScribes": [
    [
      "StdoutSK",
      "stdout"
    ]
  ],
  "hasEKG": 12788,
  "hasPrometheus": [
    "127.0.0.1",
    12798
  ],
  "minSeverity": "Info",
  "options": {
    "mapBackends": {
      "cardano.node-metrics": [
        "EKGViewBK"
      ],
      "cardano.node.BlockFetchDecision.peers": [
        "EKGViewBK"
      ],
      "cardano.node.ChainDB.metrics": [
        "EKGViewBK"
      ],
      "cardano.node.Forge.metrics": [
        "EKGViewBK"
      ],
      "cardano.node.metrics": [
        "EKGViewBK"
      ],
      "cardano.node.resources": [
        "EKGViewBK"
      ]
    },
    "mapSubtrace": {
      "#ekgview": {
        "contents": [
          [
            {
              "contents": "cardano.epoch-validation.benchmark",
              "tag": "Contains"
            },
            [
              {
                "contents": ".monoclock.basic.",
                "tag": "Contains"
              }
            ]
          ],
          [
            {
              "contents": "cardano.epoch-validation.benchmark",
              "tag": "Contains"
            },
            [
              {
                "contents": "diff.RTS.cpuNs.timed.",
                "tag": "Contains"
              }
            ]
          ],
          [
            {
              "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark",
              "tag": "StartsWith"
            },
            [
              {
                "contents": "diff.RTS.gcNum.timed.",
                "tag": "Contains"
              }
            ]
          ]
        ],
        "subtrace": "FilterTrace"
      },
      "benchmark": {
        "contents": [
          "GhcRtsStats",
          "MonotonicClock"
        ],
        "subtrace": "ObservableTrace"
      },
      "cardano.epoch-validation.utxo-stats": {
        "subtrace": "NoTrace"
      },
      "cardano.node-metrics": {
        "subtrace": "Neutral"
      },
      "cardano.node.metrics": {
        "subtrace": "Neutral"
      }
    }
  },
  "rotation": {
    "rpKeepFilesNum": 10,
    "rpLogLimitBytes": 5000000,
    "rpMaxAgeHours": 24
  },
  "setupBackends": [
    "KatipBK",
    "EKGViewBK"
  ],
  "setupScribes": [
    {
      "scFormat": "ScText",
      "scKind": "StdoutSK",
      "scName": "stdout",
      "scRotation": null
    }
  ]
}

Something is preventing other nodes to connect yours…

Did u tried to restart your node?

yes, I restarted relay-node.

I only set up my own pool yesterday so I’m not an expert but my understanding is that because there isn’t any automatic peer discovery yet that other SPOs will need to add you manually before you start seeing inbound connections. The updates script should mean that other pools will get your ip and possibly add you when they update their topology. If you want to give me your IP I’ll add you now and you can see if you get an inbound connection.

sure, that would be great. 4.16.58.206 is ipv4.

I am also running an ipv6 stack, not sure if that makes a difference. ipv6 is
2001:1900:2200:3b00:216:3eff:fe7e:1709

ok done, anything?

yes, inbound connections incremented by 1!

Screenshot from 2021-01-01 11-43-31

I think that did it. I am processing transactions now. Over next few days I’m guessing I’ll get more inbound connections. Thanks!

@Alexd1985 thank you for the help on the configuration file. Mine needed a lot of changes

Awesome, that’s the reason then. Hopefully using topologyUpdater will mean that other SPO’s will pick us both up and we’ll get more inbound connections.

1 Like

Looks good… can u tell me how do u start the relay?

Can u paste the script? Thx

sure, here it is

#!/bin/bash
DIRECTORY=/home/XXXXXXX/cardano-my-node
PORT=6000
HOSTADDR=0.0.0.0
TOPOLOGY=${DIRECTORY}/mainnet-topology.json
DB_PATH=${DIRECTORY}/db
SOCKET_PATH=${DIRECTORY}/db/socket
CONFIG=${DIRECTORY}/mainnet-config.json
/usr/local/bin/cardano-node run --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}```

unfortunately I only have my block producing node as a peer now.
Screenshot from 2021-01-02 09-23-35

Ok, did u changed the hostname field from topology updater script?

Can u go to … cd $CNODE_HOME/files
type ls -l and show me the output?