Today's issue with relayer node

Started Bifrost relayer Daemon.
2022-10-24 15:05:13,898 [RPC-Client] 0x00000000:None:None:('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
request will be re-tried after 180 secs
let's try it again!
Traceback (most recent call last):
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
    response.begin()
  File "/usr/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
    response.begin()
  File "/usr/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/rpchandler.py", line 95, in send_request
    response_json = requests.post(self.url, json=body, headers=headers).json()
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/bifrost/bifrost-relayer/venv/lib/python3.10/site-packages/requests/adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/bifrost/bifrost-relayer/relayer-launcher.py", line 105, in <module>
    main(config)
  File "/home/bifrost/bifrost-relayer/relayer-launcher.py", line 68, in main
    relayer = Relayer.init_from_config_files(
  File "/home/bifrost/bifrost-relayer/relayer/relayer.py", line 61, in init_from_config_files
    return cls.init_from_dicts(
  File "/home/bifrost/bifrost-relayer/relayer/relayer.py", line 89, in init_from_dicts
    return cls(root_config)
  File "/home/bifrost/bifrost-relayer/relayer/relayer.py", line 34, in __init__
    super().__init__(entity_config, int, relayer_index_cache_max_length)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eventbridge/eventbridge.py", line 73, in __init__
    super().__init__(entity_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eventbridge/multichainmonitor.py", line 82, in __init__
    super().__init__(entity_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/multichainmanager.py", line 30, in __init__
    chain_manager = EthChainManager(chain_index, root_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/ethchainmanager.py", line 17, in __init__
    super(EthChainManager, self).__init__(chain_index, root_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/txhandler.py", line 29, in __init__
    super().__init__(chain_index, root_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/eventhandler.py", line 15, in __init__
    super().__init__(chain_index, root_config)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/rpchandler.py", line 59, in __init__
    resp = self.send_request("eth_chainId", [])
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/rpchandler.py", line 104, in send_request
    return self.send_request(method, params, False)
  File "/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/rpchandler.py", line 112, in send_request
    raise Exception("rpc_error: requests.post returns None without any exceptions")
Exception: rpc_error: requests.post returns None without any exceptions
bifrost-relayer.service: Main process exited, code=exited, status=1/FAILURE
bifrost-relayer.service: Failed with result 'exit-code'.

Man, please take a look on your Goerli rpc settings.

What the stacktrace is telling me:/home/bifrost/bifrost-relayer/relayer/chainpy/eth/managers/rpchandler.py - have the root cause and ConnectionResetError: [Errno 104] Connection reset by peer - is saying like - go away - I don’t like u.

Please recheck it.

I have infura in config and before today’s restart it was working fine. I’ve checked goerli with curl request and it looks good.

Thank’s for idea. Checking bifrost-validator, seems it’s issue with it even due fact that logs looks good.

Oh, this isn’t good, but my suggestion - give a try for another Goerli RPC.
Or go deeper with relayer code debugging - it is helped me a lot on the previous week, I’ve at least understand where I’m going wrong

Found, did debug in wrong place. I forgot that switched to service installation(not docker) and service file has extra settings for ports, now it works.
Thanks for highlighting me this moment.

1 Like