fails when backing up to remote dir w/ lots of files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Fix Released
|
Medium
|
Michael Terry |
Bug Description
I'm trying to use ssh to backup to a remote directory where lots of filess (from duplicity) already exist.
The GUI puts the following on stdout/stderr while running:
** (deja-dup:10925): DEBUG: Duplicity.vala:154: Running the following duplicity command: ionice -c3 duplicity --exclude=
** (deja-dup:10925): DEBUG: Duplicity.vala:470: duplicity exited with value 30
** (deja-dup:10925): DEBUG: Duplicity.vala:154: Running the following duplicity command: ionice -c3 duplicity --exclude=
** (deja-dup:10925): DEBUG: Duplicity.vala:470: duplicity exited with value 30
1. I find it strange that --dry-run failed, but it still tried to do a backup. The GUI displayed "unknown error" after this was done.
2. Running the --dry-run command by hand, I see that duplicity is timing out:
Running 'sftp -oStrictHostKey
State = sftp, Before = 'Connecting to filer...'
sftp command: 'mkdir /mnt/primary/
State = sftp, Before = 'mkdir /mnt/primary/
Couldn't create directory: Failure'
sftp command: 'cd /mnt/primary/
State = sftp, Before = 'cd /mnt/primary/
sftp command: 'ls -1'
State = sftp, Before = 'ls -1'
Timeout waiting for response
Running 'sftp -oStrictHostKey
Giving up trying to execute 'sftp -oStrictHostKey
Using temporary directory /tmp/duplicity-
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
globals.
File "/usr/lib/
backend_
File "/usr/lib/
l = self.run_
File "/usr/lib/
raise BackendExceptio
BackendException: Error running 'sftp -oStrictHostKey
Thanks for the bug report!
You're right that a failure to --dry-run should probably be reported. I'm curious why that would have failed, because it shouldn't do any network connection and thus wouldn't be able to time out.
I see that when you ran duplicity manually, it said:
sftp command: 'mkdir /mnt/primary/ blob/family/ mah/backup' blob/family/ mah/backup blob/family/ mah/backup' blob/family/ mah/backup'
State = sftp, Before = 'mkdir /mnt/primary/
Couldn't create directory: Failure'
sftp command: 'cd /mnt/primary/
State = sftp, Before = 'cd /mnt/primary/
sftp command: 'ls -1'
State = sftp, Before = 'ls -1'
Timeout waiting for response
Looks like it couldn't create a directory? Are the permissions OK? I assume you can ssh just fine into that machine (i.e. a timeout is certainly unexpected)?
If you want to see exactly what Déjà Dup does when it runs duplicity, run it with the environment variable DEJA_DUP_DEBUG set to 1. This will generate lots of spew, but only the ending exception from duplicity will be of interest. What does that say? (Presumably the same exception as when you ran it manually, but I'm curious what happened when the dry run occurred -- it shouldn't have been the same error, as it never connected).
Thank you!