First time starting a node, DiffusionErrored

Hi and sorry to bother you but I have got a bit stuck and hope you can give me some pointers.

I have been following along the documents to start a node and everything has gone well so far but starting the node I get an error I can not overcome.

As you can see I get the error
DiffusionErrored Network.Socket.bind: unsupported operation (Cannot assign requested address)

For the topology file, I just went to https://explorer.mainnet.cardano.org/relays/topology.json to find some active producer nodes

{
  "Producers": [
    {
      "addr": "relay1-pub.ahlnet.nu",
      "port": 2111,
      "valency": 2
    }
  ]
}

For the start command i have:

cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–host-addr 34.248.22.26
–port 3001
–config testnet-config.json

All ports are open.

I have not updated the testnet-config.json, testnet-shelley-genesis.json or testnet-byron-genesis.json from the ones provided.

This is the full stack trace.

Thanks

[ip-172-3:cardano.node.networkMagic:Notice:5] [2021-05-31 17:23:37.75 UTC] NetworkMagic 1097911063
[ip-172-3:cardano.node.basicInfo.protocol:Notice:5] [2021-05-31 17:23:37.75 UTC] Byron; Shelley
[ip-172-3:cardano.node.basicInfo.version:Notice:5] [2021-05-31 17:23:37.75 UTC] 1.25.1
[ip-172-3:cardano.node.basicInfo.commit:Notice:5] [2021-05-31 17:23:37.75 UTC] 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f
[ip-172-3:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-05-31 17:23:37.75 UTC] 2021-05-31 17:23:37.752913806 UTC
[ip-172-3:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-05-31 17:23:37.75 UTC] 2019-07-24 20:20:16 UTC
[ip-172-3:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-05-31 17:23:37.75 UTC] 20s
[ip-172-3:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-05-31 17:23:37.75 UTC] 21600
[ip-172-3:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-05-31 17:23:37.75 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-05-31 17:23:37.75 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-05-31 17:23:37.75 UTC] 129600
[ip-172-3:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-05-31 17:23:37.75 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-05-31 17:23:37.75 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-05-31 17:23:37.75 UTC] 129600
[ip-172-3:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-05-31 17:23:37.75 UTC] 1s
[ip-172-3:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-05-31 17:23:37.75 UTC] 432000
[ip-172-3:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-05-31 17:23:37.75 UTC] 129600
[ip-172-3:cardano.node.addresses:Notice:5] [2021-05-31 17:23:37.76 UTC] [SocketInfo 34.248.22.26:3001]
[ip-172-3:cardano.node.diffusion-mode:Notice:5] [2021-05-31 17:23:37.76 UTC] InitiatorAndResponderDiffusionMode
[ip-172-3:cardano.node.dns-producers:Notice:5] [2021-05-31 17:23:37.76 UTC] []
[ip-172-3:cardano.node.ip-producers:Notice:5] [2021-05-31 17:23:37.76 UTC] IPSubscriptionTarget {ispIps = [], ispValency = 0}
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.76 UTC] Opened imm db with immutable tip at genesis (origin) and chunk 0
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.76 UTC] Opened vol db
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.76 UTC] Replaying ledger from genesis
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.77 UTC] Opened lgr db
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.77 UTC] Opened db with immutable tip at genesis (origin) and tip 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] CreateSystemdSocketForSnocketPath "db/node.socket"
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] CreatedLocalSocket "db/node.socket"
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:50] [2021-05-31 17:23:37.77 UTC] CreatingServerSocket 34.248.22.26:3001
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:50] [2021-05-31 17:23:37.77 UTC] ConfiguringServerSocket 34.248.22.26:3001
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] ConfiguringLocalSocket "db/node.socket" (FileDescriptor 23)
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] ListeningLocalSocket "db/node.socket" (FileDescriptor 23)
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] LocalSocketUp "db/node.socket" (FileDescriptor 23)
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:48] [2021-05-31 17:23:37.77 UTC] RunLocalServer (LocalAddress "db/node.socket")
[ip-172-3:cardano.node.DiffusionInitializationTracer:Info:5] [2021-05-31 17:23:37.77 UTC] DiffusionErrored Network.Socket.bind: unsupported operation (Cannot assign requested address)
[ip-172-3:cardano.node.ChainDB:Info:5] [2021-05-31 17:23:37.77 UTC] Closed db with immutable tip at genesis (origin) and tip 1e64e74bd7ac76d6806480a28017deb0aedd356fb61844ec95c429ae2f30c7c3 at slot 0

Shutting down..

Start the node with host-addr 0.0.0.0

2 Likes

Thank you, that did the trick.

FYI
I had the error in the same context.

[XXXXX:cardano.node.DiffusionInitializationTracer:Info:61] [2021-12-31 16:55:59.80 UTC] ConfiguringLocalSocket (LocalAddress “YYYYYY/cardano/db/node.socket”) (FileDescriptor 24)
[XXXXX:cardano.node.DiffusionInitializationTracer:Info:5] [2021-12-31 16:55:59.81 UTC] DiffusionErrored Network.Socket.bind: permission denied (Operation not permitted)

The reason was that the …/db directory was in a smb ressource. I find no solution to create a socket file on a smb (cifs) file system.

1 Like

do not share the server’s user :beers:

2 Likes

You’re right

A bit ignorant here, but can you elaborate on what you mean by “do not share the server’s user”?
Sorry for the elementary question

For testnet is not an issue but for mainnet don’t share informations on public media such as servers username, BP IP, etc (infos which can be used by some one to hack ur nodes)

Cheers,

Oh that comment was as simple as that, sorry I was mistaking it for a solution rather than a best practice. Understood! I was having an issue with my node.socket file also being on the external HD and that obviously didn’t work until I put it back on my local drive. So I thought your comment was related. Thanks!

1 Like