This repository was archived by the owner on Jul 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
PeerConnectionLost escaping #1767
Copy link
Copy link
Closed
Description
What is wrong?
This blasted out of our CI run.
DEBUG 06-02 12:30:58 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2020-06-02 12:30:58,526 ETHPeerPool unexpected error during peer connection\n'
DEBUG 06-02 12:30:58 async_process_runner.py b'Traceback (most recent call last):\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/trinity/protocol/common/peer.py", line 239, in maybe_connect_more_peers\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' candidate_counts = await asyncio.gather(*(\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/peer_pool.py", line 220, in _add_peers_from_backend\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' await self.connect_to_nodes(candidates)\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/peer_pool.py", line 411, in connect_to_nodes\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' await asyncio.gather(*(self.connect_to_node(node) for node in batch))\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/peer_pool.py", line 467, in connect_to_node\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' await self.start_peer(peer)\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/peer_pool.py", line 281, in start_peer\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' self._add_peer(peer, ())\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/peer_pool.py", line 319, in _add_peer\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' subscriber.register_peer(peer)\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/trinity/components/builtin/network_db/eth1_peer_db/tracker.py", line 114, in register_peer\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' genesis_hash=peer.chain_info.genesis_hash,\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/.tox/py38-wheel-cli/lib/python3.8/site-packages/cached_property.py", line 35, in __get__\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' value = obj.__dict__[self.func.__name__] = self.func(obj)\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/trinity/protocol/common/peer.py", line 109, in chain_info\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' return self.connection.get_logic(ChainInfo.name, ChainInfo)\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/connection.py", line 269, in get_logic\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' if not self.has_logic(name):\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' File "/home/circleci/repo/p2p/connection.py", line 265, in has_logic\n'
DEBUG 06-02 12:30:58 async_process_runner.py b' raise PeerConnectionLost("Cannot look up subprotocol when connection is closing")\n'
DEBUG 06-02 12:30:58 async_process_runner.py b'p2p.exceptions.PeerConnectionLost: Cannot look up subprotocol when connection is closing\x1b[0m\n'
How can it be fixed
🤷