OSError: [Errno 2] No such file or directory

Bug #620163 reported by dobu
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned
Déjà Dup
Invalid
Undecided
Unassigned

Bug Description

Neither the automatic Backup, nor a manual backup work. They fail with the error, in the logfile.

when started in terminal, I get the following output:
-----------------------
[user@user-laptop ~]$ deja-dup
** (deja-dup:3940): CRITICAL **: deja_dup_duplicity_cmp_prefix: assertion `b != NULL' failed

[snip] Repeated about 10 times...

** (deja-dup:3940): CRITICAL **: deja_dup_duplicity_cmp_prefix: assertion `b != NULL' failed
** (deja-dup:3940): DEBUG: DuplicityInstance.vala:199: Running the following duplicity (3943) command: duplicity collection-status --exclude=/media/externalHDD/Backup user/deja-dup --exclude=/home/user/.config --exclude=/home/user/.local --exclude=/home/user/Dropbox --exclude=/home/user/.cache --exclude=/home/user/.dropbox-dist --exclude=/home/user/.dropbox --exclude=/home/user/.Private --exclude=/home/user/.recent-applications.xbel --exclude=/home/user/.recently-used.xbel --exclude=/home/user/.xsession-errors --exclude=/home/user/.gvfs --exclude=/home/user/.thumbnails --exclude=/home/user/.cache --include=/home/user --exclude=/home/user --exclude=/sys --exclude=/proc --exclude=/tmp --exclude=** --gio file:///media/externalHDD/Backup%20user/deja-dup --verbosity=9 --gpg-options= --archive-dir=/home/user/.cache/deja-dup --log-file=/tmp/deja-dup-2VNFHV

** (deja-dup:3940): DEBUG: DuplicityInstance.vala:552: duplicity (3943) exited with value 0

** (deja-dup:3940): DEBUG: DuplicityInstance.vala:199: Running the following duplicity (3960) command: duplicity --exclude=/media/externalHDD/Backup user/deja-dup --exclude=/home/user/.config --exclude=/home/user/.local --exclude=/home/user/Dropbox --exclude=/home/user/.cache --exclude=/home/user/.dropbox-dist --exclude=/home/user/.dropbox --exclude=/home/user/.Private --exclude=/home/user/.recent-applications.xbel --exclude=/home/user/.recently-used.xbel --exclude=/home/user/.xsession-errors --exclude=/home/user/.gvfs --exclude=/home/user/.thumbnails --exclude=/home/user/.cache --include=/home/user --exclude=/home/user --exclude=/sys --exclude=/proc --exclude=/tmp --exclude=** --dry-run --gio --volsize=30 / file:///media/externalHDD/Backup%20user/deja-dup --verbosity=9 --gpg-options= --archive-dir=/home/user/.cache/deja-dup --log-file=/tmp/deja-dup-CGF7GV

** (deja-dup:3940): DEBUG: DuplicityInstance.vala:552: duplicity (3960) exited with value 31
-------------------------------

if you need additional information, feel free to contact me :-)

Revision history for this message
dobu (general-db) wrote :
Revision history for this message
dobu (general-db) wrote :

errr... my title got a wrong copy/paste :-) should be:

OSError: [Errno 2] No such file or directory

Revision history for this message
dobu (general-db) wrote :

oh. forgot
rpm -q duplicity deja-dup

deja-dup-14.2-2.fc13.x86_64
duplicity-0.6.08b-1.fc13.x86_64
--------------
lsb_release -d

Description: Fedora release 13 (Goddard)

description: updated
summary: - ERROR 30 OSErrorexited with value 31
+ OSError: [Errno 2] No such file or directory
Revision history for this message
dobu (general-db) wrote :

strange. fixed itself somehow. works now flawlessly... o.O

Revision history for this message
Michael Terry (mterry) wrote :

Oh... Odd. But good? I'll leave this open for a little bit in case it reappears. The log shows you got the error while GPG was trying to encrypt or decrypt something... I've never seen this particular error before.

Revision history for this message
Mathijs Maertens (mathijs-maertens) wrote :

I'm seeing the same error "OSError: [Errno 2] No such file or directory"

The initial backup works fine (I backup to amazon S3) but then the next backup fails:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1239, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1232, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1133, in main
    sync_archive()
  File "/usr/bin/duplicity", line 945, in sync_archive
    remove_local(fn)
  File "/usr/bin/duplicity", line 860, in remove_local
    os.unlink(del_name)
OSError: [Errno 2] No such file or directory: '/home/mm/.cache/deja-dup/5484c27393b75a6f4b12e07106d95f22/duplicity-full-signatures.20100822T220028Z.sigtar.gz'

Revision history for this message
Mathijs Maertens (mathijs-maertens) wrote :

this is the first time I'm filing a bug on launchpad, hopefully I'm doing this right, here is extra info:

Package: duplicity
Version: 0.6.08b-0ubuntu2

Package: deja-dup
Version: 14.2-0ubuntu0.1

Revision history for this message
Michael Terry (mterry) wrote :

Mathijs, you're doing fine. :) One thing to try is to run the following command:

rm -r ~/.cache/deja-dup

And then try backing up again. It deletes the local cache of all your backup metadata. It will be re-downloaded the next time you try to backup, so it will take a little longer.

Revision history for this message
Michael Terry (mterry) wrote :

Ken, I'm adding a duplicity task. I don't know what the cause of this is yet, but I suspect that os.unlink call should ignore File-not-found errors.

Revision history for this message
Mathijs Maertens (mathijs-maertens) wrote :

thanks, I've cleared the cash and the initial backup started over. Since this was about 50GB, for testing I reduced it to a selection with 50MB, now the problem is gone.

I had the problem twice with the 50GB selection, so I suspect one of my files or paths is causing the error. I'll try to isolate what this is. (most of the data is coming from an external USB HD)

Revision history for this message
Mathijs Maertens (mathijs-maertens) wrote :

the cache, not the cash ; p

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

I just pushed a fix to the repo that should fix the problem. Instead of erroring out, it just puts out a warning if the file cannot be deleted for whatever reason.

Changed in duplicity:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 0.6.12
Changed in duplicity:
status: Fix Committed → Fix Released
Michael Terry (mterry)
Changed in deja-dup:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.