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

Use AWS client instead of glacier-cmd #9

Closed
mrworf opened this issue Aug 25, 2017 · 8 comments
Closed

Use AWS client instead of glacier-cmd #9

mrworf opened this issue Aug 25, 2017 · 8 comments
Assignees

Comments

@mrworf
Copy link
Owner

mrworf commented Aug 25, 2017

The glacier-cmd is getting too poorly maintained and limiting. Iceshelf should make use of the AWS client which is up to date and allows us to support progress reports and better handling of resume if something fails. It's also a standard app in ubuntu which makes it easier to install.

Should solve current issues seen with 32GB archives.

@mrworf
Copy link
Owner Author

mrworf commented Aug 25, 2017

This will require treehash module to be installed instead (why reinvent the wheel). And while there is an SDK for AWS, I'd prefer to use a tool which limits the chances of providing the wrong data glacier (ie, invalid parameters, etc).

@mrworf
Copy link
Owner Author

mrworf commented Aug 25, 2017

Another benefit would be the potential for multithreaded upload, speeding up process. This however will only be implemented once the new solution is in-place and works.

@wenliang
Copy link
Contributor

now is using awscli?

Thanks @mrworf

@mrworf
Copy link
Owner Author

mrworf commented Aug 30, 2017

@wenliang Yep, couldn't wait :-D

Doing testing right now and seems to be much more solid. But still seeing problems uploading to ireland from the US, so added retry delay and better logging to see why this is. But this seems to be an issue with ireland and the distance from US and when transferring large files (10GB+). Once this succeeds I'll close this issue.

@mrworf
Copy link
Owner Author

mrworf commented Aug 30, 2017

You can install awscli either via apt install awscli (worked on Ubuntu 16 LTS) or via pip install awscli

@mrworf
Copy link
Owner Author

mrworf commented Aug 30, 2017

Another reason to use awscli instead is that it's better maintained unlike glacier-cmd which seems to have stalled. Also, never needed treehash.

@wenliang
Copy link
Contributor

Thanks.

I was having problem with glacier-cmd for error 408.
I figure out adding --partsize 1 solving my problem.
I was going to send pull request today but surprised to see you are using awscli already 😄

I am uploading using latest version now. seem pretty steady.

Thanks a lot! 👍

@mrworf
Copy link
Owner Author

mrworf commented Sep 1, 2017

Latest commit resolves this issue. It now handles the limit of 40'000GB files and will scale partsize from 1MB to as much is necessary to stay within requirements. Also added support for multithreading during file upload, allowing much higher speeds on high latency connections.

@mrworf mrworf closed this as completed Sep 1, 2017
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

2 participants