PlexConnect icon indicating copy to clipboard operation
PlexConnect copied to clipboard

Can access flex on ATV 2

Open lilamadelief opened this issue 10 years ago • 19 comments

Hi

I am not super computer savvy but I had to restart my ATV2 and reset it and since then I am unable to access my flex server see terminal log below

18:21:27 PlexConnect: *** 18:21:27 PlexConnect: PlexConnect 18:21:27 PlexConnect: Press CTRL-C to shut down. 18:21:27 PlexConnect: *** 18:21:27 PlexConnect: started: 18:21:27 18:21:27 PlexConnect: Version: 0.5-dev-110616 18:21:27 PlexConnect: Python: 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] 18:21:27 PlexConnect: Host OS: darwin 18:21:27 PlexConnect: PILBackgrounds: Is PIL installed? False 18:21:27 PlexConnect: IP_self: 192.168.1.36 18:21:27 DNSServer: started: 18:21:27 18:21:27 DNSServer: *** 18:21:27 DNSServer: DNSServer: Serving DNS on XXX.XXX.X.XX port 53. 18:21:27 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.36 18:21:27 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1 18:21:27 DNSServer: forward other to higher level DNS: 8.8.8.8 18:21:27 DNSServer: *** 18:21:27 WebServer: started: 18:21:27 18:21:27 WebServer: *** 18:21:27 WebServer: WebServer: Serving HTTP on XXX.XXX.X.XX port 80. 18:21:27 WebServer: *** 18:21:27 WebServer: started: 18:21:27 18:21:27 WebServer: *** 18:21:27 WebServer: WebServer: Serving HTTPS on XXX.XXX.X.XX port 443. 18:21:27 WebServer: *** 18:21:30 WebServer: serving /js/application.js 18:21:30 WebServer: serving .xml: / 18:21:30 PlexAPI: *** 18:21:30 PlexAPI: PlexGDM - looking up Plex Media Server 18:21:30 PlexAPI: *** 18:21:31 PlexAPI: GDM: Servers discovered: 1 18:21:31 PlexAPI: Servers (local, plex.tv, MyPlex): 2 18:21:32 WebServer: serving .xml: /PlexConnect.xml 18:21:32 WebServer: serving /js/utils.js 18:21:32 WebServer: serving /js/handlePlexConnectNavbar.js 18:21:32 WebServer: serving .xml: /library/sections 18:21:32 PlexAPI: No Response from Plex Media Server 18:21:32 PlexAPI: We failed to reach a server. Reason: Unauthorized 18:21:32 PlexAPI: Traceback: Traceback (most recent call last): File "/Applications/PlexConnect-master/PlexAPI.py", line 432, in getXMLFromPMS response = urllib2.urlopen(request, timeout=20) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 401: Unauthorized

18:21:32 WebServer: serving /js/utils.js 18:21:33 WebServer: serving /js/sectionHoldSelect.js

I have the correct DNS set-up on the ATV and the right certificate and it use to work perfectly. Note that I use a mac mini as server

Thank you in advance for your help

lilamadelief avatar Sep 17 '16 16:09 lilamadelief

Same error here. I believe I also recently updated pip packages or Python dependencies (via Homebrew).

