B2 backend fails on string concatenation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Using the b2 backend the `b2backend.py` fails on string concatenation.
Duplicity version: 0.8.03
Python version: 3.7.4
OS Distro and version: macOS Mojave 10.14.3
Type of target filesystem: macOS
$ pip show b2
Name: b2
Version: 1.4.0
Log output from -v9 option - Include the command line, the first 200 lines of the log, and the last 200 lines of the log (anonymized):
$ duplicity \
-v9 \
--encrypt-
--sign-
--volsize 50 \
--full-
/Users/
Using archive dir: /Users/
Using backup name: 4ab78363b97d4f9
GPG binary is gpg, version (2, 2, 10)
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
B2 Backend (path= path/to/
Bucket found
Main action: inc
Acquiring lockfile b'/Users/
=======
duplicity $version ($reldate)
Args: /usr/local/
Darwin Mac 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-
/usr/local/
[Clang 10.0.1 (clang-
=======
Using temporary directory /var/folders/
Registering (mkstemp) temporary file /var/folders/
Temp has 19106807808 available, backup will use approx 68157440.
0 files exist on backend
1 file exists in cache
Extracting backup chains from list of files: []
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Last full backup is too old, forcing full backup
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /Users/
Found 0 secondary backup chains.
No backup chains with active signatures found
No orphaned or incomplete backup sets found.
Using temporary directory /Users/
Registering (mktemp) temporary file /Users/
Using temporary directory /Users/
Registering (mktemp) temporary file /Users/
AsyncScheduler: instantiating at concurrency 0
Registering (mktemp) temporary file /var/folders/
Selecting /Users/
Comparing . and None
Getting delta of (. dir) and None
A .
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing .FILE_1
Getting delta of (FILE_1 reg) and None
A FILE_1
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_2
Getting delta of (FILE_2 dir) and None
A FILE_2
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_3 None
Getting delta of (FILE_3 reg) and None
A FILE_3
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_4.pdf and None
Getting delta of (FILE_4 reg) and None
A FILE_4
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_5-25 13-56.pdf and None
Getting delta of (FILE_5 reg) and None
A FILE_5
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_6 and None
Getting delta of (FILE_6 reg) and None
A FILE_6
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_7 and None
Getting delta of (FILE_7 reg) and None
A FILE_7
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_8 and None
Getting delta of (FILE_8 reg) and None
A FILE_8
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_9 and None
Getting delta of (FILE_9 reg) and None
A FILE_9
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_10 and None
Getting delta of (FILE_10 reg) and None
A FILE_10
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_11 and None
Getting delta of (FILE_11 reg) and None
A FILE_11
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_12 and None
Getting delta of (FILE_12 reg) and None
A FILE_12
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_13 and None
Getting delta of (FILE_13 reg) and None
A FILE_13
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_14 and None
Getting delta of (FILE_14 reg) and None
A FILE_14
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_15 and None
Getting delta of (FILE_15 reg) and None
A FILE_15
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_16 and None
Getting delta of (FILE_16 reg) and None
A FILE_16
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_17 and None
Getting delta of (FILE_17 reg) and None
A FILE_17
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_18 and None
Getting delta of (FILE_18 reg) and None
A FILE_18
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_19 and None
Getting delta of (FILE_19 reg) and None
A FILE_19
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_20 and None
Getting delta of (FILE_20 reg) and None
A FILE_20
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_21 and None
Getting delta of (FILE_21 reg) and None
A FILE_21
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_22 and None
Getting delta of (FILE_22 reg) and None
A FILE_22
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_23 and None
Getting delta of (FILE_23 reg) and None
A FILE_23
Selection: examining path /Users/
Selection: + no selection functions found. Including
Selecting /Users/
Comparing FILE_24 and None
Getting delta of (FILE_24 reg) and None
A FILE_24
Removing still remembered temporary file /Users/
Removing still remembered temporary file /Users/
AsyncScheduler: running task synchronously (asynchronicity disabled)
Writing duplicity-
Backtrace of previous error: Traceback (innermost last):
File "/usr/local/
return fn(self, *args)
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
log.Log(u"Put: %s -> %s" % (source_path.name, self.path + remote_filename), log.INFO)
TypeError: can only concatenate str (not "bytes") to str
Attempt 1 failed. TypeError: can only concatenate str (not "bytes") to str
Writing duplicity-
Backtrace of previous error: Traceback (innermost last):
File "/usr/local/
return fn(self, *args)
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
log.Log(u"Put: %s -> %s" % (source_path.name, self.path + remote_filename), log.INFO)
TypeError: can only concatenate str (not "bytes") to str
Attempt 2 failed. TypeError: can only concatenate str (not "bytes") to str
^CReleasing lockfile b'/Users/
Removing still remembered temporary file /var/folders/
Removing still remembered temporary file /var/folders/
INT intercepted.
Releasing lockfile b'/Users/
Releasing lockfile b'/Users/
Changed in duplicity: | |
importance: | Undecided → Medium |
milestone: | none → 0.8.05 |
status: | New → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
I have the same error with swift backend.
Duplicity version: 0.8.03
Python version: 3.7.4
OS Distro and version: macOS Mojave 10.14.6