当前位置:论坛首页 > Linux面板 > 求助

官方阿里oss插件上传大文件失败

发表在 Linux面板2023-1-12 12:33 [复制链接] 2 3271

错误日志:
                          |-目录大小: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
使用道具 举报 只看该作者 回复
发表于 2023-1-13 08:59:34 | 显示全部楼层
官方放假了吗
使用道具 举报 回复 支持 反对
发表于 2024-1-22 02:23:00 | 显示全部楼层
解决了吗
使用道具 举报 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表