11:16:36 PlexConnect: PlexConnect
11:16:36 PlexConnect: Press CTRL-C to shut down.
11:16:36 PlexConnect: ***
11:16:36 PlexConnect: started: 11:16:36
11:16:36 PlexConnect: Version: 0.5-dev-110516
11:16:36 PlexConnect: Python: 2.7.12 (default, Jun 29 2016, 14:05:02)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]
11:16:36 PlexConnect: Host OS: darwin
11:16:36 PlexConnect: PILBackgrounds: Is PIL installed? True
11:16:36 PlexConnect: IP_self: 192.168.1.124
11:16:36 DNSServer: started: 11:16:36
11:16:36 DNSServer: ***
11:16:36 DNSServer: DNSServer: Serving DNS on 192.168.1.124 port 53.
11:16:36 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.124
11:16:36 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
11:16:36 DNSServer: forward other to higher level DNS: 8.8.8.8
11:16:36 DNSServer: ***
11:16:36 WebServer: started: 11:16:36
11:16:36 WebServer: ***
11:16:36 WebServer: WebServer: Serving HTTP on 192.168.1.124 port 80.
11:16:36 WebServer: ***
11:16:36 WebServer: started: 11:16:36
11:16:36 WebServer: ***
11:16:36 WebServer: WebServer: Serving HTTPS on 192.168.1.124 port 443.
11:16:36 WebServer: ***
11:17:33 DNSServer: DNS request received!
11:17:33 DNSServer: Source: ('192.168.1.148', 57518)
11:17:33 DNSServer: Domain: apple.com
11:17:33 DNSServer: ***forward request
11:17:33 DNSServer: -> DNS response from higher level
11:17:42 DNSServer: DNS request received!
11:17:42 DNSServer: Source: ('192.168.1.148', 61895)
11:17:42 DNSServer: Domain: apple.com
11:17:42 DNSServer: ***forward request
11:17:42 DNSServer: -> DNS response from higher level
11:17:46 DNSServer: DNS request received!
11:17:46 DNSServer: Source: ('192.168.1.148', 49406)
11:17:46 DNSServer: Domain: trailers.apple.com
11:17:46 DNSServer: ***intercept request
11:17:46 DNSServer: -> DNS response: 192.168.1.124
11:17:46 DNSServer: DNS request received!
11:17:46 DNSServer: Source: ('192.168.1.148', 61913)
11:17:46 DNSServer: Domain: trailers.apple.com
11:17:46 DNSServer: ***intercept request
11:17:46 DNSServer: -> DNS response: 192.168.1.124
11:17:46 WebServer: serving /js/application.js
11:17:47 WebServer: serving .xml: /
11:17:47 PlexAPI: ***
11:17:47 PlexAPI: PlexGDM - looking up Plex Media Server
11:17:47 PlexAPI: ***
11:17:48 PlexAPI: GDM: Servers discovered: 1
11:17:48 PlexAPI: Servers (local, plex.tv, MyPlex): 2
11:17:48 WebServer: serving .xml: /PlexConnect.xml
11:17:48 WebServer: serving /js/utils.js
11:17:48 WebServer: serving /js/handlePlexConnectNavbar.js
11:17:48 WebServer: serving .xml: /library/sections
11:17:48 PlexAPI: No Response from Plex Media Server
11:17:48 PlexAPI: We failed to reach a server. Reason: Unauthorized
11:17:48 PlexAPI: Traceback:
Traceback (most recent call last):
  File "/Data/downloads/PlexConnect/PlexAPI.py", line 432, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

11:17:48 WebServer: serving /js/utils.js
11:17:49 WebServer: serving /js/sectionHoldSelect.js

mt3 avatar Sep 17 '16 18:09 mt3

Your Plex Media Server and PlexConnect need to be signed in.

PMS : Settings - General - Sign In PlexConnect : Settings - MyPlex Sign In

Hope that helps

cyb3rgh05t avatar Sep 17 '16 19:09 cyb3rgh05t

Logged out. Reset password. Logged in. Worked.

mt3 avatar Sep 18 '16 01:09 mt3

This is what i want, this is exactly what i done (more than one), but still i get this error. https://www.youtube.com/watch?annotation_id=annotation_2964442527&feature=iv&src_vid=FrXx0mrTNRk&v=kz_iPjpht7M

Then you say: 1 PMS : Settings - General - Sign In 2 PlexConnect : Settings - MyPlex Sign In

But i dont see 1: https://www.dropbox.com/s/8vfhs5aa3ictypi/Untitled-1.png?dl=0 and second; its is a script, python thing.... i dont follow the instruction for sign in? Sign in into windows? Cause all i do is run plexconnect.py just like the video above...

