uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

Vaults list failing #34

Closed jqdoumen closed 12 years ago

jqdoumen commented 12 years ago

Don't really know what to do whith this ...

Credentials are correct, and available in a .glacier file in the homedir.

iMac:~ DeJean$ glacier vaults Traceback (most recent call last): File "/usr/local/bin/glacier", line 5, in pkg_resources.run_script('boto==2.6.0-dev', 'glacier') File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 442, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1160, in run_script execfile(script_filename, namespace, namespace) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/EGG-INFO/scripts/glacier", line 154, in main() File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/EGG-INFO/scripts/glacier", line 142, in main list_vaults(region, access_key, secret_key) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/EGG-INFO/scripts/glacier", line 94, in list_vaults layer2 = connect(region, access_key, secret_key) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/EGG-INFO/scripts/glacier", line 90, in connect debug=debug_level) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/glacier/init.py", line 56, in connect_to_region return region.connect(_kw_params) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/regioninfo.py", line 63, in connect return self.connection_cls(region=self, _kw_params) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/glacier/layer2.py", line 38, in init self.layer1 = Layer1(_args, *_kwargs) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/glacier/layer1.py", line 63, in init suppress_consec_slashes) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/connection.py", line 548, in init host, config, self.provider, self._required_auth_capability()) File "/Library/Python/2.6/site-packages/boto-2.6.0_dev-py2.6.egg/boto/auth.py", line 633, in get_auth_handler 'Check your credentials' % (len(names), str(names))) boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials

cryptographrix commented 12 years ago

Also seeing this on OpenIndiana 151a

jqdoumen commented 12 years ago

Any clue?

On Mon, Sep 24, 2012 at 5:24 PM, Michael Renz notifications@github.comwrote:

Also seeing this on OpenIndiana 151a

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8822617.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

uskudnik commented 12 years ago

Hmm... this seems similar to issues I had when I started developing the utility and I had a wrong version of boto (non-develop branch)... This should work (but clearly doesn't; I'll take a look in near future) so if you can install developer branch of boto globally on your system try the following: pip install --upgrade git+https://github.com/boto/boto.git and do tell if that helps

jqdoumen commented 12 years ago

Never used pip before ... giving me the following error:

iMac:pip-1.2.1 DeJean$ pip install --upgrade git+ https://github.com/boto/boto.git Downloading/unpacking git+https://github.com/boto/boto.git Cloning https://github.com/boto/boto.git to /var/folders/ix/ixOWKQFlGdaSB7t1EBZ9mE+++TI/-Tmp-/pip-RX_z4X-build Cannot find command 'git' Storing complete log in /Users/DeJean/Library/Logs/pip.log

On Mon, Sep 24, 2012 at 7:23 PM, Urban Škudnik notifications@github.comwrote:

Hmm... this seems similar to issues I had when I started developing the utility and I had a wrong version of boto (non-develop branch)... This should work (but clearly doesn't; I'll take a look in near future) so if you can install developer branch of boto globally on your system try the following: pip install --upgrade git+https://github.com/boto/boto.git and do tell if that helps

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8826908.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

jqdoumen commented 12 years ago

I guess you are surfing too much ... :-)

I removed the http part and than something happens, but nothing productive ...

iMac:pip-1.2.1 DeJean$ pip install --upgrade git//github.com/boto/boto.git Exception: Traceback (most recent call last): File "/Library/Python/2.6/site-packages/pip/basecommand.py", line 107, in main status = self.run(options, args) File "/Library/Python/2.6/site-packages/pip/commands/install.py", line 225, in run InstallRequirement.from_line(name, None)) File "/Library/Python/2.6/site-packages/pip/req.py", line 118, in from_line return cls(req, comes_from, url=url) File "/Library/Python/2.6/site-packages/pip/req.py", line 43, in init req = pkg_resources.Requirement.parse(req) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2463, in parse reqs = list(parse_requirements(s)) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2389, in parse_requirements line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec") File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2357, in scan_list raise ValueError("Expected "+item_name+" in",line,"at",line[p:]) ValueError: ('Expected version spec in', 'git//github.com/boto/boto.git', 'at', '//github.com/boto/boto.git')

Storing complete log in /Users/DeJean/Library/Logs/pip.log

On Mon, Sep 24, 2012 at 8:04 PM, Jan DOUMEN jan.doumen@gmail.com wrote:

