I'd like to report a bug with the latest SABNZBD PBI, version 0.7.20.
During my recent upgrade to FreeNAS 9.3, I went ahead and rebuilt my jail with all the latest PBI's for SABNZBD, Sickbeard, etc. After rebuilding my jail I noticed that SAB was getting stuck on downloads , and refused to connect properly. In troubleshooting this issue, I noticed that the SSL option was greyed out on all my server settings.
Based on this information I tried running the test below.
Code:
/usr/pbi/sabnzbd-amd64/bin/python2.7
Python 2.7.8 (default, Sep 18 2014, 02:43:05)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import (
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/OpenSSL/_util.py", line 4, in <module>
binding = Binding()
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 89, in __init__
self._ensure_ffi_initialized()
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 109, in _ensure_ffi_initialized
libraries=libraries,
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 39, in build_ffi
ffi = cffi.FFI()
File "/usr/pbi/sabnzbd-amd64/lib/python2.7/site-packages/cffi/api.py", line 56, in __init__
import _cffi_backend as backend
ImportError: Shared object "libffi.so.6" not found, required by "_cffi_backend.so"
As you can see it's complaining about libffi.so.6. Since "pkg" commands work properly now, I decided to try just installing the package. This actually worked perfectly and now everything functions normally again; after restarting SAB of course. Maybe you can add this to the PBI so it won't happen for other people?
Code:
pkg install py27-cffi
/usr/pbi/sabnzbd-amd64/bin/python2.7
Python 2.7.8 (default, Sep 18 2014, 02:43:05)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
>>>