wouter-asterisk avatar Sep 18 '16 14:09 wouter-asterisk

  1. u need to go to the Server Tab not the Web Tab.
  2. on the atv open plexconnect, go to settings and sign into myPlex

cyb3rgh05t avatar Sep 18 '16 17:09 cyb3rgh05t

i am playing it through trailers (atv3) and i was already signed in into server tab .....

wouter-asterisk avatar Sep 18 '16 17:09 wouter-asterisk

Is your Plex Media Server also signed in?

cyb3rgh05t avatar Sep 18 '16 17:09 cyb3rgh05t

You mean like this: https://www.dropbox.com/s/dbdg40bfi074yei/2.png?dl=0

wouter-asterisk avatar Sep 18 '16 18:09 wouter-asterisk

Yes there u need to sign into your myplex account and publish your server.

cyb3rgh05t avatar Sep 18 '16 18:09 cyb3rgh05t

thats already done. I only removed my mail below (the white box), as you can see in the screen shot (image).

wouter-asterisk avatar Sep 18 '16 19:09 wouter-asterisk

Sry but on the picture above your server isnt publisht to the network?

cyb3rgh05t avatar Sep 18 '16 19:09 cyb3rgh05t

it isnt published on the web, thats correct

wouter-asterisk avatar Sep 18 '16 20:09 wouter-asterisk

I have same issue on ATV3, in attachement my plex connect log and the plex screenshot. I am sign into myplex account and my server is published on the web! PlexConnect.zip plex access plex remoteaccess

gipasoft avatar Sep 18 '16 21:09 gipasoft

@CyberGhost84

I'm having the same issue issue with "Tailers is unavailable. Try again later" issue when trying to use the the AppleTV Trailers app to access Plex via PlexConnect.

I'm signed into my Plex account on my Plex server, and I have added my local network to the list of "networks that are allowed without auth".

In your earlier post you mentioned;

on the atv open plexconnect, go to settings and sign into myPlex

And this is where I get lost. There's no PlexConnect app on the AppleTV, and the Trailers app doesn't have a settings menu, where are signing into myPlex on the Appletv? Are you setting this in the PlexConnect's Settings.cfg file?

ConorMulhern avatar Sep 19 '16 20:09 ConorMulhern

I was able to solve this issue by entering the IP address of my Plex Media Server under the setting for: "List of IP addresses and networks that are allowed without auth" which can be found under Settings > Server > Network

16:00:59 PlexAPI: No Response from Plex Media Server 16:00:59 PlexAPI: We failed to reach a server. Reason: Unauthorized

The "Unauthorized" message tipped me off, so on a hunch I thought that entering the IP address of the server itself would work, since PlexConnect is calling the PMS on the same machine. Not 100% sure if this is the best solution, but it seems to be functioning fine, now!

I have an AppleTV 3 Running PMS 1.1.4.2757

cb83 avatar Sep 25 '16 20:09 cb83

thanks @cb83 I have solved the issue entering the Plex Media Server IP under the settings for: "List of IP addresses and networks that are allowed without auth"

gipasoft avatar Sep 26 '16 12:09 gipasoft

worked for me as well added the Ip and now I the message is gone. However when I try to play a movie, I get an error occured loading this content. Also I don't see the metadata anymore.

lilamadelief avatar Oct 02 '16 16:10 lilamadelief

Well just ignore my message. I added the IP of the ATV and the one of the PMS and all works.

lilamadelief avatar Oct 02 '16 17:10 lilamadelief

I actually had the same issue with the movie not playing when I entered only the IP address of the PMS. So I changed it and just gave unauth access to anything on my local network by using the ip address + submask: 192.168.1.0/24

Now it works like a charm.

cb83 avatar Oct 02 '16 17:10 cb83