uskudnik / amazon-glacier-cmd-interface

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

boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials #37

Closed leezu closed 11 years ago

leezu commented 11 years ago

Hey there,

I'm struggling with the error above. I tried giving glacier the credentials in several different ways:

via a .glacier file, via the access_key and secret_key etc commands and via the environment variables.

I'm always getting that error, but the credentials are correct.

I installed glacier by cloning the repository and then issuing a sudo python2 ./setup.py

This is the complete traceback:

Traceback (most recent call last): File "/usr/bin/glacier", line 5, in pkg_resources.run_script('boto==2.6.0', 'glacier') File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1239, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/EGG-INFO/scripts/glacier", line 154, in main() File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/EGG-INFO/scripts/glacier", line 150, in main upload_files(args[0], args[1:], region, access_key, secret_key) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/EGG-INFO/scripts/glacier", line 105, in upload_files layer2 = connect(region, access_key, secret_key) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/EGG-INFO/scripts/glacier", line 90, in connect debug=debug_level) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/boto/glacier/init.py", line 56, in connect_to_region return region.connect(_kw_params) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/boto/regioninfo.py", line 63, in connect return self.connection_cls(region=self, _kw_params) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/boto/glacier/layer2.py", line 38, in init self.layer1 = Layer1(_args, *_kwargs) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/boto/glacier/layer1.py", line 63, in init suppress_consec_slashes) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.egg/boto/connection.py", line 548, in init host, config, self.provider, self._required_auth_capability()) File "/usr/lib/python2.7/site-packages/boto-2.6.0-py2.7.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

uskudnik commented 11 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 11 years ago

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

uskudnik commented 11 years ago

Merged. On 25 Sep 2012 13:43, "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/37#issuecomment-8851208.

offlinehacker commented 11 years ago

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

leezu commented 11 years ago

works fine now, thanks :)