We are having an issue after stopping a node and trying to restart it again where port 30303 is still in use:
2025-10-15T22:53:46.847193Z INFO ethrex_p2p::discv4::server: Adding bootnodes count=319
2025-10-15T22:53:46.859822Z INFO ethrex_p2p::rlpx::initiator: Starting RLPx Initiator
2025-10-15T22:53:46.859839Z INFO ethrex: Global allocator: jemalloc (tikv-jemallocator)
2025-10-15T22:53:46.859860Z INFO ethrex_p2p::rlpx::initiator: Looking for peers
2025-10-15T22:53:46.859903Z ERROR ethrex_p2p::network: Error opening tcp socket at 65.21.139.182:30303: Address already in use (os error 98). Stopping p2p server
The socket is not still used as far as ss tell:
~/ethrex$ ss -tunlp | grep 30303
This, as discussed with @pablodeymo and @Oppen is part of the TCP protocol which relies on ~8mins of the port still open after the node stops. We need to configure this socket with SO_REUSEADDR to be able to immediatly reuse it.
We are having an issue after stopping a node and trying to restart it again where port 30303 is still in use:
The socket is not still used as far as ss tell:
This, as discussed with @pablodeymo and @Oppen is part of the TCP protocol which relies on ~8mins of the port still open after the node stops. We need to configure this socket with SO_REUSEADDR to be able to immediatly reuse it.