错误日志:
|-目录大小:10.17 GB
|-排除设置:未设置
|-分区/home可用磁盘空间为:1.68 TB,可用Inode为:188770717
|-开始压缩文件:2023-01-09 10:37:13
|-文件压缩完成,耗时497.33秒,压缩包大小:9.97 GB
|-网站已备份到:/home/www/backup/site/web_***_20230109_103708.tar.gz
|-正在上传到阿里云OSS,请稍候...
|-正在上传到 bt_backup/site/www.aiheji.top/web_****_20230109_103708.tar.gz...
An exception was thrown by producer or consumer, backtrace: Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1323, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1272, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1071, in _send_output
self.send(chunk)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 993, in send
self.sock.sendall(data)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/retry.py", line 531, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1323, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1272, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1071, in _send_output
self.send(chunk)
File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 993, in send
self.sock.sendall(data)
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 "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/http.py", line 49, in do_request
proxies=req.proxies))
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 498, 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 "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/task_queue.py", line 76, in __consumer_func
consumer(self)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/resumable.py", line 606, in __consumer
self.__upload_part(part)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/resumable.py", line 620, in __upload_part
utils.SizedFileAdapter(f, part.size), headers=headers)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/api.py", line 1342, in upload_part
data=data)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/api.py", line 2652, in __do_object
return self._do(method, self.bucket_name, key, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/api.py", line 235, in _do
resp = self.session.do_request(req, timeout=self.timeout)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/oss2/http.py", line 51, in do_request
raise RequestError(e)
oss2.exceptions.RequestError: {'status': -2, 'x-oss-request-id': '', 'details': "RequestError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"}
软件版本:
宝塔免费版 [url=]7.9.7[/url]
[url=]阿里云OSS 6.1[/url]
[url=]
[/url]
尝试排除:
1.数据库备份正常,数据库大小为几十M
2、10G+的网站备份偶尔正常
3、阿里oss插件版本5.3也这样,升级到6.1后依然如此
4、我尝试沟通阿里云工程师,工程师说错误为上传之前,不是oss侧错误,没有request id
5、我尝试再服务器ping阿里oss的bucket域名,返回网络正常
ping ***.oss-cn-shanghai.aliyuncs.com
PING ***.oss-cn-shanghai.aliyuncs.com (106.14.229.50) 56(84) bytes of data.
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=1 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=2 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=3 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=4 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=5 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=6 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=7 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=8 ttl=83 time=166 ms
64 bytes from 106.14.229.50 (106.14.229.50): icmp_seq=9 ttl=83 time=166 ms
|
|