Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: zlin776 on November 23, 2022, 11:11:42 PM



Title: Bitcoin Core stuck at 'Connecting to peers' after lengthy sync
Post by: zlin776 on November 23, 2022, 11:11:42 PM
I am running Bitcoin Core on Linux Mint, using a 1TB SSD. I typically get to around 50% sync, then I get stuck at 'Connecting to peers', and it appears that I am unable to connect to the network.

I have deleted my 'Blocks' and 'Chainstate' folders a couple of times, completely reinstalling Core, but the same problem occurs.

The debug log states the following:
2022-11-23T23:01:47Z connect() to 127.0.0.1:9050 failed after wait: Connection refused (111)

I have scoured the forum posts from various sources to no avail.

Any suggestions?


Title: Re: Bitcoin Core stuck at 'Connecting to peers' after lengthy sync
Post by: jackg on November 23, 2022, 11:21:23 PM
Are you using it via tor or not?.

Have you tried deleting peers.dat when this happens or disabling antivirus (there might be a workaround for this if you run it in a virtual machine so you can keep your main machine secure but your virtual machine quarantined and sandboxed. Also deleting the blocks folder generally helps.more than deleting chainstate.


Title: Re: Bitcoin Core stuck at 'Connecting to peers' after lengthy sync
Post by: zlin776 on November 23, 2022, 11:26:20 PM
Are you using it via tor or not?.

Have you tried deleting peers.dat when this happens or disabling antivirus (there might be a workaround for this if you run it in a virtual machine so you can keep your main machine secure but your virtual machine quarantined and sandboxed. Also deleting the blocks folder generally helps.more than deleting chainstate.

Could you point me in the direction for instructions to use via Tor?

Tried deleting peers.dat to no avail.

I do not have any antivirus or firewalls enabled (Linux)


Title: Re: Bitcoin Core stuck at 'Connecting to peers' after lengthy sync
Post by: vv181 on November 24, 2022, 04:43:44 PM
It seems the problem is on Tor's side. How do you install and configure Tor?

If the same log still concurred, try to trace both Bitcoin and Tor logs. Also, try to restart the tor process.

Code:
sudo tail -F /var/log/syslog | grep tor -i # monitor tor log
sudo systemctl restart tor # restart tor