Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purge-vault not working #32

Closed
ghost opened this issue Apr 20, 2013 · 17 comments
Closed

purge-vault not working #32

ghost opened this issue Apr 20, 2013 · 17 comments

Comments

@ghost
Copy link

ghost commented Apr 20, 2013

Not certain if this is an mt-aws-glacier issue or an Amazon Glacier issue.

I issued the purge-vault command, and got this error:

HTTP/1.1 400 Bad Request
Date: Sat, 20 Apr 2013 15:55:17 GMT
Content-Length: 142
Content-Type: application/json
Client-Date: Sat, 20 Apr 2013 15:55:17 GMT
Client-Peer: 204.246.163.151:80
Client-Response-Num: 1
X-Amzn-RequestId: VzMhvWr63bsqtDaRYGLbQ38v5fXK8rcwP5lIhtHPUCW0SkQ

{"code":"InvalidParameterValueException","message":"Invalid vault name: arn:aws:glacier:us-west-1:954508486505:vaults/Videos","type":"Client"}

PARENT Exit
DELETE http://glacier.us-west-1.amazonaws.com/-/vaults/Videos/archives/wLl1mzek-1O4jlgVGS_B7WMY2Ailw1-YQZvVioOmyipQlbgWJzihNtvQccrBe8cmVauJcGNyIzPxY_FZduDKtXyRmgwFMOTlBgECjNpuc5METK1M5ymK1q3dm9lP97C7Gh5jSQY2NQ
Authorization: AWS4-HMAC-SHA256 Credential=XXXXXXXXXXXXXXXXXX/20130420/us-west-1/glacier/aws4_request, SignedHeaders=host;x-amz-date;x-amz-glacier-version, Signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Host: glacier.us-west-1.amazonaws.com
User-Agent: mt-aws-glacier/0.942beta (http://mt-aws.com/) libwww-perl/5.836
X-Amz-Date: 20130420T155515Z
X-Amz-Glacier-Version: 2012-06-01

It looks to me, though, that the name "arn:aws:glacier:us-west-1:954508486505:vaults/Videos" is truly valid, as I look at my glacier account.

@vsespb
Copy link
Owner

vsespb commented Apr 20, 2013

hi. try vault name "Videos"
20.04.2013 20:02 ÐÏÌØÚÏ×ÁÔÅÌØ "telscuba" notifications@github.com
ÎÁÐÉÓÁÌ:

Not certain if this is an mt-aws-glacier issue or an Amazon Glacier issue.

I issued the purge-vault command, and got this error:

HTTP/1.1 400 Bad Request
Date: Sat, 20 Apr 2013 15:55:17 GMT
Content-Length: 142
Content-Type: application/json
Client-Date: Sat, 20 Apr 2013 15:55:17 GMT
Client-Peer: 204.246.163.151:80
Client-Response-Num: 1
X-Amzn-RequestId: VzMhvWr63bsqtDaRYGLbQ38v5fXK8rcwP5lIhtHPUCW0SkQ

{"code":"InvalidParameterValueException","message":"Invalid vault name:
arn:aws:glacier:us-west-1:954508486505:vaults/Videos","type":"Client"}

PARENT Exit
DELETE
http://glacier.us-west-1.amazonaws.com/-/vaults/Videos/archives/wLl1mzek-1O4jlgVGS_B7WMY2Ailw1-YQZvVioOmyipQlbgWJzihNtvQccrBe8cmVauJcGNyIzPxY_FZduDKtXyRmgwFMOTlBgECjNpuc5METK1M5ymK1q3dm9lP97C7Gh5jSQY2NQ
Authorization: AWS4-HMAC-SHA256
Credential=AKIAIS3GNW32JOW6WNNQ/20130420/us-west-1/glacier/aws4_request,
SignedHeaders=host;x-amz-date;x-amz-glacier-version,
Signature=a26921c47a26e4d9c4c2ca025cc879055e8c7e1e0215ed4482396ff599f674b8
Host: glacier.us-west-1.amazonaws.com
User-Agent: mt-aws-glacier/0.942beta (http://mt-aws.com/)
libwww-perl/5.836
X-Amz-Date: 20130420T155515Z
X-Amz-Glacier-Version: 2012-06-01

It looks to me, though, that the name
"arn:aws:glacier:us-west-1:954508486505:vaults/Videos" is truly valid, as I
look at my glacier account.

Reply to this email directly or view it on GitHubhttps://github.com//issues/32
.

@ghost
Copy link
Author

ghost commented Apr 20, 2013

Not sure I understand. That's the vault name I'm using.

@ghost
Copy link
Author

ghost commented Apr 20, 2013

The whole command I'm using is:

mtglacier purge-vault --config=/root/glacier.cfg --to-vault=Videos --journal=/root/glacier-journal.log

@vsespb
Copy link
Owner

vsespb commented Apr 20, 2013

Ok. Then it should work :(

Maybe it's permission issue (check minimum permission example in the bottom
of mtglacier page)?
Or perhaps Amazon issue (I saw another person complainting to this, he used
different client)

Or maybe yo've just created that vault and amazon failed to delete archives
so soon (however i am not aware of such limitations)

I believe you can try contact Amazon (for example here
https://forums.aws.amazon.com - the above mtglacier error message contains
all required information)

Unfortunately I cannot help currently with testing again this mtglacier
function on my side as I am traveling till 25th. But when I last checked it
was working just fine.

2013/4/20 telscuba notifications@github.com

The whole command I'm using is:

mtglacier purge-vault --config=/root/glacier.cfg --to-vault=Videos
--journal=/root/glacier-journal.log


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-16706439
.

@vsespb
Copy link
Owner

vsespb commented Apr 26, 2013

Hello. So, were you able to resolve this?

@ghost
Copy link
Author

ghost commented Apr 26, 2013

Thanks. I saw that in my original Google search. I haven't resolved it
(but I haven't really tried much, either). I've taken to deleting files
one by one with another tool. When the vault is empty, I'll delete it and
try the whole thing again.

On Fri, Apr 26, 2013 at 7:58 AM, Victor Efimov notifications@github.comwrote:

similar issue:
http://stackoverflow.com/questions/15660302/aws-glacier-invalid-vault-name
https://forums.aws.amazon.com/message.jspa?messageID=436900#436900


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-17079437
.

@vsespb
Copy link
Owner

vsespb commented Apr 26, 2013

Hm. Interesting. If deletion one-by-one works, then the issue cannot be explained by Amazon problem. Thanks. I'll try to think how could this happen..

@vsespb
Copy link
Owner

vsespb commented Apr 26, 2013

I've tested purge-vault in latest version - it works fine for me.
I'll try to submit your stacktrace to amazon support, ok ?

@ghost
Copy link
Author

ghost commented Apr 26, 2013

I appreciate it, and thanks for the follow up! I'll also get the latest
from github and retry it.

On Fri, Apr 26, 2013 at 9:14 AM, Victor Efimov notifications@github.comwrote:

I've tested purge-vault in latest version - it works fine for me.
I'll try to submit your stacktrace to amazon support, ok ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-17084205
.

@vsespb
Copy link
Owner

vsespb commented Apr 26, 2013

latest - I meant 0.942beta - you already have it.

@vsespb
Copy link
Owner

vsespb commented Apr 29, 2013

Hi. I posted to Amazon forums
https://forums.aws.amazon.com/thread.jspa?threadID=123076
they think archive_id was from different vault
i.e. maybe you used one journal for several vaults?

@ghost
Copy link
Author

ghost commented Apr 29, 2013

I did, indeed, use the same journal for all my vaults. I didn't know that
it had to be different for each vault. If that's the case, it certainly
explains things. I can delete each item in the vault one by one, delete
the vault, and try the whole thing again, this time using a unique journal
for each vault. Thanks for the follow up!

On Sun, Apr 28, 2013 at 10:08 PM, Victor Efimov notifications@github.comwrote:

Hi. I posted to Amazon forums
https://forums.aws.amazon.com/thread.jspa?threadID=123076
they think archive_id was from different vault
i.e. maybe you used one journal for several vaults?


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-17150379
.

@vsespb
Copy link
Owner

vsespb commented Apr 29, 2013

Ok, cool.

For every command you should explicit specify vault and region (including sync and purge-vault), and you should use same vault/region with one journal. Journal does not contain region/vault names.

I will add to documentation explanation what Journal is, and will include explicit clarification that user should maintain region/vault/journal relation by himself (it's can be easy, if you specify region/vault/journal in one config file and don't change it, or if you include region+vault names in name of your journal file)

BTW You can use retrieve-inventory + download-inventory + purge-vault to clear all your vaults, without having to delete archives one-by-one. (make sure your last upload to vault was > 24h ago, otherwise retrieve-inventory won't retrieve latest version of archive listing).

Or maybe you won't have to purge vault after retrieve-inventory + download-inventory (i.e. yo'll create new journals split by vault)

Thanks for reporting!

@vsespb vsespb closed this as completed Apr 29, 2013
@vsespb
Copy link
Owner

vsespb commented Apr 30, 2013

FYI Documentation section "Journal Concept" is added https://github.com/vsespb/mt-aws-glacier#journal-concept

@ghost
Copy link
Author

ghost commented Apr 30, 2013

Your follow up is nothing short of awesome. Thank you for this software and
amazing support!

Sent from my iPhone

On Apr 30, 2013, at 11:43 AM, Victor Efimov notifications@github.com
wrote:

FYI Documentation section "Journal Concept" is added
https://github.com/vsespb/mt-aws-glacier#journal-concept


Reply to this email directly or view it on
GitHubhttps://github.com//issues/32#issuecomment-17246383
.

@vsespb
Copy link
Owner

vsespb commented Apr 30, 2013

:) Thanks!

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

No branches or pull requests

1 participant