On Mon, Sep 28, 2015 at 07:34:40PM +0200, Laurent Bonnaud wrote:
> I was trying to make an initial backup with obnam using this command:
> 
> # obnam backup -r /sauvegardes/users-obnam/ sftp://xxx/users/
...
>   File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 208, 
> in listdir_attr
>     filename = msg.get_text()
>   File "/usr/lib/python2.7/dist-packages/paramiko/message.py", line 199, in 
> get_text
>     return u(self.get_bytes(self.get_size()))
>   File "/usr/lib/python2.7/dist-packages/paramiko/py3compat.py", line 51, in u
>     return s.decode(encoding)
>   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 15: 
> invalid continuation byte

This looks like the following bug, which I've already reported upstream:

    https://github.com/paramiko/paramiko/issues/546

In short, Paramiko seems to not like non-UTF8 filenames on the SFTP
server.

Since this is a Paramiko bug, I'll reassign it to that package.

> Here is what the "file" command has to say about the xxx.htm file:

Obnam treats all file data as binary, and doesn't try to interpret it
as UTF8. The contents of the file don't matter here at all.

-- 
Schrödinger's backup hypothesis: the condition of any backup is
undefined until a restore is attempted. -- andrewsh

Reply via email to