Forum archive
TKLBAM-backup error can't connect to host
Backups (daily) worked fine for months, nothing changed and now 4 servers say when running tklbam-backup:
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 266, in <module>
main()
File "/usr/bin/tklbam-backup", line 195, in main
conf.profile = get_profile(hb)
File "/usr/bin/tklbam-backup", line 122, in get_profile
new_profile = hb.get_new_profile(turnkey_version, profile_timestamp)
File "/usr/lib/tklbam/hub.py", line 205, in get_new_profile
response = self._api('GET', 'archive/timestamp/', attrs)
File "/usr/lib/tklbam/hub.py", line 183, in _api
return API.request(method, self.API_URL + uri, attrs, headers)
File "/usr/lib/tklbam/hub.py", line 115, in request
func(attrs)
File "/usr/lib/python2.6/dist-packages/pycurl_wrapper.py", line 55, in get
return self._perform()
File "/usr/lib/python2.6/dist-packages/pycurl_wrapper.py", line 40, in _perform
self.c.perform()
pycurl.error: (7, "couldn't connect to host")
No proxy, no firewall rule changes,...
The Hub's frontend IP was changed a few days ago, so my guess is the DNS servers you are using have not updated their cache. In general, I recommend using Googles public DNS service: 8.8.8.8, 8.8.4.4
The new Hub's IP address is 23.21.244.168 - you can use that to test your server is getting the correct IP. But do not hardcode that in your hosts file, that's what DNS is for:
I hope the above helps. If you still have issues please post back.
BTW, we took very careful care before the change to reduce the Hub records TTL to the minimum, wait over 24 hours for propagation to happen, and only then make the change.