Errors Connecting to Plex Server

Posted on
Fri Apr 07, 2017 9:14 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Errors Connecting to Plex Server

Hey all,

I disabled my plex plugin just before the v7 upgrade, as I suspected there'd be issues, and am just now getting back to tinkering with it. I'm up to date with your latest version, but am getting this error in the logs when I enable it.

I have two servers running plex, as I'm migrating from a Mac to a Synology version of it, and whenever I try to add a new client, the selection dropdown shows empty even after I click on the reload button. Here's the error I'm getting. It seems I have a more fundamental problem to address before I can even look at the client stuff:

Started plugin "Plex Media Server Manager 2.0.2"
Plex Media Server Manager Debug Entering deviceStartComm for PlexClient ...Judith's Kindle ; ID=171373959
Plex Media Server Manager Debug Exiting deviceStartComm for PlexClient Judith's Kindle
Plex Media Server Manager Debug Entering deviceStartComm for PlexClient_BedroomTivo; ID=300257015
Plex Media Server Manager Debug Exiting deviceStartComm for PlexClient_BedroomTivo
Plex Media Server Manager Debug Entering deviceStartComm for PlexClient_Ken_HomePhone; ID=1263888577
Plex Media Server Manager Debug Exiting deviceStartComm for PlexClient_Ken_HomePhone
Plex Media Server Manager Debug Entering deviceStartComm for PlexClient_Ken_iPhone; ID=607961155
Plex Media Server Manager Debug Exiting deviceStartComm for PlexClient_Ken_iPhone
Plex Media Server Manager Debug Entering deviceStartComm for PlexServer; ID=414828026
Plex Media Server Manager Debug Concurrent Processing Thread started for device 414828026
Plex Media Server Manager Debug Exiting deviceStartComm for PlexServer
Plex Media Server Manager Debug Entering deviceStartComm for PlexSrvr-ShrxNology; ID=1445739158
Plex Media Server Manager Debug Concurrent Processing Thread started for device 1445739158
Plex Media Server Manager Debug Exiting deviceStartComm for PlexSrvr-ShrxNology
Plex Media Server Manager Debug Version check initiated
Plex Media Server Manager Checking for updates...
Plex Media Server Manager Debug Plugin version detected: 2.0.2
Plex Media Server Manager Debug Current version is: 2.0.2
Plex Media Server Manager Debug Getting latest release from RogueProeliator/IndigoPlugins-Plex-Server-Manager-Plugin...
Plex Media Server Manager Debug GET /repos/RogueProeliator/IndigoPlugins-Plex-Server-Manager-Plugin/releases/latest
Plex Media Server Manager Debug HTTP 200 OK
Plex Media Server Manager Debug Latest release is: 2.0.2
Plex Media Server Manager No updates are available
Plex Media Server Manager Debug Executing full status update request...
Plex Media Server Manager Debug Executing full status update request...
Plex Media Server Manager Debug Successfully obtained plex.tv authentication token
Plex Media Server Manager Debug Processing GET operation: https|*|/|*|basic|*|Shrxman|*|PASSWORD_HERE
Plex Media Server Manager Debug Successfully obtained plex.tv authentication token
Plex Media Server Manager Debug Processing GET operation: http|*|/|*|basic|*|Shrxman|*PASSWORD_HERE
Plex Media Server Manager Error Error in plugin execution:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkRESTfulDevice.py", line 315, in concurrentCommandProcessingThread
self.handleRESTfulError(command, e, responseObj)
UnboundLocalError: local variable 'responseObj' referenced before assignment


Any ideas here? I wanted to get this working, along with your Roku plugin, so I can play with auto pause depending on the active device on hand, etc. :-)

Thanx gang!
~ken

Posted on
Fri Apr 07, 2017 10:31 pm
RogueProeliator offline
User avatar
Posts: 2474
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Errors Connecting to Plex Server

Well, you have multiple things going on here, I believe... the first is that the plugin is catching the error basically "too late" and not providing the proper details for when it failed. Give this version a try - it could provide more details for us to look at:

https://github.com/RogueProeliator/IndigoPlugins-Plex-Server-Manager-Plugin/releases/download/v2.0.3/Plex.Media.Server.Manager.indigoPlugin.zip

Next, you may want to turn the debug up to High (using this new version) and restart it -- that should provide a little bit more logging for what is happening. That log shows a second request going to an HTTP destination which can't be it requesting the security token (as that is hard coded to a secure connection) -- so I think we are missing a little logging there most likely due to that logging error.

Adam

Posted on
Fri Apr 07, 2017 11:17 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: Errors Connecting to Plex Server

hey Adam,

