duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #03440
Re: [Question #288602]: Duplicity backup with gpg failing
Question #288602 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/288602
Description changed to:
Hello,
I am trying to make a backup using Duplicity. I generate the key, I can
start the first backup, but this backup fails after few successfully
backup parts for lost connection (which doesn't make sense - the
connection is reliable and SSH has keepTimeAlive set to 100s).
Anyway, when I want to restart the backup again, it never runs - it
fails on gpg verification, even though it's nonsense (I am using still
the same key, same command)...
I have tried it twice with new set of keys, but still the same result.
Weird think is that when I generate the key and then run the script, it
doesn't ask for a passphrase. But on a second run it does.
Here is my backup script:
[code]
#!/bin/sh
$(which duplicity) -v5 --encrypt-key 6B5xxxx2 --exclude-filelist=bckp_excl.txt / scp://backup_server//scratch/backups
[/code]
and here is a log with failure and consequent run
[code]
... # processing successfully 109 packages
Processed volume 109
A var/www/backupfile1
AsyncScheduler: running task synchronously (asynchronicity disabled)
Writing duplicity-full.20160311T125754Z.vol110.difftar.gpg
Deleting /tmp/duplicity-U_zDe3-tempdir/mktemp-v9KW4U-111
AsyncScheduler: task completed successfully
Processed volume 110
A var/www/backupfile2
AsyncScheduler: running task synchronously (asynchronicity disabled)
Writing duplicity-full.20160311T125754Z.vol111.difftar.gpg
ssh: Socket exception: Connection timed out (110)
Attempt 1 failed. BackendException: scp execution failed: [Errno 110] Connection timed out
Writing duplicity-full.20160311T125754Z.vol111.difftar.gpg
Attempt 2 failed. BackendException: scp execution failed: SSH session not active
Writing duplicity-full.20160311T125754Z.vol111.difftar.gpg
Attempt 3 failed. BackendException: scp execution failed: SSH session not active
Writing duplicity-full.20160311T125754Z.vol111.difftar.gpg
Attempt 4 failed. BackendException: scp execution failed: SSH session not active
Writing duplicity-full.20160311T125754Z.vol111.difftar.gpg
Giving up after 5 attempts. BackendException: scp execution failed: SSH session not active
$ smecpi backup_scripts # ./duplicity_kmlinux.sh
Using archive dir: /root/.cache/duplicity/398ebcb7d13ac2c3b9b754e00d4e667e
Using backup name: 398ebcb7d13ac2c3b9b754e00d4e667e
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.b2backend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend SucceededLocal and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No old backup sets found, nothing deleted.
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
ssh: Connected (version 2.0, client OpenSSH_6.6.1)
ssh: Authentication (publickey) successful!
Reading globbing filelist bckp_excl.txt
Main action: inc
================================================================================
duplicity 0.7.06 (December 07, 2015)
Args: /usr/bin/duplicity -v5 --encrypt-key 6B5xxxx2 --exclude-filelist=bckp_excl.txt / scp://backup_server//scratch/home/hnykdan1/dtfiles
Linux smecpi 4.1.19-3-ARCH #1 Mon Mar 7 20:04:37 MST 2016 armv6l
/usr/bin/python2 2.7.11 (default, Mar 6 2016, 12:21:48)
[GCC 5.3.0]
================================================================================
Using temporary directory /tmp/duplicity-eqTw6B-tempdir
Temp has 251637760 available, backup will use approx 34078720.
Local and Remote metadata are synchronized, no sync needed.
Last full backup left a partial set, restarting.
Last full backup date: Fri Mar 11 13:57:54 2016
PASSPHRASE variable not set, asking user.
GnuPG passphrase:
RESTART: Volumes 110 to 111 failed to upload before termination.
Restarting backup at volume 110.
GPG error detail: Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1380, in main
do_backup(action)
File "/usr/bin/duplicity", line 1496, in do_backup
full_backup(col_stats)
File "/usr/bin/duplicity", line 567, in full_backup
globals.backend)
File "/usr/bin/duplicity", line 380, in write_multivol
validate_encryption_settings(globals.restart.last_backup, mf)
File "/usr/bin/duplicity", line 368, in validate_encryption_settings
fileobj.close()
File "/usr/lib/python2.7/site-packages/duplicity/dup_temp.py", line 226, in close
assert not self.fileobj.close()
File "/usr/lib/python2.7/site-packages/duplicity/gpg.py", line 259, in close
self.gpg_failed()
File "/usr/lib/python2.7/site-packages/duplicity/gpg.py", line 226, in gpg_failed
raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: encrypted with 2048-bit RSA key, ID 6B5xxx2, created 2016-03-11
"Daniel Hnyk <hnykda@xxxxxxxxx>"
gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
===== End GnuPG log =====
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: encrypted with 2048-bit RSA key, ID 6B57xxx2, created 2016-03-11
"Daniel Hnyk <hnykda@xxxxxxxxx>"
gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
===== End GnuPG log =====
[/code]
I am running up-to-date ArchLinux.
--
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.