Skip to content

Fail to connect to peers when trying to sync node #791

@mehdi-d-b

Description

@mehdi-d-b

Hello,
I'm trying to setup my first node and I'm having a new issue: every peer I try fails to connect, as seen in these logs:

2025-11-28T11:25:02.414985076Z INFO ThreadId(01) neptune_cash: Starting neptune-core node on main.
2025-11-28T11:25:02.415628165Z INFO ThreadId(01) neptune_cash: Data directory is xxx
2025-11-28T11:25:02.441933291Z INFO ThreadId(01) neptune_cash::state::wallet::wallet_file: ***** Reading wallet from xxx *****
2025-11-28T11:25:02.442196859Z INFO ThreadId(01) neptune_cash::state::wallet::wallet_state: wallet DB directory path is xxx. Exists: yes
2025-11-28T11:25:02.453576585Z INFO ThreadId(01) neptune_cash::state::wallet::rusty_wallet_database: Wallet DB schema version 1 is correct. proceeding
2025-11-28T11:25:02.585042217Z INFO ThreadId(01) neptune_cash: Checking if we need to restore UTXOs
2025-11-28T11:25:02.585616849Z INFO ThreadId(01) neptune_cash::state: Checking 0 incoming UTXOs
2025-11-28T11:25:02.585672596Z INFO ThreadId(01) neptune_cash::state: No missing monitored UTXOs found in wallet database. Wallet database looks good.
2025-11-28T11:25:02.585682853Z INFO ThreadId(01) neptune_cash: UTXO restoration check complete
2025-11-28T11:25:02.58586711Z INFO ThreadId(01) neptune_cash: Now listening for incoming peer-connections
2025-11-28T11:25:02.58590677Z INFO ThreadId(01) neptune_cash: Most known canonical block has height 3630
2025-11-28T11:25:02.590965458Z INFO ThreadId(01) neptune_cash: Started RPC server
2025-11-28T11:25:02.591042424Z INFO ThreadId(01) neptune_cash::application::loops::main_loop: Starting main loop
2025-11-28T11:25:02.656968374Z WARN ThreadId(02) neptune_cash::application::loops::connect_to_peers: Didn't get handshake response from 51.15.139.238:9798. Failed to establish connection.
2025-11-28T11:25:02.657078118Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Connection to 51.15.139.238:9798 closing
2025-11-28T11:25:02.666546077Z WARN ThreadId(02) neptune_cash::application::loops::connect_to_peers: Failed to establish TCP connection to 194.190.216.153:49798: Connection refused (os error 111)
2025-11-28T11:25:02.666593835Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Connection to 194.190.216.153:49798 closing
2025-11-28T11:25:02.691743251Z WARN ThreadId(02) neptune_cash::application::loops::connect_to_peers: Didn't get handshake response from 139.162.193.206:9798. Failed to establish connection.
2025-11-28T11:25:02.691800929Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Connection to 139.162.193.206:9798 closing
2025-11-28T11:25:02.84762696Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Established outgoing connection to 62.113.194.94:9798
2025-11-28T11:25:02.886704467Z INFO ThreadId(17) neptune_cash::application::loops::connect_to_peers: Established outgoing connection to 194.190.216.153:39798
2025-11-28T11:25:02.931450136Z INFO ThreadId(02) neptune_cash::application::loops::peer_loop: Peer indicates block which satisfies sync mode criterion, issuing challenge.
2025-11-28T11:25:03.039069857Z INFO ThreadId(02) neptune_cash::application::loops::peer_loop: Peer indicates block which satisfies sync mode criterion, issuing challenge.
2025-11-28T11:25:03.116641673Z INFO ThreadId(02) neptune_cash::application::loops::peer_loop: Peer 194.190.216.153:39798 closed connection.
2025-11-28T11:25:03.12266831Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Connection to 194.190.216.153:39798 closing
2025-11-28T11:25:03.182398469Z INFO ThreadId(02) neptune_cash::application::loops::connect_to_peers: Established outgoing connection to 66.23.193.243:9798
2025-11-28T11:25:04.142217858Z INFO ThreadId(02) neptune_cash::application::loops::peer_loop: Peer indicates block which satisfies sync mode criterion, issuing challenge.
2025-11-28T13:47:57.006097446Z WARN ThreadId(17) neptune_cash::application::loops::peer_loop: Error when receiving from peer: 62.113.194.94:9798. Error: Connection reset by peer (os error 104)
2025-11-28T13:47:57.006186166Z WARN ThreadId(17) neptune_cash::application::loops::peer_loop: Punishing peer 62.113.194.94 for InvalidMessage
2025-11-28T13:47:57.006218456Z INFO ThreadId(17) neptune_cash::application::loops::peer_loop: Peer 62.113.194.94:9798 closed connection.
2025-11-28T13:47:57.01905374Z INFO ThreadId(17) neptune_cash::application::loops::connect_to_peers: Connection to 62.113.194.94:9798 closing
2025-11-28T13:47:57.030010471Z WARN ThreadId(14) neptune_cash::application::loops::connect_to_peers: Didn't get handshake response from 51.15.139.238:9798. Failed to establish connection.
2025-11-28T13:47:57.030061691Z INFO ThreadId(14) neptune_cash::application::loops::connect_to_peers: Connection to 51.15.139.238:9798 closing
2025-11-28T13:47:57.035027577Z WARN ThreadId(14) neptune_cash::application::loops::connect_to_peers: Failed to establish TCP connection to 194.190.216.153:49798: Connection refused (os error 111)
2025-11-28T13:47:57.035077136Z INFO ThreadId(14) neptune_cash::application::loops::connect_to_peers: Connection to 194.190.216.153:49798 closing
2025-11-28T13:47:57.065989921Z WARN ThreadId(14) neptune_cash::application::loops::connect_to_peers: Didn't get handshake response from 139.162.193.206:9798. Failed to establish connection.
2025-11-28T13:47:57.066038655Z INFO ThreadId(14) neptune_cash::application::loops::connect_to_peers: Connection to 139.162.193.206:9798 closing
2025-11-28T13:47:57.141012079Z WARN ThreadId(14) neptune_cash::application::loops::connect_to_peers: Didn't get handshake response from 194.190.216.153:39798. Failed to establish connection.
2025-11-28T13:47:57.141095253Z INFO ThreadId(14) neptune_cash::application::loops::connect_to_peers: Connection to 194.190.216.153:39798 closing
2025-11-28T13:47:57.148013239Z WARN ThreadId(14) neptune_cash::application::loops::peer_loop: Error when receiving from peer: 66.23.193.243:9798. Error: Connection reset by peer (os error 104)
2025-11-28T13:47:57.148075009Z WARN ThreadId(14) neptune_cash::application::loops::peer_loop: Punishing peer 66.23.193.243 for InvalidMessage
2025-11-28T13:47:57.148089455Z INFO ThreadId(14) neptune_cash::application::loops::peer_loop: Peer 66.23.193.243:9798 closed connection.
2025-11-28T13:47:57.156920348Z INFO ThreadId(14) neptune_cash::application::loops::connect_to_peers: Connection to 66.23.193.243:9798 closing
2025-11-28T13:47:57.158254609Z INFO ThreadId(17) neptune_cash::application::loops::connect_to_peers: Connection to 3.249.158.218:9798 closing

Last week I was able to connect to peers, even though I had trouble downloading blocks.

I tried multiple peer addresses I was able to find online, as shown here:
neptune-core --peer 139.162.193.206:9798 --peer 51.15.139.238:9798 --peer 66.23.193.243:9798 --peer 194.190.216.153:49798 --peer 194.190.216.153:39798 --peer 62.113.194.94:9798

I also tried just neptune-core , without --peer, but I get stucked at:

2025-11-28T13:52:41.384243575Z INFO ThreadId(01) neptune_cash::application::loops::main_loop: Starting main loop

I tried to apply the patch-0.5.0.txt from dan-da and without (related to the previous issue #759 I had).

I tried to reset the banned peers, with:
rm -rf ~/.local/share/neptune/main/databases/banned_ips/

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions