SSL option unselectable

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
spongetom
Newbie
Newbie
Posts: 6
Joined: August 25th, 2011, 8:00 am

SSL option unselectable

Post by spongetom »

Hi all,
First of all, just want to say SABnzbd is probably the best NZB client Ive used. It is just awesome :)

I recently installed it (0.6.6) on FreeNAS 7 (FreeBSD derivative), and after a couple of failed attempts I eventually got it up and running. It is working quite well, however the ability to connect to my UseNet server over SSL is unavailable. The option is grayed out and unselectable. In the startup log I get the following line,
INFO::[SABnzbd:491] pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)

The research I have done has suggested to install the python SSL packages (using pkg_add), which I have done. All my packages are posted below.

Given I have the SSL package already, I am thinking that either my SABnzbd startup script doesnt recognise the SSL package, or my Python isnt.

Any suggestions on how to fix this, or what information to gather to fully debug this?

Cheers!

javavmwrapper-2.3.4
openssl-0.9.8m
par2cmdline-0.4_2
pkg-config-0.23_1
py26-chardet-1.0.1
py26-cheetah-2.4.1_1
py26-cherrypy-old-2.3.0,1
py26-feedparser-4.1_2
py26-markdown-2.0.3
py26-openssl-0.10
py26-setuptools-0.6c11
py26-sqlite3-2.6.4_1
py26-utils-0.3.0
python-2.6,2
python26-2.6.4
sabnzbdplus-0.4.12_2
sqlite3-3.6.19
unrar-3.91,5
unzip-6.0
xextproto-7.0.5
xproto-7.0.15
xtrans-1.2.3
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SSL option unselectable

Post by shypike »

Open an terminal session,
Start Python and type:

Code: Select all

from OpenSSL import SSL
If that gives an error message, then something is wrong with your installation.
spongetom
Newbie
Newbie
Posts: 6
Joined: August 25th, 2011, 8:00 am

Re: SSL option unselectable

Post by spongetom »

Thanks for the reply mate, here is the output of what I did, as you can see It accepted the line with no error, but also didnt do anything...

[root@freenas ~]# python
Python 2.6.4 (r264:75706, Feb 17 2010, 10:45:15)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
>>>
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SSL option unselectable

Post by shypike »

Odd. What about this mini program?

Code: Select all

try:
    from OpenSSL import SSL
    _ssl = SSL
    WantReadError = _ssl.WantReadError
    del SSL
    HAVE_SSL = True

except ImportError:
    _ssl = None
    HAVE_SSL = False

print _ssl, HAVE_SSL

What's the result?
spongetom
Newbie
Newbie
Posts: 6
Joined: August 25th, 2011, 8:00 am

Re: SSL option unselectable

Post by spongetom »

Thanks again mate. I ran the code and this is the output.

[root@freenas /mnt/DATA/Tom]# python test.py
<module 'OpenSSL.SSL' from '/usr/local/lib/python2.6/site-packages/OpenSSL/SSL.so'> True

Could it be possible that Im not using the python located in /usr/local/lib, and if so how would I point to that one?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SSL option unselectable

Post by shypike »

Find out which python binary you need and start SABnzbd using:
/path/to/python /my/path/SABnzbd.py
SABnzbd,.py itself is hard-coded to use /usr/bin/python
spongetom
Newbie
Newbie
Posts: 6
Joined: August 25th, 2011, 8:00 am

Re: SSL option unselectable

Post by spongetom »

I think I have sorted the issue in 2 ways...
Firstly looks like I needed to use this python - /usr/local/bin/python2.6
Additionally, the start up script I was using, taken from here https://sourceforge.net/apps/phpbb/free ... 80ddcaaaf7 , needed to be changed
From - PYTHONPATH="/mnt/DATA/downloader/installers/lib/python2.7/site-packages" /usr/local/bin/python2.6 /mnt/DATA/downloader/installers/SABnzbd/SABnzbd.py -d -f /mnt/DATA/downloader/installers/sabconfig/sabnzbd.ini -s 0.0.0.0:8085

To - /usr/local/bin/python2.6 /mnt/DATA/downloader/installers/SABnzbd/SABnzbd.py -d -f /mnt/DATA/downloader/installers/sabconfig/sabnzbd.ini -s 0.0.0.0:8085

Thank you very much for you guidance on this Shypike. Really appreciate it!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SSL option unselectable

Post by shypike »

Happy to hear it works.
frameskip
Newbie
Newbie
Posts: 1
Joined: November 15th, 2011, 9:08 pm

Re: SSL option unselectable

Post by frameskip »

I am having a similar problem to the OP. SABnzbd+ is running fine, but I am unable to use the SSL option. Installed packages:

openssl-1.0.0_6
par2cmdline-0.4_4
pkg-config-0.25_1
py27-chardet-2.0.1
py27-cheetah-2.4.4
py27-feedparser-5.0.1
py27-markdown-2.0.3_1
py27-openssl-0.13
py27-setuptools-0.6c11_1
py27-sqlite3-2.7.2_1
py27-utils-0.4.0
py27-yenc-0.3
python27-2.7.2_3
sabnzbdplus-0.6.10
sqlite3-3.7.9
unrar-4.00,5
unzip-6.0_1

py27-openssl seemed to install properly; however, when I try to import OpenSSL, I get the following:

Code: Select all

[root@freenas ~]# python
Python 2.7.2 (default, Nov  7 2011, 17:08:55)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
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/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 41, in <module>
    from OpenSSL import rand, SSL
ImportError: /usr/local/lib/python2.7/site-packages/OpenSSL/SSL.so: Undefined symbol "SSL_get_servername"
>>>
Any suggestions would be appreciated.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: SSL option unselectable

Post by sander »

Did you google "ImportError: /usr/local/lib/python2.7/site-packages/OpenSSL/SSL.so: Undefined symbol "SSL_get_servername"? It's a bug in "net-im/papyon", which I don't know, but certainly is not SABnzbd related. So probably better to seek help in the forums where it's reported, like https://www.freshports.org/net-im/papyon/Makefile

HTH
Post Reply