s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.6k stars 905 forks source link

Duplicate "download:" messages on STDOUT #680

Open bitwombat opened 8 years ago

bitwombat commented 8 years ago

doing this:

s3cmd get s3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip

I get this:

download: 's3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip' -> './backup-2015_12_20-11_15am-db-r9o3p42qk8.zip'  [1 of 1]
download: 's3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip' -> './backup-2015_12_20-11_15am-db-r9o3p42qk8.zip'  [1 of 1]

Which seems minor, but I have a sync tool written on top of s3cmd so this output clutters my tool's output.

Is it something I'm doing that's causing the duplicate output?

fviard commented 8 years ago

@bitwombat That is very strange because I'm not able to reproduce your behaviour. Are you using the last MASTER version of s3cmd or at least the 1.6.0? If yes, can you show me the parameters of your .s3cfg file without forgetting to remove your S3 credentials of it?

bitwombat commented 8 years ago

Sorry, should've said I'm on "1.6.0+". Will try master...

bitwombat commented 8 years ago

Yep, getting it with a cloned repo on master. Still getting it with a default .s3cfg (attached). s3cfg.txt

Happy to send you my real one via chat or email (gregory dot letter j dot bell on gmail.com)

fviard commented 8 years ago

For me it is working in master. Can you give it a try please? and if you still have the issue, run s3cmd with the -d option for debug log.

bitwombat commented 8 years ago

Still doing it... I did a git clone of the repo

$ ./s3cmd get s3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip
download: 's3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip' -> './backup-2015_12_20-11_15am-db-r9o3p42qk8.zip'  [1 of 1]
download: 's3://eexemba/backups/wtng/db/backup-2015_12_20-11_15am-db-r9o3p42qk8.zip' -> './backup-2015_12_20-11_15am-db-r9o3p42qk8.zip'  [1 of 1]
ERROR: S3 error: 404 (Not Found)
LiosK commented 7 years ago

You've failed to connect to the right location at the first attempt. Grant s3:GetBucketLocation permission.

Had the same issue but -v flag revealed the cause.

> s3cmd -v get s3://myexamplebucket/files.txt
INFO: Summary: 1 remote files to download
download: 's3://myexamplebucket/files.txt' -> './files.txt'  [1 of 1]
INFO: Forwarding request to us-west-2
download: 's3://myexamplebucket/files.txt' -> './files.txt'  [1 of 1]