-
-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when deleting files [Errno 104] Connection reset by peer #1346
Comments
Is this repeatable? Do you need to use Python 2.7.16? |
This is transient error, it means the server closed the connection. Cloud for many reasons (very slow connection, connection interruption, etc). it has nothing to do with s3cmd and s3cmd can't do anything about it, the connection instantly stopped. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use the command ‘s3cmd rm --recursive’ to delete a large number of sub-files under a folder, the following problem occurs.
S3cmd: 2.3.0
python: 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0]
environment LANG=zh_CN
Traceback (most recent call last):
File "/usr/local/bin/s3cmd", line 3286, in
rc = main()
File "/usr/local/bin/s3cmd", line 3183, in main
rc = cmd_func(args)
File "/usr/local/bin/s3cmd", line 712, in cmd_object_del
rc = subcmd_batch_del_iterative(uri_str = uri_str)
File "/usr/local/bin/s3cmd", line 738, in subcmd_batch_del_iterative
response = s3.object_batch_delete_uri_strs([uri.compose_uri(bucket, item['Key']) for item in to_delete])
File "/usr/local/lib/python2.7/dist-packages/S3/S3.py", line 803, in object_batch_delete_uri_strs
response = self.send_request(request)
File "/usr/local/lib/python2.7/dist-packages/S3/S3.py", line 1525, in send_request
response["data"] = http_response.read()
File "/usr/lib/python2.7/httplib.py", line 583, in read
return self._read_chunked(amt)
File "/usr/lib/python2.7/httplib.py", line 641, in _read_chunked
value.append(self._safe_read(chunk_left))
File "/usr/lib/python2.7/httplib.py", line 698, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
error: [Errno 104] Connection reset by peer
The text was updated successfully, but these errors were encountered: