When performing an s3cmd sync s3:// to a local file the following was the result.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Problem: IndexError: list index out of range
S3cmd: 1.0.0
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 2006, in <module>
main()
File "/usr/bin/s3cmd", line 1950, in main
cmd_func(args)
File "/usr/bin/s3cmd", line 1213, in cmd_sync
return cmd_sync_remote2local(args)
File "/usr/bin/s3cmd", line 949, in cmd_sync_remote2local
remote_list[remote_list.keys()[0]]['local_filename'] = deunicodise(destination_base)
IndexError: list index out of range
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I am attempting to copy all the s3 access logs - for a specific day - from one s3 bucket to an s3 bucket/object.
s3cmd sync --exclude "*" --include "*2012-12-27*" s3://logs.xxxxxxxx.com/ s3://archivedlogs.xxxxxxxx.com/backup/
It works fine with the --dry-run option, but the actual sync breaks with the following error:
Problem: S3RequestError: Request failed for: /backup/s3_xxxxxxx_access_log-2012-12-27-00-27-15-47BA360C2B2CB74F
S3cmd: 1.0.1
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/s3cmd", line 2006, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/s3cmd", line 1950, in main
cmd_func(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/s3cmd", line 1215, in cmd_sync
return cmd_sync_remote2remote(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/s3cmd", line 906, in cmd_sync_remote2remote
response = s3.object_copy(src_uri, dst_uri, extra_headers)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 311, in object_copy
response = self.send_request(request)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 487, in send_request
return self.send_request(request, body, retries - 1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 487, in send_request
return self.send_request(request, body, retries - 1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 487, in send_request
return self.send_request(request, body, retries - 1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 487, in send_request
return self.send_request(request, body, retries - 1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 487, in send_request
return self.send_request(request, body, retries - 1)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/S3/S3.py", line 489, in send_request
raise S3RequestError("Request failed for: %s" % resource['uri'])
S3RequestError: Request failed for: /backup/s3_bradsdeals_access_log-2012-12-27-00-27-15-47BA360C2B2CB74F
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
Fixed in 1.5.2 and some earlier releases.