FreeNAS: MyPlex does not log in

Are you running the latest commit (version) of PlexConnect? What github (theme) are you using? Is this the only ATV client on the nas? I noticed you have 5 other aTV’s on others Plexconnect hosts, what hosts are the other hosts? The other host/clients work? Can you get it working on another host then copy the ATVSettings.cfg signed in from the other host to the freenas ATVSetiings.cfg just the udid part and your myplex cred? First stop Plexconnect on the nas, then paste in the UDID & MyPlex credentials then start Plexconnect back up. If that doesn’t I would look at your network layout. Btw how is your full network layout from nas to router and ATV to router? Same subnet, same router as the the rest etc? Double nat?

I have tried all combinations and also copied the UDID stuff from my other installations - when doing that - it "appears" that you are logged in, but it doesn't (cant find the shared libraries).

everything is the same as the other nodes running in my network - except FreeNAS uses a jail (sandbox type-thing) - all internet requests work normally from that jail.

using curl etc all works, "curl https://plex.tv" returns html - the weird thing is; it used to work with PMS 0.9.6.x  

I never used a freenas myself but what is your goal here to use the freenas as your pms/PlexConnect host for all clients?

goal = pms+plexconnect running on my freenas box. 

In the freenas topic that I’m sure you went thru, what is the normal setup like for most users with a pms/PlexConnect with this sandbox configuration? Do they run the latest pms/PlexConnect?


Same thing? nas4free


or this? freenas

The problems started when I upgraded to the latest PMS - package actually had other bugs for FreeNAS, so I had downgraded again. But in the meantime I have tried various versions of PMS and PC. No positive result. (nas4free is the "old" name/version for freenas but yes it is the same and this is how it should work)

If you remove PMS from the equation temporarily does the nas sign into myplex and see your shared content? If yes, I would start there to debug then attempt to get PMS into the mix.

previously done, i have 5 plexconnect installations (on other than freenas box) all work. 

have put plexconnect in its own jail, other jails, no result. 

everything points to freenas, but am just lost where the problem could be sitting.

I personally hate debugging anything. I personally would format the $?!$ then get PlexConnect working on it then move forward. If you can't get PlexConnect to work then I would move the nas to a working nas location and test. Another idea is bring a different nas to that location and see if it works. If it doesn't maybe it's your network layout. Just an idea....

Rule out the easy stuff first by moving things around, maybe you can narrow it down to the network layout or the nas.

Yeah I know, but formatting would be another disaster as i have more jails with applications running on the thing. maybe it is a kernel/sysctl thing. 

I can confirm this problem The strange thing is, I have two freenas systems here at the time. Both have PlexConnect installed in a jail with the same version for both freenas OS and PlexConnect. My old freenas system works well, no trouble logging into myplex with PlexConnect. With the new system (only different hardware) I am unable to log into myplex. I have no glue what could cause this problem... Especially because my old systems works without any problems! 

which version of PMS do you have running on both your old & new server ? 

I was not sure, I thought it would be the same, but I skipped an update at the old server.
Old Server: 0.9.11.1.678
New Server: 0.9.11.4.739
 
So the problem might be related to PMS? 

I honestly don't know as I still have this problem and have tried different versions, all the same: not working.

If you are able to get it working, I would love to know how.

How could PMS affect the myPlex login process?

The login is done from PlexConnect to plex.tv - no PMS involved.

Thanks for clarification, I just thought because the only difference I was able to figure out so far between the two servers was the PMS version. But I double checked and the installation I performed on both servers according to:

https://forums.freenas.org/index.php?threads/how-to-install-plexconnect-for-atv.18315/

Worked, but I am unable to login to myplex. Only my old installation, which I installed in the same jail as the PMS still works. Sorry for the confusion. I will try to copy this version over to the new freenas server and see if it runs there as well! 

Okay I tried to copy the installation from the working server to the new server. I don´t know but I thought for whatever reason this might work. But unfortunately the problem remains the same, the myplex login does not work on the new server. The freenas version is the same and I also tried to install PlexConnect in the same jail as the PMS, because this works at my old server as well. Still no login possible. Logs also show now errors, it seams that there is no response from the myplex login server... 

Is the server showing successfully on plex.tv?

Yes I can access the server from plex.tv. But this should not make any difference, since Baa confirmed that PlexConnect should log into the myplex account even if there is no server present right? The libraries would not show up afterwards true, but the login itself should work. 

The PlexConnect.log just shows:

03:36:38 PlexAPI: Servers (local+MyPlex): 1
03:37:49 PlexAPI: Servers (local+MyPlex): 1
03:49:37 PlexAPI: Servers (local+MyPlex): 1
 
Whereas on the working server is says:
12:15:23 PlexAPI: Servers (local+MyPlex): 2
12:15:30 PlexAPI: MyPlex Sign Out done
12:15:30 PlexAPI: Servers (local+MyPlex): 1
12:15:45 PlexAPI: MyPlex Sign In successfull
12:15:46 PlexAPI: Servers (local+MyPlex): 2
12:15:57 PlexAPI: MyPlex Sign Out done
12:15:58 PlexAPI: Servers (local+MyPlex): 1

There must be something on that FreeNAS install or network causing issues. Is there any firewall, network config, DNS service etc that is different to your other server?


BTW I am not a FreeNAS user just trying to put ideas on the table. Also can you log into myplex from the PMS install on that server?