UnicodeDecodeError: 'ascii' codec can't decode byte 0x85 in position 0: ordinal not in range(128) using PCA backend

Bug #1867444 reported by Xavier Poinsard on 2020-03-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned
duplicity (Ubuntu)
Undecided
Unassigned

Bug Description

Sorry but after last fix, I have another error.
I am using duplicity 0.8.11.1606 from snap edge channel.
I am trying to use multi backend with one of them being the OVH PCA.
It fails when trying to write to the PCA with the following error :
MultiBackend: _put: write to store #0 (pca://backupPortableX-cold)
Writing cold_duplicity-full.20200314T160021Z.vol1.difftar.gpg
Backtrace of previous error: Traceback (innermost last):
  File "/snap/duplicity/84/lib/python3.6/site-packages/duplicity/backend.py", line 376, in inner_retry
    return fn(self, *args)
  File "/snap/duplicity/84/lib/python3.6/site-packages/duplicity/backend.py", line 547, in put
    self.__do_put(source_path, remote_filename)
  File "/snap/duplicity/84/lib/python3.6/site-packages/duplicity/backend.py", line 533, in __do_put
    self.backend._put(source_path, remote_filename)
  File "/snap/duplicity/84/lib/python3.6/site-packages/duplicity/backends/pcabackend.py", line 154, in _put
    open(source_path.name))
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 1842, in put_object
    response_dict=response_dict)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 1691, in _retry
    service_token=self.service_token, **kwargs)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 1320, in put_object
    conn.putrequest(path, headers=headers, data=data)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 449, in putrequest
    return self.request('PUT', full_path, data, headers, files)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 439, in request
    files=files, **self.requests_args)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/client.py", line 422, in _request
    return self.request_session.request(*arg, **kwarg)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/requests/sessions.py", line 520, in request
    resp = self.send(prep, **send_kwargs)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/requests/sessions.py", line 630, in send
    r = adapter.send(request, **kwargs)
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/requests/adapters.py", line 460, in send
    for i in request.body:
  File "/snap/duplicity/84/usr/lib/python3/dist-packages/swiftclient/utils.py", line 279, in __next__
    chunk = self.content.read(self.chunk_size)
  File "/snap/duplicity/84/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
 UnicodeDecodeError: 'ascii' codec can't decode byte 0x85 in position 0: ordinal not in range(128)

Thanks for the bug reports!

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.8.12
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers