TypeError: %d format: a number is required, not NoneType
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Since the latest version we have the following error when making backups:
--- Start running command BKP at 00:00:02.617 ---
Reading globbing filelist /etc/duply/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Thu Aug 16 00:00:02 2018
Traceback (innermost 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/
vol_num: put(tdp, dest_filename, vol_num),
File "/usr/bin/
validate_
File "/usr/bin/
util.
TypeError: %d format: a number is required, not NoneType
Some information about (one of) our machine(s):
Using installed duplicity version 0.7.18, python 2.7.12, gpg 1.4.20 (Home: ~/.gnupg), awk 'GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)', grep 'grep (GNU grep) 2.25', bash '4.3.48(1)-release (x86_64-
If you need more information, feel free to ask.
Changed in duplicity: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
milestone: | none → 0.7.19 |
Changed in duplicity: | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
Changed in duplicity: | |
milestone: | 0.7.19 → 0.8.00 |
milestone: | 0.8.00 → none |
milestone: | none → 0.8.00 |
milestone: | 0.8.00 → 0.7.18.1 |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Changed in duplicity: | |
milestone: | 0.7.18.1 → 0.7.18.2 |
status: | Fix Released → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
I get the same error and stacktrace with duplicity 0.7.18 and the following command:
| $ duplicity --version if-older- than 15D --gpg-options= "--cipher- algo=AES" --num-retries 10 --backend- retry-delay 10 --verbosity notice "/srv/##########" "par2+sftp:// ##########/" ####### ####### ### duplicity" , line 1567, in <module> duplicity" , line 1553, in with_tempdir duplicity" , line 1405, in main duplicity" , line 1535, in do_backup backup( sig_chain) duplicity" , line 680, in incremental_backup duplicity" , line 466, in write_multivol python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 146, in schedule_task run_synchronous ly(fn, params) python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 172, in __run_synchronously duplicity" , line 465, in <lambda> duplicity" , line 355, in put block(putsize, dest_filename) duplicity" , line 337, in validate_block dest_filename) , orig_size))
| duplicity 0.7.18
|
| $ duplicity incremental --name "##########" --full-
| Local and Remote metadata are synchronized, no sync needed.
| Last full backup date: #######
| Traceback (innermost last):
| File "/usr/bin/
| with_tempdir(main)
| File "/usr/bin/
| fn()
| File "/usr/bin/
| do_backup(action)
| File "/usr/bin/
| incremental_
| File "/usr/bin/
| globals.backend)
| File "/usr/bin/
| (tdp, dest_filename, vol_num)))
| File "/usr/lib/
| return self.__
| File "/usr/lib/
| ret = fn(*params)
| File "/usr/bin/
| vol_num: put(tdp, dest_filename, vol_num),
| File "/usr/bin/
| validate_
| File "/usr/bin/
| util.escape(
| TypeError: %d format: a number is required, not NoneType
With --asynchronous- upload the stacktrace is different:
| $ duplicity --version if-older- than 15D --gpg-options= "--cipher- algo=AES" --num-retries 10 --backend- retry-delay 10 --verbosity notice "/srv/##########" "par2+sftp:// ##########/" --asynchronous- upload ####### ####### ### duplicity" , line 1567, in <module> duplicity" , line 1553, in with_tempdir duplicity" , line 1405, in main duplicity" , line 1535, in do_backup backup( sig_chain) duplicity" , line 680, in incremental_backup duplicity" , line 481, in write_multivol python2. 7/dist- packages/ duplicity/ dup_threading. py", line 201, in waiter error'] .with_traceback (state[ 'trace' ]) TypeError' object has no attribute 'with_traceback'
| duplicity 0.7.18
|
| $ duplicity incremental --name "##########" --full-
| Local and Remote metadata are synchronized, no sync needed.
| Last full backup date: #######
| Traceback (innermost last):
| File "/usr/bin/
| with_tempdir(main)
| File "/usr/bin/
| fn()
| File "/usr/bin/
| do_backup(action)
| File "/usr/bin/
| incremental_
| File "/usr/bin/
| globals.backend)
| File "/usr/bin/
| bytes_written += waiter()
| File "/usr/lib/
| raise state['
| AttributeError: 'exceptions.
The same commands work fine with duplicity 0.7.17.
Tested with a recent Ubuntu 16.04.