FreeNAS: MyPlex does not log in

Ideas are welcome, sometimes you just don´t know what to check anymore  :blink:

I can login to myplex accessing the PMS on the server. I tried the install steps I went through on my old working server, setting up the PlexConnect in a different jail and there I experience the same problem. I am unable to log in to myplex. The only setup which works is the PlexConnect instance I installed half a year ago when setting up the machine. But since PlexConnect is just a python software it should not make any difference, nevertheless only the old installation works. I just updated this old installation via git pull to eliminate the newest version of PlexConnect as a problem source. It still works fine... 

Could it be because of the python version installed? I mean the only difference between the newest installation and the older one should be the python version installed. 

What is the version difference? As long as they are both 2.7.x I don’t see it being an issue

Both systems have 2.7.X (2.7.6 and 2.7.9) installed. Still no clue how to further investigate this problem. 

I guess trying 2.7.6 to see if it help is the next logical step

Thats the point where I struggle... I can only find the latest version 2.7.9 in the pkg repo. Since I am quite new to the unix world of freebsd I don`t know how to perform a downgrade or get the 2.7.6 version of python. 

# which python
/usr/local/bin/python

# pkg info | grep -i python
python-2.7_2,2                 The "meta-port" for the default version of Python interpreter
python2-2_3                    The "meta-port" for version 2 of the Python interpreter
python27-2.7.9                 Interpreted object-oriented programming language

# pkg install 

2.7.6 is not there. 

Could this be related to poodle vulnerabilities - possible ssl problem (while no output in log)

@SaschaPlex - you could try to set 2.7.6 as default?

rm /usr/local/bin/python
ln -s /usr/local/bin/python2.7.6 /usr/local/bin/python

Check first if you actually have the versions available in /usr/local/bin

It seems that I don't have python 2.7.6 available. 

/usr/local/bin # ls | grep python

Only lists:

python
python2.7
python2.7-config

I just captured a trace while trying to log into myplex account from PlexConnect. It seems to be an SSL related issue. After getting back the SSL-Certificate from plex.tv the ATV stops the SSL connection with the following error message: 

Record Layer: Alert (Level: Fatal, Description: Unknown CA)

EDIT: I got it to work! It was caused by the default SSL verification since python 2.7.9. With the help here: http://qandasys.info/what-should-i-do-about-python-2-7-9-not-looking-for-ssl-certificates-in-the-right-place-on-freebsd/ I was able to fix it. It is due to a freebsd related problem. The following command fixed it for me. Just run it in the jail where you installed your PlexConnect: 

ln -sf /usr/local/etc/ssl/cert.pem /etc/ssl/cert.pem

I suspected this issue - read about it in the sabnzb forums, i tried your command yesterday but no change, did you have to restart your jail ?

I used tcpdump for the trace, i guess that won't cut it to analyse the tcp stream.

No I did not need to restart the complete jail. I just restarted PlexConnect. What happens at your trace when PlexConnect is trying to connect to plex.tv? 

I didn't realise that it work - but I was running from my freenas already, so finally it works :D

Now I have to install the lastest stuff. 


I just captured a trace while trying to log into myplex account from PlexConnect. It seems to be an SSL related issue. After getting back the SSL-Certificate from plex.tv the ATV stops the SSL connection with the following error message:

Record Layer: Alert (Level: Fatal, Description: Unknown CA)
EDIT: I got it to work! It was caused by the default SSL verification since python 2.7.9. With the help here: http://qandasys.info/what-should-i-do-about-python-2-7-9-not-looking-for-ssl-certificates-in-the-right-place-on-freebsd/ I was able to fix it. It is due to a freebsd related problem. The following command fixed it for me. Just run it in the jail where you installed your PlexConnect:
ln -sf /usr/local/etc/ssl/cert.pem /etc/ssl/cert.pem
. Glad it's working, and glad it turned out to be something so simple (and I guess if we had been able to downgrade Python to 2.7.6 the issue would not have actually been found)