thanx again for the reply: So, it seems the infamous urllib3 rears its mighty head again. Either that, or I need a different password other than the one used on plex.tv, which doesn't make sense to me.. I do see a connection refused error, so that could be it, but i'm not sure what password that would even be. lol Here's a snippet, though i have more of the log data if needed:

Plex Media Server Manager Threaddebug Plex.tv Sign-In Response Headers: {'Status': '201 Created', 'X-Request-Id': 'a6305b42-21a9-4fff-87d1-7372ae54a4ad', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Set-Cookie': '_mkra_ctxt=439ff7a0543185bf01cd90e672818508--201; path=/; max-age=5; secure', 'Vary': 'Origin', 'Content-Length': '1924', 'Server': 'nginx', 'Connection': 'keep-alive', 'X-Runtime': '0.107534', 'ETag': '"39c8f0f7ca5361bc473718cb321cb2c2"', 'Location': '/', 'Cache-Control': 'max-age=0, private, must-revalidate', 'Date': 'Sat, 08 Apr 2017 05:11:23 GMT', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, DELETE, OPTIONS', 'Content-Type': 'application/xml; charset=utf-8', 'X-Frame-Options': 'DENY', 'X-UA-Compatible': 'chrome=1'}
Plex Media Server Manager Debug Successfully obtained plex.tv authentication token
Plex Media Server Manager Threaddebug Command queue has 3 command(s) waiting
Plex Media Server Manager Debug Processing GET operation: http|*|/|*|basic|*|Shrxman|*|PASSWORD_HERE
Plex Media Server Manager Threaddebug Added authentication token to request
Plex Media Server Manager Threaddebug Using login credentials... Username=> Shrxman; Password=>9 characters long
Plex Media Server Manager Error An error occurred executing the GET/PUT request (Device: 1445739158): HTTPConnectionPool(host='192.168.2.228', port=32401): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x113f468d0>: Failed to establish a new connection: [Errno 61] Connection refused',))
Plex Media Server Manager Threaddebug Command queue has 2 command(s) waiting
Plex Media Server Manager Debug Processing GET operation: http|*|/status/sessions|*|basic|*|Shrxman|*|PASSWORD_HERE
Plex Media Server Manager Threaddebug Added authentication token to request
Plex Media Server Manager Threaddebug Using login credentials... Username=> Shrxman; Password=>9 characters long
Plex Media Server Manager Error An error occurred executing the GET/PUT request (Device: 1445739158): HTTPConnectionPool(host='192.168.2.228', port=32401): Max retries exceeded with url: /status/sessions (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x114009710>: Failed to establish a new connection: [Errno 61] Connection refused',))
Plex Media Server Manager Threaddebug Command queue has 1 command(s) waiting
Plex Media Server Manager Debug Processing GET operation: http|*|/clients|*|basic|*|Shrxman|*|PASSWORD_HERE
Plex Media Server Manager Threaddebug Added authentication token to request
Plex Media Server Manager Threaddebug Using login credentials... Username=> Shrxman; Password=>9 characters long
Plex Media Server Manager Error An error occurred executing the GET/PUT request (Device: 1445739158): HTTPConnectionPool(host='192.168.2.228', port=32401): Max retries exceeded with url: /clients (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x114009590>: Failed to establish a new connection: [Errno 61] Connection refused',))
Plex Media Server Manager Threaddebug Plex.tv Sign-In Response: [201] <?xml version="1.0" encoding="UTF-8"?>
<user email="shrxman@gmail.com" id="1236821" uuid="4a01d47f0e30dc62" mailing_list_status="active" thumb="https://plex.tv/users/4a01d47f0e30dc62/avatar?c=2017-04-08+05%3A11%3A04+UTC" username="shrxman" title="shrxman" cloudSyncDevice="" locale="" authenticationToken="3L6qbLPMpfXRVtJgp28q" authToken="3L6qbLPMpfXRVtJgp28q" scrobbleTypes="" pin="60d288c17eb0cc0434cde0c45a0f03b664faf1bf867a3d110def04b49a0c9821" restricted="0" home="1" guest="0" queueEmail="queue+BquVwezAV1toDSzxiJVz@save.plex.tv" queueUid="c9c243144c3299a1" homeSize="4" maxHomeSize="15" rememberMe="false" secure="1" certificateVersion="2">

Posted on
Mon Apr 10, 2017 9:00 pm
RogueProeliator offline
User avatar
Posts: 2474
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Errors Connecting to Plex Server

It looks like the connection to your local Plex server is over HTTP... have you tried selecting "Secure - https" as the Method in the Plex Server (Indigo Device) Properties?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest