duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Python error in Webdav backend


From: Sven Hazejager
Subject: Re: [Duplicity-talk] Python error in Webdav backend
Date: Fri, 20 Sep 2019 19:11:52 +0200



On Fri, 20 Sep 2019 at 19:04, Sven Hazejager <address@hidden> wrote:

Thanks, not solved yet, but we're close. Below is the current output. The call actually goes through to the server. BUT, where the asterisks are is the Base64 encoded password... and it has a leading " b' ", which my working duplicity install does NOT have. I am not sure if that is a part of the newly created byte array, are that it gets added somewhere else when the byte array is printed.


Actually, it looks like this solves this error, thanks to https://stackoverflow.com/questions/31144988/base64-encodestring-failing-in-python-3.

Change line 291 to:

 return u'Basic %s' % base64.encodestring(auth_string.encode()).decode().strip()

Now a backup starts, and we hit the next error once the first volume is uploaded:

Writing duplicity-full.20190920T171053Z.vol1.difftar.gpg
Backtrace of previous error: Traceback (innermost last):
  File "/usr/local/lib/python3.7/dist-packages/duplicity/backend.py", line 371, in inner_retry
    return fn(self, *args)
  File "/usr/local/lib/python3.7/dist-packages/duplicity/backend.py", line 531, in put
    self.__do_put(source_path, remote_filename)
  File "/usr/local/lib/python3.7/dist-packages/duplicity/backend.py", line 517, in __do_put
    self.backend._put(source_path, remote_filename)
  File "/usr/local/lib/python3.7/dist-packages/duplicity/backends/webdavbackend.py", line 437, in _put
    url = "" + remote_filename
 TypeError: can only concatenate str (not "bytes") to str

Attempt 1 failed. TypeError: can only concatenate str (not "bytes") to str

Any ideas? :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]