uskudnik / amazon-glacier-cmd-interface

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

No address associated with hostname #63

Closed JanKraljic closed 11 years ago

JanKraljic commented 11 years ago

Hi,

i like the idea. I had cloned latest git master and install it. What did i missed?

~ /tmp/$ glacier-cmd lsvault Traceback (most recent call last): File "/usr/local/bin/glacier-cmd", line 9, in load_entry_point('glacier==0.2dev', 'console_scripts', 'glacier-cmd')() File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glacier.py", line 818, in main args.func(args) File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glacier.py", line 119, in lsvault response = glacierconn.list_vaults() File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glaciercorecalls.py", line 70, in list_vaults return self.make_request(method="GET", path='/-/vaults') File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glaciercorecalls.py", line 64, in make_request params=params) File "/usr/local/lib/python2.7/dist-packages/boto-2.6.0-py2.7.egg/boto/connection.py", line 910, in make_request return self._mexe(http_request, sender, override_num_retries) File "/usr/local/lib/python2.7/dist-packages/boto-2.6.0-py2.7.egg/boto/connection.py", line 872, in _mexe raise e socket.gaierror: [Errno -5] No address associated with hostname

wvmarle commented 11 years ago

This is not an exception from glacier-cmd, it's deeper down. More on this specific exception here http://docs.python.org/dev/library/socket.html#socket.gaierror

Sorry but I can't give you a more useful answer. I suspect an issue with your DNS settings, as that is what the message "no address associated with hostname" suggests.

JanKraljic commented 11 years ago

Wierd, all dns related things work. What is correct "region" configuration for Ireland? eu-west?

Thx

wvmarle commented 11 years ago

Region for Glacier should be one of: us-east-1 (US - Virginia) us-west-1 (US - N. California) us-west-2 (US - Oregon) eu-west-1 (EU - Ireland) ap-northeast-1 (Asia-Pacific - Tokyo)

So you that should be eu-west-1

Other Amazon services have more region options; this is what they currently have available for Glacier. The current code does not check on region name validity, this is in progress. Wrong region may indeed very well give this hostname error. I just tried with a non-existing host name and got a socket.error: [Errno 110] Connection timed out exception in the same module you had.

Wouter.

JanKraljic commented 11 years ago

Thx, that solved that problem. Now to next :(