hezten
June 22, 2013, 11:02pm
1
Im gettings thiis error trying to play content
01:02:33 XMLConverter: XML_ExpandLine - Error in {{MEDIAURL(Video)}}
Traceback (most recent call last):
File "/home/tonny/PlexConnect/XMLConverter.py", line 477, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/home/tonny/PlexConnect/XMLConverter.py", line 843, in ATTRIB_MEDIAURL
res = PlexAPI_getTranscodePath(self.options, res)
File "/home/tonny/PlexConnect/XMLConverter.py", line 510, in PlexAPI_getTranscodePath
vRes = quality[setQuality][0]
KeyError: '9'
i added some networks to preferences.xml to allow playback from my girlfriends ip, but that does not seem to work ?
- Tonny
hezten
June 22, 2013, 11:03pm
2
btw i can browse the movies and tv shows, but images are now showing (thumbnails)
f00b4r
June 22, 2013, 11:32pm
3
This is not a supported setup but if you search the forums you will find that someone resolved this issue.
You will continue to have issues if your girlfriend has a dynamic IP though as it will break again.
hezten
June 22, 2013, 11:35pm
4
any clues for what to search for ? tried "networks" and "preferences.xml"
f00b4r
June 22, 2013, 11:46pm
5
hezten
June 23, 2013, 12:03am
6
hmm disable gdm in settings does not prevent gdm lookup when i start the plexconnect. Also adding the correct network to plex does not get the streaming to work, i also tried proxying the trafic through apache, but as my settings are ignored ang gdm is used instead, this is not possible. How do i disable gdm so my settings for plex ip and port number is effective ?
baa
June 23, 2013, 6:43am
7
set "enable_plexgdm = False". not 'false' or whatever... what did you set it to?
hezten
June 23, 2013, 9:28am
8
i set it to False also tried false.. its still using gdm.
hezten
June 23, 2013, 9:30am
9
Look :-)
root@XBMCLive:/home/tonny/PlexConnect# grep "enable_plexgdm" Settings.cfg
enable_plexgdm = False
root@XBMCLive:/home/tonny/PlexConnect# ./PlexConnect.py
11:32:02 PlexConnect: started: 11:32:02
11:32:02 PlexConnect: ***
11:32:02 PlexConnect: PlexConnect
11:32:02 PlexConnect: Press ENTER to shut down.
11:32:02 PlexConnect: ***
11:32:02 PlexConnect: IP_self: 194.255.31.57
11:32:02 PlexConnect: started: 11:32:02
11:32:02 DNSServer: started: 11:32:02
11:32:02 DNSServer: ***
11:32:02 DNSServer: Starting up.
11:32:02 DNSServer: intercept trailers.apple.com: 194.255.31.57
11:32:02 DNSServer: forward other to higher level DNS: 8.8.8.8
11:32:02 DNSServer: ***
11:32:02 WebServer: started: 11:32:02
11:32:02 WebServer: ***
11:32:02 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
11:32:02 WebServer: ***
11:32:02 PlexGDM: ***
11:32:02 PlexGDM: looking up Plex Media Server
11:32:02 PlexGDM: ***
11:32:03 PlexGDM: servers discovered: 1
11:32:03 XMLConverter: PlexGDM - PMS: 194.255.31.57:32400
So even if it is set to false it looks up the server.
baa
June 23, 2013, 9:44am
10
Nice... you are right: You found a bug... you may keep it. :-D
Or grab the latest commit, it should be fixed now.
hezten
June 23, 2013, 11:32am
11
awesome.. i will test again soon as possible.. the apache mod_proxy should bix the issue and let plex think all connections are comming from localhost wuhuu
hezten
June 23, 2013, 11:48am
12
hmm oki i set up apache proxypass / http://194.255.31.255:32400 and let apache listen on port 8090 changed the pms port to 8090 in settings.cfg, now i get this
Error response
Error code 403.
Message: Not Serving Client 212.37.130.28.
Error code explanation: 403 = Request forbidden -- authorization will not help.
hezten
June 23, 2013, 11:58am
13
i would think the client should be 194.255.31.57 not 212.37.130.28 as the request is proxied though 194.255.31.57, does plexconnect send source ip in some way that can be altered ?
baa
June 23, 2013, 2:59pm
14
>> hmm oki i set up apache proxypass / http://194.255.31.255:32400 and let apache listen on port 8090 changed the pms port to 8090 in settings.cfg, now i get this
I dont think that is correct. There is no issue with PMS here.
What you have to do - as far as I understand:
- keep PMS on port 32400
- let Apache listen on port 80, forwarding the aTV to port 8090
- set PlexConnect to listen on port 8090 (port_webserver)
I don't think this is what you were doing, is it?
hezten
June 23, 2013, 3:12pm
16
ok so now plexconnect webserver is listening on port 8090 and i have setup this in apache
and apache is listening on port 80
plex is running with his
root@XBMCLive:/home/tonny/PlexConnect# ./PlexConnect.py
17:13:09 PlexConnect: started: 17:13:09
17:13:09 PlexConnect: ***
17:13:09 PlexConnect: PlexConnect
17:13:09 PlexConnect: Press ENTER to shut down.
17:13:09 PlexConnect: ***
17:13:09 PlexConnect: IP_self: 194.255.31.57
17:13:09 PlexConnect: started: 17:13:09
17:13:09 DNSServer: started: 17:13:09
17:13:09 DNSServer: ***
17:13:09 DNSServer: Starting up.
17:13:09 DNSServer: intercept trailers.apple.com: 194.255.31.57
17:13:09 DNSServer: forward other to higher level DNS: 8.8.8.8
17:13:09 DNSServer: ***
17:13:09 WebServer: started: 17:13:09
17:13:09 WebServer: ***
17:13:09 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 8090.
17:13:09 WebServer: ***
17:13:09 XMLConverter: PlexGDM off - PMS from settings: 194.255.31.57:32400
17:13:36 DNSServer: DNS request received!
17:13:36 DNSServer: Source: ('195.215.209.204', 54072)
17:13:36 DNSServer: Domain: api-global.netflix.com
17:13:36 DNSServer: ***forward request
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.22 (Ubuntu) Server at 194.255.31.57 Port 80
Error log says
root@XBMCLive:~# tail -f /var/log/apache2/error.log
[Sun Jun 23 17:13:04 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:11 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:11 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:11 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:13 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:13 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:14 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:22 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:22 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
[Sun Jun 23 17:13:22 2013] [error] proxy: HTTP: disabled connection for (194.255.31.57)
hezten
June 23, 2013, 3:15pm
17
changed the listening ip from 0.0.0.0 to 194.255.31.57 now the browser gives the same error again
Error response
Error code 403.
Message: Not Serving Client 194.255.31.57.
Error code explanation: 403 = Request forbidden -- authorization will not help.
seems that my own client is now allowed.. pms runs on 194.255.31.57 that ip is listed in allowed networks.
f00b4r
June 23, 2013, 3:15pm
18
You may want to wait for MyPlex support (you will only have to undo all of this when it arrives soon anyway).
f00b4r
June 23, 2013, 3:18pm
19
Or check out the Linux guide thread for Apache stuff
hezten
June 23, 2013, 3:22pm
20
even with 127.0.0.1 if fails
Error response
Error code 403.
Message: Not Serving Client 127.0.0.1.
Error code explanation: 403 = Request forbidden -- authorization will not help.
so now plexconnect is running webserver on 127.0.0.1:8090 and apache is forwarding via proxy / to http://127.0.0.1:8090 and listening on port 80
how the heck do i allow localhost ? seems its forbiden i have set 127.0.0.1/255.255.255.0 in allowed network settings.