Never used pip before ... giving me the following error:

iMac:pip-1.2.1 DeJean$ pip install --upgrade git+ https://github.com/boto/boto.git Downloading/unpacking git+https://github.com/boto/boto.git Cloning https://github.com/boto/boto.git to /var/folders/ix/ixOWKQFlGdaSB7t1EBZ9mE+++TI/-Tmp-/pip-RX_z4X-build Cannot find command 'git' Storing complete log in /Users/DeJean/Library/Logs/pip.log

On Mon, Sep 24, 2012 at 7:23 PM, Urban Škudnik notifications@github.comwrote:

Hmm... this seems similar to issues I had when I started developing the utility and I had a wrong version of boto (non-develop branch)... This should work (but clearly doesn't; I'll take a look in near future) so if you can install developer branch of boto globally on your system try the following: pip install --upgrade git+https://github.com/boto/boto.gitand do tell if that helps

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8826908.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr] http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

offlinehacker commented 12 years ago

You need git installed on your system to use development branch.

jqdoumen commented 12 years ago

Git installed, then installed as you suggested, but still same result.

iMac:uskudnik-amazon-glacier-cmd-interface-ca74133 DeJean$ sudo pip install --upgrade git+https://github.com/boto/boto.git Password: Downloading/unpacking git+https://github.com/boto/boto.git Cloning https://github.com/boto/boto.git to /tmp/pip-rVQEHI-build Running setup.py egginfo for package from git+ https://github.com/boto/boto.git warning: no files found matching 'boto/mturk/test/.doctest' warning: no files found matching 'boto/mturk/test/.gitignore' Installing collected packages: boto Found existing installation: boto 2.6.0-dev Uninstalling boto: Successfully uninstalled boto Running setup.py install for boto warning: no files found matching 'boto/mturk/test/_.doctest' warning: no files found matching 'boto/mturk/test/.gitignore' changing mode of build/scripts-2.6/sdbadmin from 644 to 755 changing mode of build/scripts-2.6/elbadmin from 644 to 755 changing mode of build/scripts-2.6/cfadmin from 644 to 755 changing mode of build/scripts-2.6/s3put from 644 to 755 changing mode of build/scripts-2.6/fetch_file from 644 to 755 changing mode of build/scripts-2.6/launch_instance from 644 to 755 changing mode of build/scripts-2.6/list_instances from 644 to 755 changing mode of build/scripts-2.6/taskadmin from 644 to 755 changing mode of build/scripts-2.6/kill_instance from 644 to 755 changing mode of build/scripts-2.6/bundle_image from 644 to 755 changing mode of build/scripts-2.6/pyami_sendmail from 644 to 755 changing mode of build/scripts-2.6/lss3 from 644 to 755 changing mode of build/scripts-2.6/cq from 644 to 755 changing mode of build/scripts-2.6/route53 from 644 to 755 changing mode of build/scripts-2.6/s3multiput from 644 to 755 changing mode of build/scripts-2.6/cwutil from 644 to 755 changing mode of build/scripts-2.6/instance_events from 644 to 755 changing mode of build/scripts-2.6/asadmin from 644 to 755 changing mode of build/scripts-2.6/glacier from 644 to 755 changing mode of /usr/local/bin/asadmin to 755 changing mode of /usr/local/bin/bundle_image to 755 changing mode of /usr/local/bin/cfadmin to 755 changing mode of /usr/local/bin/cq to 755 changing mode of /usr/local/bin/cwutil to 755 changing mode of /usr/local/bin/elbadmin to 755 changing mode of /usr/local/bin/fetch_file to 755 changing mode of /usr/local/bin/glacier to 755 changing mode of /usr/local/bin/instance_events to 755 changing mode of /usr/local/bin/kill_instance to 755 changing mode of /usr/local/bin/launch_instance to 755 changing mode of /usr/local/bin/list_instances to 755 changing mode of /usr/local/bin/lss3 to 755 changing mode of /usr/local/bin/pyami_sendmail to 755 changing mode of /usr/local/bin/route53 to 755 changing mode of /usr/local/bin/s3multiput to 755 changing mode of /usr/local/bin/s3put to 755 changing mode of /usr/local/bin/sdbadmin to 755 changing mode of /usr/local/bin/taskadmin to 755 Successfully installed boto Cleaning up...

