[Resolved] Can't sign in, interal server error 500 for plex.tv/api

I can’t find a support category, so forgive me for posting this in general.

As of the early hours of 03 Oct (about 05:00 GMT), I updated my docker instance of Plex (to v1.18), and ever since have been unable to sign in.

I’m unable to claim my server without using Claimit, I’m unable to log in through the Plex web app, or locally accessing my server. I keep getting redirected to the app.plex.tv sign in page, proceed to do so, and then get an “Internal Server, something went wrong on our end.” error.

I originally thought I’d borked something during the upgrade - but I’ve been through various recent versions of my database, I’ve been back through the last 5 tags for the docker instance I’m running (rolled back pretty much straight away to the last known version that did work). I’ve cleared browser cache, cookies, hosted app data, etc etc.

The one thing I’ve been able to discern is that it looks like my Plex server has a cert installed for plex.direct that doesn’t match the plex.direct address that is being issued. (No amount of cache clearing, renewing the certs etc has managed to make this match - I see a new cert installed in the server, but the plex.direct address still seems to point to the old one. (I’ve no idea how this plex.direct works, so I don’t know if that’s relevant or not…) To try and eliminate the plex direct thing, I’ve run through a reverse proxy using only HTTP (local side) and having disabled remote access all together, and I’m still unable to get signed in or claim the server.

I have tried installing fresh servers, on fresh machines, on separate networks, I’ve tried using different browsers and machines for signing in - I’ve even spun up a few virtual browsers in docker to eliminate any cache or cookie stuff. Still nothing - no matter fresh server or old, nothing helps.

I keep seeing:

GET https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1&includeSettings=1&includeSharedSettings=1&X-Plex-Product=Plex%20Web&X-Plex-Version=4.8.3&X-Plex-Client-Identifier=7lky0udti0qptauqixsyio89&X-Plex-Platform=Chrome&X-Plex-Platform-Version=79.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=hosted&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=850x868%2C1920x1080&X-Plex-Language=en-GB&X-Plex-Token=XXXXXXXXXX 500 (Internal Server Error)

and

GET https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1&includeSettings=1&includeSharedSettings=1&X-Plex-Product=Plex%20Web&X-Plex-Version=4.8.3&X-Plex-Client-Identifier=7lky0udti0qptauqixsyio89&X-Plex-Platform=Chrome&X-Plex-Platform-Version=79.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=hosted&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=850x868%2C1920x1080&X-Plex-Language=en-GB&X-Plex-Token=XXXXXXXXXX 500 (Internal Server Error)

in the developer console - as well as (if I connect locally):

GET http://127.0.0.1:32400/media/providers?X-Plex-Product=Plex%20Web&X-Plex-Version=3.108.2&X-Plex-Client-Identifier=arsnmiz65sbilyeuo8u1wsgc&X-Plex-Platform=Chrome&X-Plex-Platform-Version=79.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=bundled&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=850x868%2C1920x1080&X-Plex-Language=en-GB net::ERR_CONNECTION_REFUSED

I’m not sure why it’s trying to talk to 127.0.0.1 though, as the server isn’t localhost.

I also keep seeing this in the server logs:
ERROR - Error issuing curl_easy_perform(handle): 60

However, the machine this is running on is kept up to date with NTP (and I’ve verified that it’s correct on various other machines) - I thought maybe this would have something to do with the mismatched certs?

This all seems to me like some sort of plext.tv or plex api issue - but as it happened right after I upgraded, I can’t be sure. The fact that fresh server installs on separate networks all give me the same issue - could there be something at the Plex side of things that has “stuck”?

I don’t know, a full 24 hours troubleshooting the same thing over and over and over is somewhat draining… I think I need a coffee now.

Any help much appreciated, I can of course provide logs or whatever else may help.

Thanks,
David

Zip of all the logs, instead of snips please

And loopback address 127.0.0.1 is mandatory for a PMS server!

Yeah, I get that about loopbacks - but I’m seeing that in the developer console of the client I’m trying to connect from, so I thought it should have been trying to connect to the private address and not the loopback. If that is just the developer console telling me that the server is connecting to itself, then it’s not an issue. I’m just not massively familiar with the developer console.

Anyway, there’s information in my logs that I’d rather not be public - can I send you these non publicly?

Thanks,
David

Sure, NP

Can you for a start try and reboot your unraid.

I see certificate problems here, and have seen in the past, that for some unknown reason, intermediate certs only goes into action after a complete OS restart :frowning:

Then report back

Sure thing! Thanks :slight_smile:

No change, still getting the login loop and

GET https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1&includeSettings=1&includeSharedSettings=1&X-Plex-Product=Plex%20Web&X-Plex-Version=3.108.2&X-Plex-Client-Identifier=pnxcqf80k6gccmp6c9bfmpwp&X-Plex-Platform=Chrome&X-Plex-Platform-Version=79.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=bundled&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=850x868%2C1920x1080&X-Plex-Language=en-GB&X-Plex-Token=XXXXXXXX 500 (Internal Server Error)

in the developer console.

Fresh logs?

Edit: still seeing
DEBUG - CERT: incomplete TLS handshake: sslv3 alert certificate unknown in the server logs

Plex Media Server.log (97.5 KB) Plex Media Server.1.log (688.9 KB)

These are fresh logs from a new container on a separate machine.

Seeing this in the developer console:
GET http://127.0.0.1:32400/media/providers?X-Plex-Product=Plex%20Web&X-Plex-Version=3.108.2&X-Plex-Client-Identifier=u6dds75ejfky58frtwtycqbk&X-Plex-Platform=Chrome&X-Plex-Platform-Version=79.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media&X-Plex-Model=bundled&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=850x868%2C1920x1080&X-Plex-Language=en-GB net::ERR_CONNECTION_REFUSED

Same login loop and internal error.

Latest logs, I see something is req. :32400/identity on your public address?

Could you describe your setup a bit?

Original server is unraid, running this docker image: https://hub.docker.com/r/binhex/arch-plexpass

Second fresh server is unraid again - same version, different hardware. I’ve spun up https://hub.docker.com/r/plexinc/pms-docker instead. Completely fresh install, nothing touched except for the friendly server name.

Both are running as host networks in docker, no port conflicts with anything else.

What else would be of import that you’d like to know? Both machines are on the same switch, same subnet. DNS is managed by a pair of Pi-Holes (all plex domains except for analytics are allowed and available), and I’m trying to manage the Plex instances from Chrome/Brave/MS Edge on a Windows 10 machine (same subnet, same switch, same DNS) and an android device (chrome and firefox), both via LTE to rule out my network config and via wireless. Same results every time. Login loop and unable to claim server unless I claim it by Claimit. The Plex instances are fully functional, but it doesn’t see me as signed in so I can’t manage anything like shared accounts, or even my account settings.

Edit: Just adding that this all worked flawlessly until the 1.18 upgrade on the morning of 03 oct, and has done for years

If you look in the preferences.xml file, does it state you are online, and with the correct username?

Also, running my claimit script directly on the Plex version of the docker, what does it say?

PublishServerOnPlexOnlineKey="1" PlexOnlineToken="*******" PlexOnlineUsername="alwaysblamedave" PlexOnlineMail="s*******@gmail.com" PlexOnlineHome="1" is in Preferences.xml, if this is what you mean?

Claimit, I’ll have to attach a screenshot, I’m using the windows thing and can’t seem to copy the log.

ClaimIt_2019-10-04_14-43-40

I’ve seen in my logs over the course of this as well, that the PMS keeps pulling auth tokens from somewhere, and every time I modify or update something the number of tokens pulled increases.

Is it possible to invalidate all access tokens or something? I’m honestly, pretty far out of my depth here, but I feel like this some sort of cache, or DNS propagation issue somewhere in the chain.

The thing that really has me stumped is the 500 internal error - is that a Plex.tv server issue, or is that my Plex instance? This whole plex.direct thing and the api (which I know 0 about), and which part of what server is doing what, coupled with a profound lack of sleep is boggling my mind :smiley:

According to that, your PMS did sign in with the info you provided.

Are you 100% sure, that the browser you use is also signed in with the same user?

Claiming the server isn’t the problem - Claimit does exactly what it says it will :+1:

After claiming the server, I get this:



1st is https://192.168.1.124/web/index.html 2nd, I get redirected to app.plex.tv for auth, 3rd, I get redirected back to a blank https://192.168.1.124/web/index.html with a “Internal Server Error. Something went wrong on our end.”

edit:

1 Like

Could this be related to the issue I replied to here? Can not reach PMS servers which are in docker containers

I am unfortunately on a weekend trip now, and I am not able to provide logs until sunday evening at the earliest.

Could you for a small test try with another browser…

I suspect your browser might be using some kinda plugin to block needed stuff?

My current session has worked with these plugins prior to the upgrade, as I’ve said.

Current (chrome) session, I’ve tried incognito - so no plugins. Have then tried a fresh install of Brave (no plugins), MS Edge, and I’ve even spun up a fresh chrome and firefox browser in docker (on yet another machine) - all to the same effect.

Dunno if it’s worth mentioning, but I can still access my original server, as I said: everything “works”. But after the successful auth, it doesn’t “sign me in” for the session:


It is this, that I keep seeing over and over and over again.

I don’t know what’s changed, but all of a sudden we’re up and running again \o/ fantastic.

Thanks @dane22 for your help.