Package: obnam
Version: 1.17-1~bpo8+1
Severity: important

Dear Maintainer,

I was trying to make an initial backup with obnam using this command:

# obnam backup -r /sauvegardes/users-obnam/ sftp://xxx/users/
00h15m55s 81659 files 6.95 GiB scanned: xxx.htm
Traceback (most recent call last):                                              
                                                                         
  File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 190, in _run      
                                                     
    self.process_args(args)                                                     
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/app.py", line 207, in 
process_args                                                 
    cliapp.Application.process_args(self, args)                                 
                                                     
  File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 567, in 
process_args                                                   
    method(args[1:])                                                            
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py", 
line 167, in backup                                     
    self.backup_roots(root_urls)                                                
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py", 
line 373, in backup_roots                               
    self.backup_root(root_url, absroots)                                        
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py", 
line 394, in backup_root                                
    for pathname, metadata in self.find_files(absroot):                         
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py", 
line 565, in find_files                                 
    for pathname, st in self.fs.scan_tree(root, ok=self.can_be_backed_up):      
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree                                                    
    for t in self.scan_tree(pathname, ok=ok, dirst=st):                         
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree                                                    
    for t in self.scan_tree(pathname, ok=ok, dirst=st):                         
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree                                                    
    for t in self.scan_tree(pathname, ok=ok, dirst=st):                         
                                                     
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree                                                    
    for t in self.scan_tree(pathname, ok=ok, dirst=st):
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree
    for t in self.scan_tree(pathname, ok=ok, dirst=st):
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree
    for t in self.scan_tree(pathname, ok=ok, dirst=st):
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 303, in 
scan_tree
    for t in self.scan_tree(pathname, ok=ok, dirst=st):
  File "/usr/lib/python2.7/dist-packages/obnamlib/vfs.py", line 290, in 
scan_tree
    pairs = self.listdir2(dirname)
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/sftp_plugin.py", line 
102, in helper
    return method(self, filename, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/obnamlib/plugins/sftp_plugin.py", line 
455, in listdir2
    attrs = self.sftp.listdir_attr(pathname)
  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

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

xxx.htm: HTML document, ISO-8859 text, with CRLF, CR, NEL line terminators

The file also contains this line, which is a bit confusing:

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

However, whatever garbage is included in this file, obnam should be able to 
back it up.  I can provide the file privately if you ask me to.


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages obnam depends on:
ii  libc6             2.19-18+deb8u1
ii  python            2.7.9-1
ii  python-cliapp     1.20140719-1
ii  python-fuse       2:0.2.1-10
ii  python-larch      1.20131130-1
ii  python-paramiko   1.15.1-1
ii  python-tracing    0.8-1
ii  python-ttystatus  0.23-1
ii  python-yaml       3.11-2

obnam recommends no packages.

obnam suggests no packages.

-- no debconf information

-- 
Laurent.

Reply via email to