Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reports of Windows users losing peers #13431

Closed
james-prysm opened this issue Jan 8, 2024 · 11 comments
Closed

Reports of Windows users losing peers #13431

james-prysm opened this issue Jan 8, 2024 · 11 comments
Assignees
Labels
Bug Something isn't working Need-Info Need more information from author Networking P2P related items Windows Anything related only to Windows OS

Comments

@james-prysm
Copy link
Contributor

馃拵 Issue

Background

Opening this as it's nuanced and haven't been wide spread however it does randomly happen to some windows users
where the OS decides to drop all packets from prysm for some reason. This results in a reduced peer count. Root cause is currently unknown but opening this as a tracking issue.

related prysmaticlabs/documentation#891
related #8144

@james-prysm james-prysm added Bug Something isn't working Networking P2P related items Need-Info Need more information from author Windows Anything related only to Windows OS labels Jan 8, 2024
@defeedme
Copy link

defeedme commented Jan 12, 2024

welp my system worked fine for 3 years and now I lose all peers after about 2 hours, had to setup a schedule task to kill and restart beacon every 2 hours.. solution below!!

@defeedme
Copy link

defeedme commented Jan 15, 2024

Hi all, it appears the problem was with my Time Sync program (net time) .. I had the sync interval set at 2 hours.. the ntp servers must have been giving bad data or something.. and windows sucks with accurate time to begin with.. So the solution was to use the google time servers and change it to 10 min sync interval.. so far so good!!! 2 days almost perfect!
nettimegoodversion
nettimegood

@james-prysm
Copy link
Contributor Author

i'll try to add this to the docs

@james-prysm
Copy link
Contributor Author

closing issue with added docs now

@defeedme
Copy link

defeedme commented Feb 7, 2024

welp guess i spoke to soon. back to the same problem. it worked for 2-3 days then stopped. I rebooted my router / modem and same thing worked for a day.. I'm really at my wits end. can't understand how when i stop and restart beacon it works for a few hours then stops. its maddening.

@web3dev2023
Copy link

Same issue. I have a Windows 10 and a Windows 11 PC. The beacon client running on them loses peers after a few hours. I sync the Windows time every 5 minutes but it does not work.

They had been working fine for months. I guess the issue became prominent since the Dencun upgrade.

@defeedme
Copy link

defeedme commented May 7, 2024

Same issue. I have a Windows 10 and a Windows 11 PC. The beacon client running on them loses peers after a few hours. I sync the Windows time every 5 minutes but it does not work.

They had been working fine for months. I guess the issue became prominent since the Dencun upgrade.

following.. please let me know if you find out anything.. It seems like something they did around December really made it bad for windows users.. I would love to switch to a minority client but just haven't had the time to figure it out..

can you add your comment to this new issue i opened? #13936

thanks!

@nisdas nisdas self-assigned this May 7, 2024
@web3dev2023
Copy link

let me know if you find out anything.. It seems like something they did around December really made it bad for windows users.. I would love to switch to a minority client but just haven't had the time to figure it out..

can you add your comment to this new issue

Yes, I did found a workaround:

  • I am now using the lighthouse beacon client and it has no issue in finding peers.

  • At the same time geth can find a few peers before losing them and I added them to static peers:

  1. First generate a config file: geth.exe --mainnet dumpconfig > geth-config.toml
  2. Then edit this file, add your favourite peers to StaticNodes , save it with UTF-8 encoding (I used Notepad++)
  3. Finally run geth with the flag --config geth-config.toml

@defeedme
Copy link

defeedme commented May 7, 2024

let me know if you find out anything.. It seems like something they did around December really made it bad for windows users.. I would love to switch to a minority client but just haven't had the time to figure it out..
can you add your comment to this new issue

Yes, I did found a workaround:

  • I am now using the lighthouse beacon client and it has no issue in finding peers.
  • At the same time geth can find a few peers before losing them and I added them to static peers:
  1. First generate a config file: geth.exe --mainnet dumpconfig > geth-config.toml
  2. Then edit this file, add your favourite peers to StaticNodes , save it with UTF-8 encoding (I used Notepad++)
  3. Finally run geth with the flag --config geth-config.toml

thanks so much for the workaround! i've been suffering for months lol.. at least now I know I'm not crazy and this is definitely a real issue.. lighthouse here we come

@defeedme
Copy link

defeedme commented May 9, 2024

  1. First generate a config file: geth.exe --mainnet dumpconfig > geth-config.toml
  2. Then edit this file, add your favourite peers to StaticNodes , save it with UTF-8 encoding (I used Notepad++)
  3. Finally run geth with the flag --config geth-config.toml

i'm very confused because I'm using nethermind (i gave up on geth).. can you give me specific steps on how to migrate from prysm to lighthouse using nethermind? thanks!

@web3dev2023
Copy link

  1. First generate a config file: geth.exe --mainnet dumpconfig > geth-config.toml
  2. Then edit this file, add your favourite peers to StaticNodes , save it with UTF-8 encoding (I used Notepad++)
  3. Finally run geth with the flag --config geth-config.toml

i'm very confused because I'm using nethermind (i gave up on geth).. can you give me specific steps on how to migrate from prysm to lighthouse using nethermind? thanks!

It's basically the same as running prysm, here is my script. You might need to sync from genesis.
C:\Users\admin\lighthouse.exe bn --network mainnet --execution-endpoint http://localhost:8551 --datadir d:/ethereum/execution --execution-jwt D:/ethereum/consensus/prysm/jwt.hex --target-peers 60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Need-Info Need more information from author Networking P2P related items Windows Anything related only to Windows OS
Projects
None yet
Development

No branches or pull requests

4 participants