MoriTanosuke / glacieruploader

A simple java command line application for Amazon Glacier
https://www.kopis.de/blog/2012/08/22/simple-uploader-for-amazon-glacier-archiving/
GNU General Public License v3.0
237 stars 54 forks source link

Can't download archive after uploading #43

Open iminina opened 9 years ago

iminina commented 9 years ago

First of all, I want to thank you for your programm. It is really great and exactly what I was looking for! But I have a little problem with downloading files from Glacier. Upload work well, I have an archive ID and I see archive in vault. But when I try to download archive, I get an error:

INFO: Downloading archive LJNGbR8hSa... from vault MyVault...
Exception in thread "main" Status Code: 403, AWS Service: AmazonSNS, AWS Request
 ID: 478e0076-98a2-5c46-a7b5-4c8e42f20c8f, AWS Error Code: InvalidClientTokenId,
 AWS Error Message: The security token included in the request is invalid

Download command looks like this:

java -jar uploader-0.0.8-SNAPSHOT-jar-with-dependencies.jar --credentials aws.properties --endpoint https://glacier.eu-central-1.amazonaws.com/ --vault MyVault --download LJNGbR8hSaOQsyr9F5Sg6j... --target D:\9_PROJECTS_MY\glacieruploader-master\download.rar

File aws.properties contains valid accessKey and secretKey. Upload, multipart upload, create vault works great for me. What I'm doing wrong with downloading files?

MoriTanosuke commented 9 years ago

Thanks for the report. I'll try to recreate this on my machine. I'm a little bit short on time, so this might take a while.

MoriTanosuke commented 9 years ago

@iminina My first test worked. I just uploaded and downloaded a file to my vault. Maybe it's a problem with your AWS security keys?

I just pushed a new commit that will create a detailed logfile when you run the application. Can you retry the download with the new commit and provide the logfile?

iminina commented 9 years ago

Hi! Thank you for the quick response. I run the same command with you commit and programm still working without errors. As for me it is gone in cycles, because nothing happens) so my log is very big, and I send you a part of it. http://dropmefiles.com/tvUEx this is url for a part of log. I don't think the problem is in my AWS security keys, because I upload archive and create vault with them.

iminina commented 9 years ago

It is so strange! In my bills I have bill on $4.23 for usage of 352.635 GB for Amazon Glacier EUC1-Peak-Retrieval-Bytes-Delta. But all my task for retrieval fell with errors or I cancel them. And I can't find file on my PC with name and path I pointed out in --target option. And I want to download file with 700 Mb size. But many times. What was wrong? If file downloaded successfully, where I can find this file?

KenBarber commented 9 years ago

I also cannot download archives.

According to Amazon, I am to request a download job, then wait for the job to complete on their end before I can download.

I do not see anything in your documentation for requesting a download job.

Please tell me how use your software to put in the initial request with Amazon.

MoriTanosuke commented 7 years ago

@MTecknology Actually the tool can also download archives, which is also stated in the README and in the original issue by @iminina

I had a couple of times where I wanted to download an archive that was not yet ready for retrievel. Or maybe the API changed and the download is no longer working with the version of the AWS Glacier API I use for the tool. I'll try to recreate this.

MoriTanosuke commented 7 years ago

No problem, I guess I have to run a few tests again to see if I can reproduce this behavior.

If someone has a logfile or other information, please do upload or paste it here.

fatso83 commented 6 years ago

Shouldn't this be closed? There are tons of open issues that are up to 5 years old, but most of them are TODOs or like this: unverified for several years.