UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 37: ordinal not in range(128)

Bug #1769891 reported by Battant on 2018-05-08
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Déjà Dup
Undecided
Unassigned
deja-dup (Ubuntu)
Undecided
Unassigned

Bug Description

Hello

duplicity crash after backup because there is a python error

Step to reproduce.

1. Active developper option in software center
2. install the backup python pyckage
3. Lanch a backup with duplicity command

Result :

 Type of backup set: Time: Number of volumes:
                Full Tue Feb 20 22:00:34 2018 2284
         Incremental Thu Feb 22 03:26:48 2018 1
         Incremental Fri Feb 23 23:23:09 2018 42
         Incremental Wed Apr 4 15:54:05 2018 151
         Incremental Thu Apr 5 04:27:55 2018 1
         Incremental Sat Apr 14 21:51:41 2018 1
-------------------------
Also found 0 backup sets not part of any chain,
and 1 incomplete backup set.
These may be deleted by running duplicity with the "cleanup" command.
Registering (mktemp) temporary file /tmp/duplicity-hFkoYG-tempdir/mktemp-1HIleQ-2
Deleting /tmp/duplicity-hFkoYG-tempdir/mktemp-1HIleQ-2
Forgetting temporary file /tmp/duplicity-hFkoYG-tempdir/mktemp-1HIleQ-2
Processing remote manifest duplicity-inc.20180405T022755Z.to.20180414T195141Z.manifest (154)
Found manifest volume 1
Found 1 volumes in manifest
Registering (mktemp) temporary file /tmp/duplicity-hFkoYG-tempdir/mktemp-AW3xfd-3
Backtrace of previous error: Traceback (innermost last):
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in inner_retry
    return fn(self, *args)
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 556, in get
    "from backend") % util.ufn(local_path.name))
 BackendException: File /tmp/duplicity-hFkoYG-tempdir/mktemp-AW3xfd-3 not found locally after get from backend

Attempt 1 failed. BackendException: File /tmp/duplicity-hFkoYG-tempdir/mktemp-AW3xfd-3 not found locally after get from backend
Backtrace of previous error: Traceback (innermost last):
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 369, in inner_retry
    return fn(self, *args)
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 552, in get
    self.backend._get(remote_filename, local_path)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/giobackend.py", line 151, in _get
    self.__copy_file(source_file, target_file)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/giobackend.py", line 124, in __copy_file
    None, self.__copy_progress, None)
 Error: g-io-error-quark: Error opening file “/tmp/duplicity-hFkoYG-tempdir/mktemp-AW3xfd-3”: No such file or directory (1)

Releasing lockfile /home/username/.cache/deja-dup/078943ce1c0e98d4e44486ca87a6cdd8/lockfile
Removing still remembered temporary file /tmp/duplicity-hFkoYG-tempdir/mkstemp-useaK1-1
Removing still remembered temporary file /tmp/duplicity-hFkoYG-tempdir/mktemp-AW3xfd-3
Cleanup of temporary directory /tmp/duplicity-hFkoYG-tempdir failed - this is probably a bug.
Releasing lockfile /home/username/.cache/deja-dup/078943ce1c0e98d4e44486ca87a6cdd8/lockfile
Traceback (innermost last):
  File "/usr/bin/duplicity", line 1555, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1541, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1393, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1523, in do_backup
    incremental_backup(sig_chain)
  File "/usr/bin/duplicity", line 658, in incremental_backup
    sig_chain.get_fileobjs())
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 539, in get_fileobjs
    return [filename_to_fileobj(f) for f in self.get_filenames(time)]
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 676, in get_fileobj_read
    self.get(filename, tdp)
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 392, in inner_retry
    util.uexc(e)), code=code, extra=extra)
  File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 79, in uexc
    return ufn(unicode(e).encode('utf-8'))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 37: ordinal not in range(128)

Releasing lockfile /home/username/.cache/deja-dup/078943ce1c0e98d4e44486ca87a6cdd8/lockfile

Note : this bug affect eclim and other python pyckages

http://eclim.org

Could you help me please to fix this issus

Best regards

Battant

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python2.7 2.7.15~rc1-1
ProcVersionSignature: Ubuntu 4.15.0-21.22-generic 4.15.17
Uname: Linux 4.15.0-21-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue May 8 14:11:35 2018
InstallationDate: Installed on 2018-04-29 (8 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: python2.7
UpgradeStatus: No upgrade log present (probably fresh install)

Battant (mparchet) wrote :
no longer affects: python
Herbert Eisenbeis (klassikmann) wrote :

Same error message here.
Reason: Target filesystem had been mounted r/o.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python2.7 (Ubuntu):
status: New → Confirmed
Antoine (sundava) on 2018-05-17
Changed in deja-dup:
status: New → Confirmed
Matthias Klose (doko) on 2018-05-17
affects: python2.7 (Ubuntu) → duplicity (Ubuntu)
affects: duplicity (Ubuntu) → deja-dup (Ubuntu)
Vej (vej) wrote :

Hello everyone.

I marked this bug as a duplicate, because the stacktrace is so close to the one of bug #1736164. Please feed additional informations not included in bug #1736164 to the comments of that bug.

Thanks

Vej

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers