Deja-dup always fails to backup to u1 on OSError: No such file or directory: '/tmp/duplicity-7ynjzg-tempdir/tmpXnMr4f'

Bug #1298379 reported by Marco Trevisan (Treviño)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Won't Fix
Undecided
Unassigned
deja-dup (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

After some time it runs, dejadup fails on

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1493, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1487, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1336, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1462, in do_backup
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 542, in full_backup
    globals.backend)
  File "/usr/bin/duplicity", line 403, in write_multivol
    globals.gpg_profile, globals.volsize)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 324, in GPGWriteFile
    file = GPGFile(True, path.Path(filename), profile)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 105, in __init__
    self.logger_fp = tempfile.TemporaryFile( dir=tempdir.default().dir() )
  File "/usr/lib/python2.7/tempfile.py", line 493, in TemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/tmp/duplicity-7ynjzg-tempdir/tmpXnMr4f'

Update:
Looking at my system, it seems that the temporary folder that deja-dup is looking for is inside /home/marco/.cache/deja-dup/8cf8eb6c99f325880c12faa64552cfcd instead that in /tmp

So a prefix issue?

ProblemType: BugDistroRelease: Ubuntu 14.04
Package: deja-dup 29.5-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Mar 27 14:15:02 2014
InstallationDate: Installed on 2010-07-10 (1356 days ago)InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)SourcePackage: deja-dup
UpgradeStatus: Upgraded to trusty on 2012-10-10 (533 days ago)

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
description: updated
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Download full text (3.7 KiB)

So, finally it finished again to do his "first" backup and at the end I'm getting:

DUPLICITY: INFO 11
DUPLICITY: . AsyncScheduler: esecuzione sincrona dell'attività (asincronia disabilitata)

DUPLICITY: INFO 1
DUPLICITY: . making GET request to https://one.ubuntu.com/api/file_storage/v1/~/deja-dup/tricky/duplicity-full.20140327T160646Z.vol47.difftar.gpg (attempt 1)

DUPLICITY: INFO 1
DUPLICITY: . completed request with status 404 NOT FOUND

DUPLICITY: INFO 1
DUPLICITY: . making PUT request to https://one.ubuntu.com/api/file_storage/v1/~/deja-dup/tricky/duplicity-full.20140327T160646Z.vol47.difftar.gpg (attempt 1)

DUPLICITY: INFO 1
DUPLICITY: . completed request with status 200 OK

DUPLICITY: INFO 1
DUPLICITY: . uploading file duplicity-full.20140327T160646Z.vol47.difftar.gpg to location https://files.one.ubuntu.com/content/~/deja-dup/tricky/duplicity-full.20140327T160646Z.vol47.difftar.gpg

DUPLICITY: INFO 1
DUPLICITY: . making PUT request to https://files.one.ubuntu.com/content/~/deja-dup/tricky/duplicity-full.20140327T160646Z.vol47.difftar.gpg (attempt 1)

DUPLICITY: INFO 1
DUPLICITY: . completed request with status 201 CREATED

DUPLICITY: INFO 1
DUPLICITY: . making GET request to https://one.ubuntu.com/api/file_storage/v1/~/deja-dup/tricky/duplicity-full.20140327T160646Z.vol47.difftar.gpg (attempt 1)

DUPLICITY: INFO 1
DUPLICITY: . completed request with status 200 OK

DUPLICITY: INFO 1
DUPLICITY: . Eliminazione di /tmp/duplicity-8u4Jtq-tempdir/mktemp-HKj0wZ-48

DUPLICITY: DEBUG 1
DUPLICITY: . File temporaneo /tmp/duplicity-8u4Jtq-tempdir/mktemp-HKj0wZ-48 dimenticato

DUPLICITY: INFO 13
DUPLICITY: . AsyncScheduler: attività completata con successo

DUPLICITY: INFO 2 1376444438
DUPLICITY: . Processed volume 47

DUPLICITY: DEBUG 1
DUPLICITY: . Registrazione (mktemp) del file temporaneo /tmp/duplicity-8u4Jtq-tempdir/mktemp-Xo2GUK-49

DUPLICITY: DEBUG 1
DUPLICITY: . Releasing lockfile <lockfile.LinkFileLock instance at 0x7fb62b778290>

DUPLICITY: DEBUG 1
DUPLICITY: . Rimozione del file temporaneo /tmp/duplicity-8u4Jtq-tempdir/mkstemp-jfSf2p-1 ancora ricordato

DUPLICITY: DEBUG 1
DUPLICITY: . Rimozione del file temporaneo /tmp/duplicity-8u4Jtq-tempdir/mktemp-Xo2GUK-49 ancora ricordato

DUPLICITY: WARNING 1
DUPLICITY: . Pulizia della directory temporanea /tmp/duplicity-8u4Jtq-tempdir non riuscita - probabilmente si tratta di un bug.

DUPLICITY: ERROR 30 OSError
DUPLICITY: . Traceback (most recent call last):
DUPLICITY: . File "/usr/bin/duplicity", line 1493, in <module>
DUPLICITY: . with_tempdir(main)
DUPLICITY: . File "/usr/bin/duplicity", line 1487, in with_tempdir
DUPLICITY: . fn()
DUPLICITY: . File "/usr/bin/duplicity", line 1336, in main
DUPLICITY: . do_backup(action)
DUPLICITY: . File "/usr/bin/duplicity", line 1457, in do_backup
DUPLICITY: . full_backup(col_stats)
DUPLICITY: . File "/usr/bin/duplicity", line 542, in full_backup
DUPLICITY: . globals.backend)
DUPLICITY: . File "/usr/bin/duplicity", line 403, in write_multivol
DUPLICITY: . globals.gpg_profile, globals.volsize)
DUPLICITY: . File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 324, in GPGWriteFile
DUPLICITY: . file = GPGFil...

Read more...

Revision history for this message
shankao (shankao) wrote :

I think that U1 does not exist anymore, although this bug resembles #1348193 quite a lot. Maybe a duplicate?

Michael Terry (mterry)
Changed in deja-dup:
status: New → Won't Fix
Changed in deja-dup (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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