Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Can't download archive after uploading #43

Open
iminina opened this issue Dec 3, 2014 · 8 comments
Open

Can't download archive after uploading #43

iminina opened this issue Dec 3, 2014 · 8 comments
Assignees

Comments

@iminina
Copy link

iminina commented Dec 3, 2014

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
Copy link
Owner

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
Copy link
Owner

@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
Copy link
Author

iminina commented Dec 5, 2014

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
Copy link
Author

iminina commented Dec 8, 2014

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
Copy link

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
Copy link
Owner

@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
Copy link
Owner

MoriTanosuke commented Feb 9, 2017 via email

@fatso83
Copy link

fatso83 commented Apr 22, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants