Cannot connect to Plex Media Server

Sonarr version (exact version): 2.0.0.4855
Mono version (if Sonarr is not running on Windows): 5.0.0
OS: CentOS 7.3.1611
((Debug logs)): https://pastebin.com/Ctw03D2R

Description of issue:
Trying to add Plex Media server (Plex Version 1.7.1.3856) to Sonarr, but no matter what combination of IP, username and password I try it immediately comes back with Test Failed and cannot add the server.
I have tried all username combinations, from the local account, the plex.tv account for the server, no username/password.
And tried all of these with the SSL toggle on and off - pretty much every combination (although probably not the one that works!!)

Also the Plex server is set to allow fall back to unsecured on the Local network only.

Sonarr and Plex are on the same server - so have tried both the 127.0.0.1 and Server IP - even though Plex is listening on all interfaces/IPs.

Tried searching but it doesn’t seem to have a possible fix that I could find - please let me know if you need any more logs or information

The authentication is failing when connecting to plex.tv. Sonarr relies on Plex.tv for authentication when connecting to Plex Media Servers, so you’ll need to supply those credentials to Sonarr to authenticate.

I have supplied the email and password that is for the plex server - I even logged into plex.tv and confirmed that this was the case. My email wasn’t verified, but even after verification it doesn’t work.

I have tried just the username, email as username and with/without SSL checked.

Still get the same errors.

Hello,

I believe I’m getting the same issue when setting up a Plex Media Server to sonarr on the same machine.

I’ve attached the trace logs below.

17-7-28 11:37:57.8|Trace|Http|Req: 292 [POST] /api/notification/test
17-7-28 11:37:57.8|Debug|PlexServerService|Getting sections from Plex host: localhost
17-7-28 11:37:57.8|Debug|PlexServerProxy|Authentication Response:
17-7-28 11:37:57.8|Trace|PlexServerProxy|Checking for error
17-7-28 11:37:57.8|Trace|PlexServerProxy|No response body returned, no error detected
17-7-28 11:37:57.8|Error|PlexServerService|Unable to connect to Plex Server

[v2.0.0.4855] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0.
at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00026] in <1fa899c21f554672afbc630cc93b185e>:0
at Newtonsoft.Json.Linq.JObject.Parse (System.String json, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0000c] in <1fa899c21f554672afbc630cc93b185e>:0
at Newtonsoft.Json.Linq.JObject.Parse (System.String json) [0x00000] in <1fa899c21f554672afbc630cc93b185e>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.Authenticate (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x0004a] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy+<>c__DisplayClass14_0.b__0 () [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Common.Cache.Cached1[T].Get (System.String key, System.Func1[TResult] function, System.Nullable`1[T] lifeTime) [0x0006a] in <953b74031cc24d85bc9f58633f142756>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetAuthenticationToken (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00035] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetPlexServerRequest (System.String resource, RestSharp.Method method, NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00026] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetTvSections (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerService.GetSections (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00016] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerService.Test (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0

17-7-28 11:37:57.9|Trace|NzbDroneErrorPipeline|Handling Exception
17-7-28 11:37:57.9|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
– Unable to connect to Plex Server
17-7-28 11:37:57.9|Trace|Http|Res: 292 [POST] /api/notification/test: 400.BadRequest (47 ms)
17-7-28 11:37:57.9|Debug|Api|[POST] /api/notification/test: 400.BadRequest (47 ms)

I’ve attemped to debug for multiple days and I’m stumped! sonarr can connect successfully to deluge, which is also on the same server.

Running a telnet 127.0.0.1 32400 and telnet localhost 32400 works succesfully.

I see you mention that sonarr attempts to login to plex.tv. I’ve input my plex.tv account information correctly into the sonarr connect and no luck unfortunately. When testing on plex.tv the account information works correctly. I’ve attempted using the development version of sonarr and no luck as well. Interestingly, when attempting this using my colleagues sonarr installation, it can connect to the Plex Media Server with no issues.

I’m running sonarr on centos 7 using the centos 7 guide. Is it possible that the root of these issues could be coming from my installation of sonarr? My next testing steps are to install sonarr into a docker container.

(I’ve re-installed sonarr multiple times following each step of the centos 7 guide to the tee)

Thank you in advance for all the time you put into these support tickets, I see you answer almost everyone of them I’ve stumbled across when attempting to debug!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.