代码取自github,由开发人员实施,并部署在AWS和on-premise中。它在两者上都工作得很好,但在GCP中给出了下面的错误。我是一个管理员与非常低的python技能试图在GCP中实现它。做了谷歌提到的操作系统级别的调整,但仍然是相同的错误。它工作正常,但当它空闲2小时并接收到任何消息时,它立即崩溃。
2020-09-11 04:52:29,282 (util.py:75 WorkerThread1) ERROR - TeleBot: "ConnectionE
rror occurred, args=(ProtocolError('Connection aborted.', ConnectionResetError(1
04, 'Connection reset by peer')),)
Traceback (most recent call last):
File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 677, in urlopen
chunked=chunked,
File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 426, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.7/ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.7/ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer发布于 2020-09-15 04:12:19
它需要由谷歌产品团队进行调查。
然后我建议通过Public Issue Tracker转发这篇文章,以获得进一步的支持。或者您可以使用Google Cloud support (对免费用户this link)打开一个工单,以便我们可以进一步调查此问题。
https://stackoverflow.com/questions/63877157
复制相似问题