-
-
Notifications
You must be signed in to change notification settings - Fork 913
Closed
Description
sync fails on random files (everytime) if I use put instead of sync it works fine but that not really usable for us
OS: CentOS Linux release 7.6.1810 (Core)
Invoked as: /bin/s3cmd -c /XXXX/s3/.s3cfg sync /XXXX/projects/XXXX/people/XXXX/get_duration.sh s3://gm-archive/XXXX/people/XXXX/get_duration.sh
Problem: IndexError: list index out of range
S3cmd: 2.0.2 (same issue in 2.1.0)
python: 2.7.5 (default, Jun 20 2019, 20:27:34)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
environment LANG=en_US.UTF-8
Traceback (most recent call last):
File "/bin/s3cmd", line 3092, in <module>
rc = main()
File "/bin/s3cmd", line 3001, in main
rc = cmd_func(args)
File "/bin/s3cmd", line 1885, in cmd_sync
return cmd_sync_local2remote(args)
File "/bin/s3cmd", line 1858, in cmd_sync_local2remote
ret = _single_process(args[:-1])
File "/bin/s3cmd", line 1612, in _single_process
return _child(destination_base, source_args)
File "/bin/s3cmd", line 1716, in _child
remote_list, dst_exclude_list, remote_total_size = fetch_remote_list(destbase_with_source_list, recursive = True, require_attribs = True)
File "/usr/lib/python2.7/site-packages/S3/FileLists.py", line 460, in fetch_remote_list
objectlist, tmp_total_size = _get_filelist_remote(uri, recursive = True)
File "/usr/lib/python2.7/site-packages/S3/FileLists.py", line 397, in _get_filelist_remote
recursive = recursive, uri_params = uri_params)
File "/usr/lib/python2.7/site-packages/S3/S3.py", line 309, in bucket_list
for truncated, dirs, objects in self.bucket_list_streaming(bucket, prefix, recursive, uri_params, limit):
File "/usr/lib/python2.7/site-packages/S3/S3.py", line 356, in bucket_list_streaming
uri_params['marker'] = current_prefixes[-1]["Prefix"]
IndexError: list index out of range