Bitcoin Forum
May 29, 2023, 10:06:59 PM *
News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core stuck at 'Connecting to peers' after lengthy sync  (Read 114 times)
zlin776 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 23, 2022, 11:11:42 PM
 #1

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?
1685398019
Hero Member
*
Offline Offline

Posts: 1685398019

View Profile Personal Message (Offline)

Ignore
1685398019
Reply with quote  #2

1685398019
Report to moderator
1685398019
Hero Member
*
Offline Offline

Posts: 1685398019

View Profile Personal Message (Offline)

Ignore
1685398019
Reply with quote  #2

1685398019
Report to moderator
1685398019
Hero Member
*
Offline Offline

Posts: 1685398019

View Profile Personal Message (Offline)

Ignore
1685398019
Reply with quote  #2

1685398019
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1685398019
Hero Member
*
Offline Offline

Posts: 1685398019

View Profile Personal Message (Offline)

Ignore
1685398019
Reply with quote  #2

1685398019
Report to moderator
1685398019
Hero Member
*
Offline Offline

Posts: 1685398019

View Profile Personal Message (Offline)

Ignore
1685398019
Reply with quote  #2

1685398019
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2828
Merit: 3067


https://bit.ly/387FXHi lightning theory


View Profile
November 23, 2022, 11:21:23 PM
 #2

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.
zlin776 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 23, 2022, 11:26:20 PM
 #3

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)
vv181
Legendary
*
Offline Offline

Activity: 1722
Merit: 1192



View Profile
November 24, 2022, 04:43:44 PM
Merited by ETFbitcoin (1), Edwardard (1)
 #4

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



▄▀▀▀▀▀  ▀▄▄
▄▄  ▄▄▀▀▀▀▀▀▄▄ ▀▄
▄▀ ▄▀     ▄▄   ▀▄  ▄
████ ▄▄▄▄ ▐██▄    █ ▐▌
█ ▐▌  ▀▀███████▄▄ ▐▌ █
▐▌ █    ▀██████▀▀ ████
███
▀▄     ██▄  ▄▀ ▄▀
▀▀▄ ▀▀▄▄▄███▀▀ ▄▀▀
▀▀  ▄▄▄▄▄▄██
x


▄█▀▀▀▄█▀                                ▀▀██▀▀▀▄▄                    ▄█▀▀▄▄▄
██▄  ▀  ▄▄▄▄  ▄▄▄ ▄▄▄▄    ▄▄▄▄ ▄▄▄▄▄▄     ██   ▀██   ▄▄▄▄    ▄▄▄ ▄  ██▀  ▄▀
▄▄███▄▄ ▄ ▐██▄  ▌ █▌  █▄  █▌  █▄ ██  ██   ▄██    ██  █▌  █▄ ▄█▀  █  ███ ▄    ▄
██▄▄▄▀▀███ ▐███▄ ▌▐█▌  ██ ▐█▌  ██ ██  ██  ▀▀██    ██ ▐█▌  ██ ██ ▄▄▄ ▀███▐█▀███▀
▄▀  ▀█▄ ▀██▐█ ██▄▌▐█▌ ▀ █ ▐█▌ ▀ █ ██▄▄▀     ██    ██ ▐█▌ ▀ █ ██ ▄▀█▀ ███ ▀  ██
█    █▀  █▀▐█  ██▌ █▌  ▄▀  █▌  ▄▀ ██        ██   ▄█▀  █▌  ▄▀ ▀█▄  █   ██    ██
▀▄ ▀  ▄█▀ ▀▀▀  ▀▀▀ ▀▀▀     ▀▀▀  ▀▀█▄     ▄▄██▄▄▄▀▀    ▀▀▀     ▀▀▀     ██▄▄█▀
▀▀▀▀      ▄▄▄███▀▀▀▀▀▀▀▀▀▀▄▄▄▄▄▄▄▄ ▄█▄ ▄▄▄▄▄▄▄▄▀▀▀▀▀▀▀▀▀▀███▄▄▄       ▀▀
▀▀▀▄▄▄███▀▀▀                     ▀▀▄▀▀                     ▀▀▀███▄▄▄▀▀▀▀
                    ▄▄▄▄██████▄
                ▄▄█████████████
             ▄████████████████▀
          ▄▄██████████████████
    ▄▄████████▀     ▀████████
  ▄███████████       ███████
▄█████████████▄     ▄█████▀
▀▀   ▄██████████████████▀
  ▄███████████████████▀
   ▀█████████████████▀
  ▄██████████▀██████▀
 █████▀
▀▀██▀  ████▀
 ▀▀▀          █▀▀
CRYPTO'S IIIFASTEST
     GROWING CASINO     
▄███████▄▄
███▀  ▀▀██
██████████▄▄
███▌
▄███
████████████████▄
 ███
███████████████████████
  ██████████████████████████
  ███████████
████████████████
  █████████████
██████████████
  ███████████████████████████
   █████████████████████████
    ███████████████████████▀██
     ▀███████████████████▀   ██
        ▀▀██████████████▄▄▄▄███
                     ▀▀██████▀▀
.
....PLAY NOW....
ETFbitcoin
Legendary
*
Offline Offline

Activity: 2520
Merit: 6238


DO NOT store your coin on third-party service!


View Profile
November 25, 2022, 11:38:10 AM
 #5

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?

if you already reach 50% sync without changing Bitcoin Core setting since you start sync process, doesn't that mean you already configure both Tor and Bitcoin Core? Anyway, as first step you should check whether Tor is running or not using this command.

Code:
sudo systemctl status tor

If the status isn't "active", it means Tor either either isn't running or unable to start. To check Tor log, you can either use command provided by vv181 or use this command.

Code:
sudo journalctl -b | grep -E 'Tor|tor'

.Sinbad.io.MIXER......
██████████████████████▀▀░▄░▄░▀▀██████████████████████
███████████████▀███▀▀▄▀█░▄▀▄░█▀▄▀▀███▀███████████████
██████████████░░░▄▄▀▀░░░▀▄▄▄▀░░░▀▀▄▄░░░██████████████
███▀▀██████████░░░░░░▄▀▀▄▄▄▄▄▀▀▄░░░░░░██████████▀▀███
██░█▄░▀▀█████████▄▄▄░░▄▀░▀█░░▀▄░░▄▄▄█████████▀▀░▄█░██
███▄▄░▀░▄░▀▀██▀▀▀▀█▄▄░▀██▀▐█▄█▀░▄▄█▀▀▀▀██▀▀░▄░▀░▄▄███
█████░██▄▄▀░▄░░▀▀▄██▀▌░▀░▄▄░░▀░▐▀██▄▀▀░░▄░▀▄▄██░█████
██████▄▀▀▀▀▀▄▄▄▀▀▄▄▄▄░░░░░▀░▀░░░▄▄▄▄▀▀▄▄▄▀▀▀▀▀▄██████
███████████████▀▀░░▀▀░░░░░░░░░░░▀▀░░▀▀███████████████
████████████▀▄▄███▀▀▀▄█▄▀░░░▀▄█▄▀▀▀███▄▄▀████████████
██████████▀▄█▀▀▄▄▄███▀▀▄▄▄░▄▄▄▀▀███▄▄▄▀▀█▄▀██████████
███████▀▀▄█████▀▀▀▄▄▄███████████▄▄▄▀▀▀█████▄▀▀███████
██▀▀░░░▀▀▀▀▀▄▄▄███████████████████████▄▄▄▄▀▀▀▀░░░▀▀██
......PROTECTING.YOUR.PRIVACY.........MIX.NOW.........
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!