Front page

obnam failing on fedora 25

0706d95e5fa94e6d9ad7973ecf6638be
AHEAD AMULET SUGAR

From: Neal Becker <ndbecker2@gmail.com>
Date: Wed, 23 Nov 2016 13:50:24 +0000

   My obnam setup was working on fedora 24, but now fails on fedora25 (both
   client and server)
   
   obnam --lru-size=1024 --upload-queue-size=512 backup /home/nbecker
   CRITICAL:root:Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 173, in _run
      self.enable_plugins()
    File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 526, in
   enable_plugins
      for plugin in self.pluginmgr.plugins:
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 75, in
   plugins
      self._plugins = self.load_plugins()
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 112, in
   load_plugins
      for plugin in self.load_plugin_file(pathname):
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 132, in
   load_plugin_file
      ('.py', 'r', imp.PY_SOURCE))
    File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py",
   line 31, in <module>
      import paramiko
    File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in
   <module>
      from paramiko.transport import SecurityOptions, Transport
    File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 53, in
   <module>
      from paramiko.dsskey import DSSKey
    File "/usr/lib/python2.7/site-packages/paramiko/dsskey.py", line 27, in
   <module>
      from cryptography.hazmat.primitives.asymmetric.utils import (
   ImportError: cannot import name decode_dss_signature
   
   Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 173, in _run
      self.enable_plugins()
    File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 526, in
   enable_plugins
      for plugin in self.pluginmgr.plugins:
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 75, in
   plugins
      self._plugins = self.load_plugins()
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 112, in
   load_plugins
      for plugin in self.load_plugin_file(pathname):
    File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 132, in
   load_plugin_file
      ('.py', 'r', imp.PY_SOURCE))
    File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py",
   line 31, in <module>
      import paramiko
    File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in
   <module>
      from paramiko.transport import SecurityOptions, Transport
    File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 53, in
   <module>
      from paramiko.dsskey import DSSKey
    File "/usr/lib/python2.7/site-packages/paramiko/dsskey.py", line 27, in
   <module>
      from cryptography.hazmat.primitives.asymmetric.utils import (
   ImportError: cannot import name decode_dss_signature
From: Neal Becker <ndbecker2@gmail.com>
Date: Wed, 23 Nov 2016 14:04:01 +0000

   I'm not using encryption, and I'm not using sftp.  Can I disable this as a
   workaround?
   
   On Wed, Nov 23, 2016 at 8:50 AM Neal Becker <ndbecker2@gmail.com> wrote:
   
   > My obnam setup was working on fedora 24, but now fails on fedora25 (both
   > client and server)
   >
   > obnam --lru-size=1024 --upload-queue-size=512 backup /home/nbecker
   > CRITICAL:root:Traceback (most recent call last):
   >  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 173, in _run
   >    self.enable_plugins()
   >  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 526, in
   > enable_plugins
   >    for plugin in self.pluginmgr.plugins:
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 75, in
   > plugins
   >    self._plugins = self.load_plugins()
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 112, in
   > load_plugins
   >    for plugin in self.load_plugin_file(pathname):
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 132, in
   > load_plugin_file
   >    ('.py', 'r', imp.PY_SOURCE))
   >  File
   > "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py", line
   > 31, in <module>
   >    import paramiko
   >  File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in
   > <module>
   >    from paramiko.transport import SecurityOptions, Transport
   >  File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 53,
   > in <module>
   >    from paramiko.dsskey import DSSKey
   >  File "/usr/lib/python2.7/site-packages/paramiko/dsskey.py", line 27, in
   > <module>
   >    from cryptography.hazmat.primitives.asymmetric.utils import (
   > ImportError: cannot import name decode_dss_signature
   >
   > Traceback (most recent call last):
   >  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 173, in _run
   >    self.enable_plugins()
   >  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 526, in
   > enable_plugins
   >    for plugin in self.pluginmgr.plugins:
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 75, in
   > plugins
   >    self._plugins = self.load_plugins()
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 112, in
   > load_plugins
   >    for plugin in self.load_plugin_file(pathname):
   >  File "/usr/lib/python2.7/site-packages/cliapp/pluginmgr.py", line 132, in
   > load_plugin_file
   >    ('.py', 'r', imp.PY_SOURCE))
   >  File
   > "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py", line
   > 31, in <module>
   >    import paramiko
   >  File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in
   > <module>
   >    from paramiko.transport import SecurityOptions, Transport
   >  File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 53,
   > in <module>
   >    from paramiko.dsskey import DSSKey
   >  File "/usr/lib/python2.7/site-packages/paramiko/dsskey.py", line 27, in
   > <module>
   >    from cryptography.hazmat.primitives.asymmetric.utils import (
   > ImportError: cannot import name decode_dss_signature
   >
   >
   >
From: Neal Becker <ndbecker2@gmail.com>
Date: Wed, 23 Nov 2016 14:17:55 +0000

   Yes, removing sftp-plugin seems to work.
   
   Maybe we can have a config option to not load it?
   
   On Wed, Nov 23, 2016 at 9:10 AM Lars Wirzenius <liw@liw.fi> wrote:
   
   > On Wed, Nov 23, 2016 at 02:04:01PM +0000, Neal Becker wrote:
   > > I'm not using encryption, and I'm not using sftp.  Can I disable this as
   > a
   > > workaround?
   >
   > You could remove the sftp plugin entirely, or the import of paramiko
   > in it. This might work.
   >
   > --
   > I want to build worthwhile things that might last. --joeyh
   >
From: Neal Becker <ndbecker2@gmail.com>
Date: Wed, 23 Nov 2016 15:13:22 +0000

   Appears the problem was my own doing, I had old files in
   ~/.local/lib/python2.7/site-packages.  I've moved on to python3 and don't
   maintain the python2 stuff anymore.  The fedora 25 system versions are new,
   but my old versions in my home dir were overriding them.
   
   On Wed, Nov 23, 2016 at 9:31 AM Lars Wirzenius <liw@liw.fi> wrote:
   
   > On Wed, Nov 23, 2016 at 02:17:55PM +0000, Neal Becker wrote:
   > > Yes, removing sftp-plugin seems to work.
   > >
   > > Maybe we can have a config option to not load it?
   >
   > I'd rather not do that. I'd rather the bug got fixed. Sorry.
   >
   > --
   > I want to build worthwhile things that might last. --joeyh
   >
From: Lars Wirzenius <liw@liw.fi>
Date: Wed, 23 Nov 2016 16:08:34 +0200

   On Wed, Nov 23, 2016 at 01:50:24PM +0000, Neal Becker wrote:
   > ImportError: cannot import name decode_dss_signature
   
   This would indicate there is a problem with the Python cryptography
   libarary on Fedora 25. Do any of the following commands work?
   
       python -c 'import obnamlib'
       python -c 'import paramiko'
       python -c 'import cryptography'
   
   In any case, this would seem to be a bug in Fedora, not in Obnam, I'm
   afraid.
   
   Anyone else using Fedora25 who can help debug this?
From: Lars Wirzenius <liw@liw.fi>
Date: Wed, 23 Nov 2016 16:10:26 +0200

   On Wed, Nov 23, 2016 at 02:04:01PM +0000, Neal Becker wrote:
   > I'm not using encryption, and I'm not using sftp.  Can I disable this as a
   > workaround?
   
   You could remove the sftp plugin entirely, or the import of paramiko
   in it. This might work.
From: Lars Wirzenius <liw@liw.fi>
Date: Wed, 23 Nov 2016 16:31:30 +0200

   On Wed, Nov 23, 2016 at 02:17:55PM +0000, Neal Becker wrote:
   > Yes, removing sftp-plugin seems to work.
   > 
   > Maybe we can have a config option to not load it?
   
   I'd rather not do that. I'd rather the bug got fixed. Sorry.
From: Lars Wirzenius <liw@liw.fi>
Date: Wed, 23 Nov 2016 22:36:16 +0200

   I'm very glad to hear the problem got solved!
   
   On Wed, Nov 23, 2016 at 03:13:22PM +0000, Neal Becker wrote:
   > Appears the problem was my own doing, I had old files in
   > ~/.local/lib/python2.7/site-packages.  I've moved on to python3 and don't
   > maintain the python2 stuff anymore.  The fedora 25 system versions are new,
   > but my old versions in my home dir were overriding them.
   > 
   > On Wed, Nov 23, 2016 at 9:31 AM Lars Wirzenius <liw@liw.fi> wrote:
   > 
   > > On Wed, Nov 23, 2016 at 02:17:55PM +0000, Neal Becker wrote:
   > > > Yes, removing sftp-plugin seems to work.
   > > >
   > > > Maybe we can have a config option to not load it?
   > >
   > > I'd rather not do that. I'd rather the bug got fixed. Sorry.