For a couple of months now (maybe 4-5) I’m getting “not authorized” back from my server, this happens maybe once or twice a week and I have to follow https://support.plex.tv/articles/204281528-why-am-i-locked-out-of-server-settings-and-how-do-i-get-in/ to get access back.
At home I access the webinterface via LAN connection and get “Not authorized”, if I try via app.plex.tv I’m getting the unable to connect securely message. Even setting up a portforward to the server and trying via localhost I get “not authorized” if I’m signed in.
I stop the server, remove the Online* keys from Preferences.xml and start the server again. When claiming I often have to try many times before being able to claim, some with no error at all, and some with “unable to sign in at the moment” (or something similar)
I’ve even tried a completely new OS install and not importing anything, still get the same issue after a couple of days / a week.
Looking at the debug and error logs I get the following related to the claim process.
Jul 27, 2023 17:04:57.997 [140063592487736] DEBUG - Request: [127.0.0.1:48644 (Loopback)] POST /myplex/claim?token=xxxxxxxxxxxxxxxxxxxxCFyWDq (11 live) #2c5 GZIP / Accept => text/plain, */*; q=0.01 / Accept-Encoding => gzip, deflate, br / Accept-Language => en / Connection => keep-alive / Content-Length => 0 / Host => localhost:32400 / Origin => http://localhost:32400 / Referer => http://localhost:32400/web/index.html / sec-ch-ua => "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115" / sec-ch-ua-mobile => ?0 / sec-ch-ua-platform => "Windows" / Sec-Fetch-Dest => empty / Sec-Fetch-Mode => cors / Sec-Fetch-Site => same-origin / User-Agent => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.183 / X-Plex-Client-Identifier => qmn0ookfmtem8w01g26u3o46 / X-Plex-Device => Windows / X-Plex-Device-Name => Microsoft Edge / X-Plex-Device-Screen-Resolution => 2560x1321,2560x1440 / X-Plex-Features => external-media,indirect-media,hub-style-list / X-Plex-Language => en / X-Plex-Model => bundled / X-Plex-Platform => Microsoft Edge / X-Plex-Platform-Version => 115.0 / X-Plex-Product => Plex Web / X-Plex-Session-Id => 9ca6c7c9-0098-4d18-8dbc-94f83e5d5173 / X-Plex-Version => 4.108.0 / X-Requested-With => XMLHttpRequest
Jul 27, 2023 17:04:57.998 [140063592487736] DEBUG - [Req#2c5/HCl#82] HTTP requesting POST https://plex.tv/api/claim/exchange?token=xxxxxxxxxxxxxxxxxxxxCFyWDq
Jul 27, 2023 17:04:58.022 [140063681772344] WARN - [HttpClient/HCl#82] HTTP error requesting POST https://plex.tv/api/claim/exchange?token=xxxxxxxxxxxxxxxxxxxxCFyWDq (60, SSL peer certificate or SSH remote key was not OK) (SSL certificate problem: self-signed certificate)
Jul 27, 2023 17:04:58.023 [140063592487736] DEBUG - [Req#2c5] MyPlex: Did token exchange for claim (returnCode: -60)
Jul 27, 2023 17:04:58.023 [140063592487736] DEBUG - [Req#2c5] MyPlex: Got a token poked, let's act on it.
Jul 27, 2023 17:04:58.023 [140063592487736] DEBUG - [Req#2c5/HCl#83] HTTP requesting GET https://plex.tv/api/v2/features?X-Plex-Token=
Jul 27, 2023 17:04:58.050 [140063681772344] WARN - [HttpClient/HCl#83] HTTP error requesting GET https://plex.tv/api/v2/features?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxficate or SSH remote key was not OK) (SSL certificate problem: self-signed certificate)
Jul 27, 2023 17:04:58.050 [140063592487736] WARN - [Req#2c5] FeatureManager: Couldn't get features. Trying again soon.
Jul 27, 2023 17:04:58.050 [140063592487736] DEBUG - [Req#2c5/HCl#85] HTTP requesting GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=
Jul 27, 2023 17:04:58.077 [140063681772344] WARN - [HttpClient/HCl#85] HTTP error requesting GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxficate or SSH remote key was not OK) (SSL certificate problem: self-signed certificate)
Jul 27, 2023 17:04:58.078 [140063592487736] DEBUG - [Req#2c5] [Analytics] Using cached data for privacy preferences
Jul 27, 2023 17:04:58.078 [140063592487736] DEBUG - [Req#2c5/HCl#86] HTTP requesting GET https://plex.tv/api/v2/release_channels?X-Plex-Token=
Jul 27, 2023 17:04:58.104 [140063681772344] WARN - [HttpClient/HCl#86] HTTP error requesting GET https://plex.tv/api/v2/release_channels?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxficate or SSH remote key was not OK) (SSL certificate problem: self-signed certificate)
Jul 27, 2023 17:04:58.105 [140063592487736] DEBUG - [Req#2c5] [AutoUpdateRequestHandler] Using cached data for update channels
Jul 27, 2023 17:04:58.105 [140063696436024] DEBUG - Completed: [127.0.0.1:48644] 500 POST /myplex/claim?token=xxxxxxxxxxxxxxxxxxxxCFyWDq (11 live) #2c5 GZIP 107ms 533 bytes (pipelined: 1)
Trying the same URL with curl for example doesn’t give any SSL errors back
What is going on and what can I do to fix it, it’s getting really annoying.
I’m currently running 1.32.5.7349 on Ubuntu 22.04
Ports forwarded and always accessible from internet when trying.
