Skip to content

p2p: Too many unsuccessful attempts #3532

@danil-lashin

Description

@danil-lashin

Tendermint version: 0.31.3

What happened: p2p module of Tendermint trying to connect to peers from addrbook too many times.

For example, I found this record in addrbook.json in one of my nodes:

{
	"addr": {
		"id": "7f880203aacfc405d926ea9a76163a9f284e8a5e",
		"ip": "37.153.1.214",
		"port": 26656
	},
	"src": {
		"id": "8c866c4cd346f55b38cafd007862b6279d2e8000",
		"ip": "136.243.33.21",
		"port": 48236
	},
	"attempts": 497,
	"last_attempt": "2019-04-08T14:51:24.699155733+03:00",
	"last_success": "0001-01-01T00:00:00Z",
	"bucket_type": 1,
	"buckets": [
		210,
		166,
		238,
		51
	]
}

497 attempts and no success one ("last_success": "0001-01-01T00:00:00Z"). It happens alot especially on start of new test network. Some nodes not wipe addrbook and some wipe node_key file.

What you expected to happen: Tendermint should remove peer from addrbook when max dial attempts (16) reached.

Have you tried the latest version: yes

Metadata

Metadata

Assignees

Labels

C:p2pComponent: P2P pkgT:bugType Bug (Confirmed)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions