Script freezes
kyrie26 opened this issue · 2 comments
Can anyone help me? I'm trying to run automated snapshots of an EC2 instance volume.
I'm following the guide at [http://www.coresoftwaregroup.com/blog/automated-amazon-ebs-volume-snapshots-with-boto] and I'm pretty sure I got all the config info correct. When I run it on the command line using "python makesnapshots.py day", it hangs. When I hit Ctrl-C to interrupt it, this is what I see (pasted below). The logfile for this script just says it started but doesn't get past that. What could it be?
ubuntu@ip-10-28-249-183:~/aws-snapshot-tool$ sudo python makesnapshots.py day
^CTraceback (most recent call last):
File "makesnapshots.py", line 100, in
vols = conn.get_all_volumes(filters={config['tag_name']: config['tag_value']})
File "/usr/lib/python2.7/dist-packages/boto/ec2/connection.py", line 1309, in get_all_volumes
[('item', Volume)], verb='POST')
File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 882, in get_list
response = self.make_request(action, params, path, verb)
File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 868, in make_request
return self._mexe(http_request)
File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 785, in _mexe
time.sleep(next_sleep)
KeyboardInterrupt
Appreciate anyone who can help !!
Did you already solve this problem ?
Yes, solved, my bad....