Forum archive
tklbam - sslerror: The read operation timed out
I am trying to migrate my data from one Turnkey Linux virtural machine to another, much like the demonstration video. I made a backup of both my Turnkey Linux virtual machines, the backup feature works fine, the initial backup for the primary machine is 2GB in size. When I try to restore this backup on the new virtual machine (backing up on the new virtual machine via tklbam works fine) I get the following errors.
root@lamp:/usr/lib/tklbam# tklbam-restore 1
Restoring duplicity archive from s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Wed Oct 13 18:29:23 2010
Download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg failed (attempt #1, reason: sslerror: The read operation timed out)
Download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg failed (attempt #2, reason: sslerror: The read operation timed out)
Download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg failed (attempt #3, reason: sslerror: The read operation timed out)
Download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg failed (attempt #4, reason: sslerror: The read operation timed out)
Download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg failed (attempt #5, reason: error: (104, 'Connection reset by peer'))
Giving up trying to download s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg after 5 attempts
BackendException: Error downloading s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss/duplicity-full.20101013T182923Z.vol16.difftar.gpg
Traceback (most recent call last):
File "/usr/bin/tklbam-restore", line 287, in <module>
main()
File "/usr/bin/tklbam-restore", line 266, in main
rollback=not no_rollback)
File "/usr/lib/tklbam/restore.py", line 68, in __init__
backup_archive = self._duplicity_restore(address, credentials, secret, time)
File "/usr/lib/tklbam/restore.py", line 61, in _duplicity_restore
duplicity.Command(opts, address, tmpdir).run(secret, credentials)
File "/usr/lib/tklbam/duplicity.py", line 79, in run
raise Error("non-zero exitcode (%d) from backup command: %s" % (exitcode, str(self)))
duplicity.Error: non-zero exitcode (23) from backup command: duplicity --archive-dir=/var/cache/duplicity s3://s3.amazonaws.com/tklbam-t2vavueuk6x2nkss /tmp/tklbam-1ZyCss
I do not know if it matters, but one of the virtual machines is running on VirtualBox and the new virtual machine I am trying to restore on is on VMware Fusion. Thank you.
Seems like a known issue [1,2] in duplicity (the backend used by TKLBAM). The bug report references boto, the s3 backend used by duplicity, but I'm not sure - we'll have to do some investigation and testing.
I sent a note to Liraz (main author of TKLBAM) to see if he can reproduce the bug, and then issue a fix.
Do you constantly get the same error? Can you reproduce the issue on-demand?