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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot connect to peer #14199

Open
garyng2000 opened this issue Jul 9, 2024 · 8 comments
Open

cannot connect to peer #14199

garyng2000 opened this issue Jul 9, 2024 · 8 comments
Labels
Bug Something isn't working custom devnet custom chains Networking P2P related items

Comments

@garyng2000
Copy link

Describe the bug

I have a private(interop) setup that works generally. But at times, a beacon chain refuses to connect to the defined peers(it worked as it can do the init sync). the log message is just

failed to negotiate security protocol: read tcp4 172.16.0.64:43000->172.16.0.72:33000: wsarecv: An existing connection was forcibly closed by the remote host. peer=16Uiu2HAkyHmP9C8G3k5LxNd1B8pYSxHfcuzbG8sFJwVmdL8oiZQF

or

failed to negotiate security protocol: EOF peer=16Uiu2HAkyHmP9C8G3k5LxNd1B8pYSxHfcuzbG8sFJwVmdL8oiZQF

this happens in both windows version as well as linux(amd64).

and once this happens, it cannot dial that node anymore

Has this worked before in a previous version?

not sure, it works randomly

🔬 Minimal Reproduction

No response

Error

No response

Platform(s)

No response

What version of Prysm are you running? (Which release)

No response

Anything else relevant (validator index / public key)?

No response

@garyng2000 garyng2000 added the Bug Something isn't working label Jul 9, 2024
@garyng2000
Copy link
Author

if I delete the p2p info(metadata and key), it seems to work again

@prestonvanloon
Copy link
Member

Can you share reproduction steps?

@LovelyGuy18
Copy link

@garyng2000 , I have the same issue.
Could you tell me how to delete the p2p info(metadata and key), please?

@syjn99
Copy link
Contributor

syjn99 commented Sep 7, 2024

@garyng2000
It may be placed into your data directory. (network-keys & metaData) Deleting p2p info will reset your identity in p2p network.

@artjoma
Copy link

artjoma commented Sep 29, 2024

prysm 5.1.0

time="2024-09-29 14:47:16" level=error msg="failed to reconnect to peer" addrs=[/ip4/*.*.*.213/tcp/13000] error="failed to dial: failed to dial 16Uiu2HAmJh4JEk7BTQ9LAqWssbN4YAxFrLV6T9xkYKBHZ72UPFjf: all dials failed
  * [/ip4/*.*.*.213/tcp/13000] failed to negotiate security protocol: EOF" peer=16Uiu2HAmJh4JEk7BTQ9LAqWssbN4YAxFrLV6T9xkYKBHZ72UPFjf prefix=p2p
time="2024-09-29 14:47:21" level=info msg="Waiting for enough suitable peers before syncing" prefix=initial-sync required=1 suitable=0
time="2024-09-29 14:47:21" level=error msg="failed to reconnect to peer" addrs=[/ip4/*.*.*.213/tcp/13000] error="failed to dial: failed to dial 16Uiu2HAmJh4JEk7BTQ9LAqWssbN4YAxFrLV6T9xkYKBHZ72UPFjf: all dials failed
  * [/ip4/*.*.*.213/tcp/13000] dial backoff" peer=16Uiu2HAmJh4JEk7BTQ9LAqWssbN4YAxFrLV6T9xkYKBHZ72UPFjf prefix=p2p
time="2024-09-29 14:47:26" level=info msg="Waiting for enough suitable peers before syncing" prefix=initial-sync required=1 suitable=0
time="2024-09-29 14:47:31" level=info msg="Waiting for enough suitable peers before syncing" prefix=initial-sync required=1 suitable=0

@artjoma
Copy link

artjoma commented Oct 2, 2024

Can you share reproduction steps?

  • setup private chain geth+beacon+validator on machine A
  • after 10-12h setup node geth+beacon(using --peer) on machine B
  • beacon on machine B will try download data from beacon A but after ~1h of sync. process stop wih "failed to dial" err.

@pleerock
Copy link

pleerock commented Oct 2, 2024

@artjoma I do not use prysm, but I do use libp2p (dep of prysm, which is the error original comes from). Did you always have this issue? Or does it happen after prysm upgrade?

@artjoma
Copy link

artjoma commented Oct 2, 2024

Did you always have this issue?
Yes, with 5.1.0 and 5.0.x versions. It's reproduced every time.

Exists similar issue: #14427

@james-prysm james-prysm added Networking P2P related items custom devnet custom chains labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working custom devnet custom chains Networking P2P related items
Projects
None yet
Development

No branches or pull requests

7 participants