After upgrading to Ubuntu 14.04 from 13.10, Duplicity cannot backup files. The location it will backup and the location to backup have both Russian characters in path. I believe this is the reason of the problem.
After failure, duplicity shows this log:
------------------------------
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1494, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1488, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1337, in main
do_backup(action)
File "/usr/bin/duplicity", line 1470, in do_backup
incremental_backup(sig_chain)
File "/usr/bin/duplicity", line 637, in incremental_backup
globals.backend)
File "/usr/bin/duplicity", line 424, in write_multivol
(tdp, dest_filename, vol_num)))
File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 145, in schedule_task
return self.__run_synchronously(fn, params)
File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 171, in __run_synchronously
ret = fn(*params)
File "/usr/bin/duplicity", line 423, in <lambda>
async_waiters.append(io_scheduler.schedule_task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num),
File "/usr/bin/duplicity", line 314, in put
backend.put(tdp, dest_filename)
File "/usr/lib/python2.7/dist-packages/duplicity/backends/giobackend.py", line 145, in put
self.copy_file('put', source_file, target_file)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 330, in iterate
return fn(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/duplicity/backends/giobackend.py", line 130, in copy_file
log.Info(_("Writing %s") % target.get_parse_name())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 36: ordinal not in range(128)
After upgrading to Ubuntu 14.04 from 13.10, Duplicity cannot backup files. The location it will backup and the location to backup have both Russian characters in path. I believe this is the reason of the problem.
After failure, duplicity shows this log: ------- ------- ------- -- duplicity" , line 1494, in <module> tempdir( main) duplicity" , line 1488, in with_tempdir duplicity" , line 1337, in main backup( action) duplicity" , line 1470, in do_backup _backup( sig_chain) duplicity" , line 637, in incremental_backup backend) duplicity" , line 424, in write_multivol python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 145, in schedule_task run_synchronous ly(fn, params) python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 171, in __run_synchronously duplicity" , line 423, in <lambda> waiters. append( io_scheduler. schedule_ task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num), duplicity" , line 314, in put put(tdp, dest_filename) python2. 7/dist- packages/ duplicity/ backends/ giobackend. py", line 145, in put copy_file( 'put', source_file, target_file) python2. 7/dist- packages/ duplicity/ backend. py", line 330, in iterate python2. 7/dist- packages/ duplicity/ backends/ giobackend. py", line 130, in copy_file Info(_( "Writing %s") % target. get_parse_ name())
-------
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
incremental
File "/usr/bin/
globals.
File "/usr/bin/
(tdp, dest_filename, vol_num)))
File "/usr/lib/
return self.__
File "/usr/lib/
ret = fn(*params)
File "/usr/bin/
async_
File "/usr/bin/
backend.
File "/usr/lib/
self.
File "/usr/lib/
return fn(*args, **kwargs)
File "/usr/lib/
log.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 36: ordinal not in range(128)
------- ------- ------- ------- --- stackoverflow. com/questions/ 9644099/ python- ascii-codec- cant-decode- byte
I believe the related script shall be fixed with "u" prefix, as explained here:
http://
Ozgur
ProblemType: Bug ature: Ubuntu 3.13.0- 24.46-generic 3.13.9
DistroRelease: Ubuntu 14.04
Package: duplicity 0.6.23-1ubuntu4
ProcVersionSign
Uname: Linux 3.13.0-24-generic i686
ApportVersion: 2.14.1-0ubuntu3
Architecture: i386
CurrentDesktop: Unity
Date: Tue Apr 29 01:37:39 2014
SourcePackage: duplicity
UpgradeStatus: Upgraded to trusty on 2014-04-18 (10 days ago)