iMac:uskudnik-amazon-glacier-cmd-interface-ca74133 DeJean$ glacier vaults Traceback (most recent call last): File "/usr/local/bin/glacier", line 154, in main() File "/usr/local/bin/glacier", line 142, in main list_vaults(region, access_key, secret_key) File "/usr/local/bin/glacier", line 94, in list_vaults layer2 = connect(region, access_key, secret_key) File "/usr/local/bin/glacier", line 90, in connect debug=debug_level) File "/Library/Python/2.6/site-packages/boto/glacier/init.py", line 56, in connect_to_region return region.connect(_kw_params) File "/Library/Python/2.6/site-packages/boto/regioninfo.py", line 63, in connect return self.connection_cls(region=self, _kw_params) File "/Library/Python/2.6/site-packages/boto/glacier/layer2.py", line 38, in init self.layer1 = Layer1(_args, *_kwargs) File "/Library/Python/2.6/site-packages/boto/glacier/layer1.py", line 63, in init suppress_consec_slashes) File "/Library/Python/2.6/site-packages/boto/connection.py", line 548, in init host, config, self.provider, self._required_auth_capability()) File "/Library/Python/2.6/site-packages/boto/auth.py", line 633, in get_auth_handler 'Check your credentials' % (len(names), str(names))) boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials

On Mon, Sep 24, 2012 at 10:52 PM, Jaka Hudoklin notifications@github.comwrote:

You need git installed on your system.

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8834277.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

uskudnik commented 12 years ago

We are not sure at the moment what is causing this for multiple users but one explanation is that boto is to be blamed since they started including their own command line utility which is overriding ours (https://github.com/boto/boto/issues/1015) - the issue is being looked at and and I hope to have some update ASAP.

offlinehacker commented 12 years ago

Will be fixed, as soon as we merge, stay tuned.

uskudnik commented 12 years ago

Merged. On 25 Sep 2012 13:46, "Jaka Hudoklin" notifications@github.com wrote:

Will be fixed, as soon as we merge, stay tuned.

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8851266.

offlinehacker commented 12 years ago

I think we should close this, except if @jqdoumen has something to say?

jqdoumen commented 12 years ago

Hmmm ... doesn't seem to work yet for me ... I re-installed boto, should I also reinstall glacier?

On Tue, Sep 25, 2012 at 4:38 PM, Jaka Hudoklin notifications@github.comwrote:

I think we should close this, except if @jqdoumenhttps://github.com/jqdoumenhas something to say?

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8856490.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

uskudnik commented 12 years ago

Yup (actually, glacier would be enough)

On Sep 25, 2012, at 18:30 , jqdoumen notifications@github.com wrote:

Hmmm ... doesn't seem to work yet for me ... I re-installed boto, should I also reinstall glacier?

On Tue, Sep 25, 2012 at 4:38 PM, Jaka Hudoklin notifications@github.comwrote:

I think we should close this, except if @jqdoumenhttps://github.com/jqdoumenhas something to say?

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8856490.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen — Reply to this email directly or view it on GitHub.

jqdoumen commented 12 years ago

OK, I also re-installed glacier, and now it is working.

Thanks !!!

On Tue, Sep 25, 2012 at 6:29 PM, Jan DOUMEN jan.doumen@gmail.com wrote:

Hmmm ... doesn't seem to work yet for me ... I re-installed boto, should I also reinstall glacier?

On Tue, Sep 25, 2012 at 4:38 PM, Jaka Hudoklin notifications@github.comwrote:

I think we should close this, except if @jqdoumenhttps://github.com/jqdoumenhas something to say?

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/34#issuecomment-8856490.

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr] http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen

Jan Doumen

This slow-burning country has more history, art, food and architecture packed into its tiny self than many of its bigger, louder neighbors. A rich and bubbling vat of beer, chocolate, oil paint and bureaucrats.

The Lonely Planet about Belgium

Follow me: [image: Facebook] http://www.facebook.com/jan.doumen [image: Twitter] http://www.twitter.com/DeJeanDOumen [image: LinkedIn]http://be.linkedin.com/in/jandoumen [image: Blogger] http://dejean.blogspot.com/ [image: devianArt]http://dejean.deviantart.com/ [image: Google Plus] https://plus.google.com/114059910845203446151 [image: Tumblr]http://dejean.tumblr.com Contact me: [image: Google Talk] jan.doumen [image: Skype] jan.doumen