Your message dated Tue, 05 Sep 2017 15:19:45 +0000
with message-id <[email protected]>
and subject line Bug#736280: fixed in backupninja 1.0.2-1
has caused the Debian Bug report #736280,
regarding backupninja: [dup] workaround duplicity bug #565398
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
736280: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736280
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: backupninja
Version: 1.0.1-1
Severity: normal
Dear Maintainer,
The duplicity backend is broken when the gpg ecryption is set up and the
system default locale is not english (or C).
The bug reports on duplicity are here :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565398
https://bugs.launchpad.net/duplicity/+bug/510625
From a mail report :
> == fatal errors from /etc/backup.d/90.dup ==
>
> Warning: Duplicity cleanup failed.
> Warning: Duplicity remove-older-than failed.
> Error: Les métadonnées locales et distantes sont déjà synchronisées. Aucune
> synchronisation nécessaire.
> Error: Traceback (most recent call last):
> Error: File "/usr/bin/duplicity", line 1404, in <module>
> Error: with_tempdir(main)
> Error: File "/usr/bin/duplicity", line 1397, in with_tempdir
> Error: fn()
> Error: File "/usr/bin/duplicity", line 1277, in main
> Error: globals.archive_dir).set_values()
> Error: File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line
> 691, in set_values
> Error: self.get_backup_chains(partials + backend_filename_list)
> Error: File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line
> 814, in get_backup_chains
> Error: map(add_to_sets, filename_list)
> Error: File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line
> 808, in add_to_sets
> Error: log.Debug(_("File %s is not part of a known set; creating new set") %
> (filename,))
> Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> 23: ordinal not in range(128)
> Fatal: Duplicity failed.
I tried to run backupninja with a different locale with the appropriate
environment variable invocations but duplicity failed the same way.
Without further investigation, I tried to patch the duplicity handler to
prefix every invocations of duplicity with LC_ALL=C and it fixed the
problem.
You will find my patch attached to this bugreport.
-- System Information:
Debian Release: 7.3
APT prefers stable
APT policy: (910, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages backupninja depends on:
ii bash 4.2+dfsg-0.1
ii bsd-mailx [mailx] 8.1.2-0.20111106cvs-1
ii dialog 1.1-20120215-2
ii mawk 1.3.3-17
backupninja recommends no packages.
Versions of packages backupninja suggests:
pn bzip2 <none>
ii debconf-utils 1.5.49
ii duplicity 0.6.18-3
pn genisoimage <none>
pn hwinfo <none>
pn mdadm <none>
pn rdiff-backup <none>
ii rsync 3.0.9-4
ii subversion 1.6.17dfsg-4+deb7u4
pn trickle <none>
pn wodim <none>
-- no debconf information
commit f4d8fa484baca111338fd12bf94995a48d745917
Author: Jonathan Dupart <[email protected]>
Date: Tue Jan 21 20:43:35 2014 +0100
dup: prefix every call to duplicity with LC_ALL=C
When used with gpg encryption and a non-C locale duplicity can fail on
characters outside ascii set in gpg output.
duplicity bug details are explained here :
https://bugs.launchpad.net/duplicity/+bug/510625
diff --git a/handlers/dup.in b/handlers/dup.in
index a67848f..2634916 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -116,7 +116,7 @@ else
fi
### duplicity version (ignore anything else than 0-9 and ".")
-duplicity_version="`duplicity --version | @AWK@ '{print $2}' | @SED@ 's/[^.[:digit:]]//g'`"
+duplicity_version="`LC_ALL=C duplicity --version | @AWK@ '{print $2}' | @SED@ 's/[^.[:digit:]]//g'`"
duplicity_major="`echo $duplicity_version | @AWK@ -F '.' '{print $1}'`"
duplicity_minor="`echo $duplicity_version | @AWK@ -F '.' '{print $2}'`"
duplicity_sub="`echo $duplicity_version | @AWK@ -F '.' '{print $3}'`"
@@ -281,13 +281,13 @@ fi
### Cleanup commands (duplicity >= 0.4.4)
# cleanup
-debug "$execstr_precmd duplicity cleanup --force $execstr_options $execstr_serverpart"
+debug "$execstr_precmd LC_ALL=C duplicity cleanup --force $execstr_options $execstr_serverpart"
if [ ! $test ]; then
export PASSPHRASE=$password
export FTP_PASSWORD=$ftp_password
output=`nice -n $nicelevel \
su -c \
- "$execstr_precmd duplicity cleanup --force $execstr_options $execstr_serverpart 2>&1"`
+ "$execstr_precmd LC_ALL=C duplicity cleanup --force $execstr_options $execstr_serverpart 2>&1"`
exit_code=$?
if [ $exit_code -eq 0 ]; then
debug $output
@@ -300,13 +300,13 @@ fi
# remove-older-than
if [ "$keep" != "yes" ]; then
- debug "$execstr_precmd duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart"
+ debug "$execstr_precmd LC_ALL=C duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart"
if [ ! $test ]; then
export PASSPHRASE=$password
export FTP_PASSWORD=$ftp_password
output=`nice -n $nicelevel \
su -c \
- "$execstr_precmd duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart 2>&1"`
+ "$execstr_precmd LC_ALL=C duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart 2>&1"`
exit_code=$?
if [ $exit_code -eq 0 ]; then
debug $output
@@ -322,13 +322,13 @@ fi
if [ "$keep" != "yes" ]; then
if [ "$keepincroffulls" != "all" ]; then
if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 10 ]; then
- debug "$execstr_precmd duplicity remove-all-inc-of-but-n-full $keepincroffulls --force $execstr_options $execstr_serverpart"
+ debug "$execstr_precmd LC_ALL=C duplicity remove-all-inc-of-but-n-full $keepincroffulls --force $execstr_options $execstr_serverpart"
if [ ! $test ]; then
export PASSPHRASE=$password
export FTP_PASSWORD=$ftp_password
output=`nice -n $nicelevel \
su -c \
- "$execstr_precmd duplicity remove-all-inc-of-but-n-full $keepincroffulls --force $execstr_options $execstr_serverpart 2>&1"`
+ "$execstr_precmd LC_ALL=C duplicity remove-all-inc-of-but-n-full $keepincroffulls --force $execstr_options $execstr_serverpart 2>&1"`
exit_code=$?
if [ $exit_code -eq 0 ]; then
debug $output
@@ -343,14 +343,14 @@ if [ "$keep" != "yes" ]; then
fi
### Backup command
-debug "$execstr_precmd duplicity $execstr_command $execstr_options $execstr_source --exclude '**' / $execstr_serverpart"
+debug "$execstr_precmd LC_ALL=C duplicity $execstr_command $execstr_options $execstr_source --exclude '**' / $execstr_serverpart"
if [ ! $test ]; then
outputfile=`maketemp backupout`
export PASSPHRASE=$password
export FTP_PASSWORD=$ftp_password
output=`nice -n $nicelevel \
su -c \
- "$execstr_precmd duplicity $execstr_command $execstr_options $execstr_source --exclude '**' / $execstr_serverpart >$outputfile 2>&1"`
+ "$execstr_precmd LC_ALL=C duplicity $execstr_command $execstr_options $execstr_source --exclude '**' / $execstr_serverpart >$outputfile 2>&1"`
exit_code=$?
debug $output
cat $outputfile | (while read output ; do
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: backupninja
Source-Version: 1.0.2-1
We believe that the bug you reported is fixed in the latest version of
backupninja, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
intrigeri <[email protected]> (supplier of updated backupninja package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 05 Sep 2017 12:01:25 +0000
Source: backupninja
Binary: backupninja
Architecture: source
Version: 1.0.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian backupninja maintainers <[email protected]>
Changed-By: intrigeri <[email protected]>
Closes: 683731 736280 745818 872100
Description:
backupninja - lightweight, extensible meta-backup system
Changes:
backupninja (1.0.2-1) unstable; urgency=medium
.
* Import new upstream release (Closes: #683731, #736280, #745818).
* Add backwards-compatible dependency on fdisk, that now ships sfdisk
(Closes: #872100).
* Update URLs for upstream website and Git repository.
* Drop debian/watch: upstream does not publish tarballs anymore.
* Bump debhelper compat level to 10, adjust versioned build-dependency
accordingly.
* Declare compatibility with Standards-Version 4.0.0.
* Fix typo in long description.
* Have dh_auto_configure pass arch-independent paths to --libdir
and --libexec.
* Don't (try to) install manpages ourselves: debhelper does it
automatically nowadays.
* Mangle /etc/backup.d permissions at build time rather than at postinst
time.
* Drop postinst maintainer script, that is now a no-op.
* Don't manually enable the autoreconf sequence anymore: since compatibility
level 10, debhelper does it for us.
* Drop build-dependency on dh-autoreconf: not needed with debhelper 10.
* Make /etc/backup.d 2770 instead of 0770, to be closer to what
Debian Policy 10.9 recommends.
* Override the debian-watch-file-is-missing Lintian flag: we can't
do anything about it.
* Override the non-standard-dir-perm Lintian flag for /etc/backup.d,
documenting why it is shipped this way.
* Override one (mistaken) spelling-error-in-description Lintian flag.
Checksums-Sha1:
1bb15ba79798efcc764bfe45942f7329e5b72f0c 2008 backupninja_1.0.2-1.dsc
59844d2b907a5ebf3b26f3d3f70ab6ed9e0f85f8 184329 backupninja_1.0.2.orig.tar.gz
a2b479d60f5fdce1496f191dcd0d8ddb1798e4c0 13424
backupninja_1.0.2-1.debian.tar.xz
Checksums-Sha256:
1d595781b1b20b728750a96825d54d5a14ca270ac7536484c24033c9b5eba6e0 2008
backupninja_1.0.2-1.dsc
fdb399de331493c8f959a784318349b19a01fbeece275da2ecd70ec9847a80b6 184329
backupninja_1.0.2.orig.tar.gz
63a98d6f39eb08fc39f7b1bd96d75b288df3bebd9d876798cb0deda57fe6671c 13424
backupninja_1.0.2-1.debian.tar.xz
Files:
27ad72f4135999c9097ce3dded285958 2008 admin optional backupninja_1.0.2-1.dsc
985967d16c9c1851c4dbe38ec9d9f1a5 184329 admin optional
backupninja_1.0.2.orig.tar.gz
3964b0e35fc8384e48636c1d28e78d04 13424 admin optional
backupninja_1.0.2-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEcMAxqZeuB0p8dimNy2kI2AAOzf4FAlmurWMACgkQy2kI2AAO
zf41ARAAhaSvw+7TmIKsKvcY2IyUWBUylK4LcevERe6iUWSRwT/sSp9g6mC1NP9e
DOVebfB0uQvlGoCOf2seKOYT/7LgWukXhV/4h3gtBkqfRDUSid2PN+5QOO8ZT+0q
8uLVApsx7HOYscspQOOdTRwP4AqucLZI9IHlSoUMx0dQjpYN+HrY7iZqxxG6nGV9
AhnRDr85dP3fSlOQwR+ridwajCf1liwSyYy1yHCr1FMwhUUSG242QrPXqQkzDTgM
WyJG6oKxowNkEZaXRbf7mfZQxA+QzFo8oZxvQxA/QYt6xUJs09cezjwf92/QjCI3
jQ4c9VfDBzIwdphIes6TTuja+PleBU53pJgT7R7vyyw6RHZjy3PF9pSGcxZNTRzB
AySxZ5jIMwoAQLmv8iUTy2afKGJ4ZnCk//R8KIiT4Uoo+yH+pndnpcWdfzvqjxUl
W2jKbm/yhEJaOfC6GQi+av1UCiGf40BUoes54eb1IRM+8guZLG3grgLvG4rr+RiC
X5gqdlUs3/6VQZ3PWda/1TNaS8G/pFh6rMbMUuAVRWVefUm45FaClRGEXk5dGXX8
I1x5S7oqEd/lvFZqk87y3HIKkg4qod5eMDgleRPdgCty1WmYsI0gZYWW5vcRNKxr
9QVeU6mKoBDjsqBJ2jWMtwoNfSwzJ7e2gPVesYL+iFV3hsp7Qfo=
=FlZs
-----END PGP SIGNATURE-----
--- End Message ---