From: Raul R. <ra...@sp...> - 2013-11-26 14:57:42
|
I am experiencing errors about half of the time when I run s3cmd to sync a directory on s3. I run on Ubuntu 12.04. The command is s3cmd --delete-removed --acl-public --cf-invalidate sync /local/path/ s3:// mybucket.com/target/path/ The produced message is: WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An unexpected error has occurred. Please report the following lines to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Problem: NameError: global name 'arg' is not defined S3cmd: 1.1.0-beta3 Traceback (most recent call last): File "/usr/bin/s3cmd", line 1800, in <module> main() File "/usr/bin/s3cmd", line 1741, in main cmd_func(args) File "/usr/bin/s3cmd", line 965, in cmd_sync return cmd_sync_local2remote(args) File "/usr/bin/s3cmd", line 955, in cmd_sync_local2remote result = cf.InvalidateObjects(uri, uploaded_objects_list) File "/usr/share/s3cmd/S3/CloudFront.py", line 428, in InvalidateObjects cfuri = self.get_dist_name_for_bucket(uri) File "/usr/share/s3cmd/S3/CloudFront.py", line 566, in get_dist_name_for_bucket raise ParameterError("Unable to translate S3 URI to CloudFront distribution name: %s" % arg) NameError: global name 'arg' is not defined !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An unexpected error has occurred. Please report the above lines to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Any help you could offer would be great. Thanks, Raul SpokenLayer |