Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201548 - app-backup/duplicity - remove-older-than fails due to format string error
Summary: app-backup/duplicity - remove-older-than fails due to format string error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 00:46 UTC by bdonlan
Modified: 2007-12-09 11:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Trivial fix (duplicity-0.4.6.fixdelete.patch,546 bytes, patch)
2007-12-07 00:54 UTC, bdonlan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bdonlan 2007-12-07 00:46:51 UTC
A call to log.Log is made with too many aruguments

Reproducible: Always

Steps to Reproduce:
1. Remove old backups from a s3+http repository.
2. Observe the crash

Actual Results:  
# duplicity remove-older-than now --force s3+http://bd_satoshi_backup
Current active backup chain is older than specified time.
However, it will not be deleted.  To remove all your backups,
manually purge the repository.
Deleting backup sets at times:
Thu Nov 15 21:19:05 2007
Fri Nov 16 00:09:20 2007
Sun Nov 18 00:09:06 2007
Mon Nov 19 00:09:12 2007
Tue Nov 20 00:09:06 2007
Wed Nov 21 00:09:11 2007
Thu Nov 22 00:09:12 2007
Fri Nov 23 00:09:06 2007
Sat Nov 24 00:09:05 2007
Sun Nov 25 00:09:06 2007
Sun Nov 25 21:22:25 2007
Mon Nov 26 00:09:08 2007
Tue Nov 27 00:09:08 2007
Wed Nov 28 00:09:07 2007
Thu Nov 29 00:09:10 2007
Fri Nov 30 00:09:09 2007
Sat Dec  1 00:09:05 2007
Mon Dec  3 00:09:11 2007
Tue Dec  4 00:09:07 2007
Wed Dec  5 00:09:06 2007
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 421, in ?
    if __name__ == "__main__": main()
  File "/usr/bin/duplicity", line 406, in main
    elif action == "remove-old": remove_old(col_stats)
  File "/usr/bin/duplicity", line 349, in remove_old
    for set in setlist: set.delete()
  File "/usr/lib64/python2.4/site-packages/duplicity/collections.py", line 105, in delete
    self.backend.delete(l)
  File "/usr/lib64/python2.4/site-packages/duplicity/backends.py", line 776, in delete
    log.Log("Deleted %s/%s" % (self.straight_url, filename, filename), 9)
TypeError: not all arguments converted during string formatting



Portage 2.1.3.19 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.16.29-xen x86_64)
=================================================================
System uname: 2.6.16.29-xen x86_64 Dual-Core AMD Opteron(tm) Processor 2212 HE
Timestamp of tree: Fri, 07 Dec 2007 00:00:04 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=opteron -mtune=opteron"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=opteron -mtune=opteron"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/
local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 async bitmap-fonts bzip2 ccache cgi cjk cli cracklib crypt curl curlwrappers dri fam fastcgi flac fontconfig fortran gd gd-external gdbm gnutls gpm iconv ip
v6 isdnlog midi mudflap ncurses nethack nls nptl nptlonly ogg openmp pam pcre perl postgres ppds pppd python readline recode reflection rrdtool session spl srvdir ssl tcpd truetyp
e truetype-fonts type1-fonts unicode vhosts xattr xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 h
da-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 iopl
ug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_fi
le authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter he
aders include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="key
board mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 bdonlan 2007-12-07 00:54:07 UTC
Created attachment 137934 [details, diff]
Trivial fix
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2007-12-08 16:36:10 UTC
Can you report that upstream, so the fix is included in next version?
Comment 3 bdonlan 2007-12-08 21:06:35 UTC
I have, it seems it was already fixed in upstream CVS and has been released in 0.4.7: https://savannah.nongnu.org/bugs/?21744
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2007-12-09 11:05:44 UTC
0.4.7 in the tree now, thanks!