Quantcast
Channel: PlexConnect (Apple TV 2 & 3) — Plex Forums
Viewing all 540 articles
Browse latest View live

Trailers not available

$
0
0

In the last 2 days, both of my AppleTVs have not been able to connect to Plex via PlexConnect.
I changed 2 things;
1. Router firmware was changed to Gargoyle
2. Add Netflix accounts to both ATVs

The PlexConnect log shows the DNS request, but on 'high' setting does not show any web requests.
Using Wireshark I have logged packets on the PlexConnect server (where Plex is also installed, Windows 7 x64)
Wireshark shows the DNS request and response, then the request for the certificate and the response, but the fun ends there. There are no further requests from the ATV. I have a Plex app on my IPhone which is working perfectly well. The web interface to Plex on any computer also works.

PlexConnect Log: http://pastebin.com/rV0zJfba
PlexConnect settings: http://pastebin.com/u3XpaqwX

Let me know if the Wireshark trace will help anyone?


PlexConnect on Windows 10 failed to connect (RESOLVED)

$
0
0

Hi, thanks for reading, I recently upgraded to Windows 10. Then my plex connect stopped working.
So I found a tutorial https://miapple.me/install-plexconnect-on-windows-10/#comment-11710
Followed step by step, still not working.

On the server side it keeps saying
"Failed to connect to HTTP on 192.168.106.130 port 80: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions".

here's the full report:

01:50:10 PlexConnect: ***
01:50:10 PlexConnect: PlexConnect
01:50:10 PlexConnect: Press CTRL-C to shut down.
01:50:10 PlexConnect: ***
01:50:10 PlexConnect: started: 01:50:10
01:50:10 PlexConnect: Version: 0.5-dev-020615
01:50:10 PlexConnect: Python: 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
01:50:10 PlexConnect: Host OS: win32
01:50:10 PlexConnect: PILBackgrounds: Is PIL installed? False
01:50:10 PlexConnect: IP_self: 192.168.106.130
01:50:10 DNSServer: started: 01:50:10
01:50:10 DNSServer: ***
01:50:10 DNSServer: DNSServer: Serving DNS on 192.168.106.130 port 53.
01:50:10 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.106.130
01:50:10 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld.apple.com.edgesuite.net’] => 127.0.0.1
01:50:10 DNSServer: forward other to higher level DNS: 8.8.8.8
01:50:10 DNSServer: ***
01:50:10 WebServer: started: 01:50:10
01:50:10 WebServer: Failed to connect to HTTP on 192.168.106.130 port 80: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
01:50:10 WebServer: started: 01:50:10
01:50:10 WebServer: ***
01:50:10 WebServer: WebServer: Serving HTTPS on 192.168.106.130 port 443.
01:50:10 WebServer: ***

Here are all the versions of software I downloaded:
- PlexConnect-master
- Python: 2.7.9
- Win32OpenSSL-1_0_2d

And on my ATV3, I just can't add new prpfile, it just stalls, which I believe it's because the server side is not working yet.

My windows account security setting is lowest. Firewall turned off.

Please let me know if there's anything I can do to fix this. Thanks a lot!

Plex Connect on ATV3

$
0
0

When in m the movie library there are options for sorting at the top, in the more section it has an option "By Letter" is there a way I can adjust the position and move that option to the main part of the menu?

PlexConnect not continue playing file after break

$
0
0

I have the issue, that files play very well until i pause it for a while. After resuming it will result in a buffering endless loop.
Is there a solution on it?

Using PlexConnect_daemon

$
0
0

I'll be the first to admit that I don't know much about anything when it comes to Linux.  Using Ubuntu 10.04, python 2.7 (one of a two versions installed)

 

When I execute:

sudo ./PlexConnect_daemon.bash start

 

i get a message indicating that it was successful.  When I use the status command, I'm told that it is running.  But when I click the trailers app on my ATV, it fails to load ("Trailers is unavailable.")  Since python 2.7 isn't the default version of python installed, I assume that it's trying to use 2.6 and this is causing problems (as this is the last problem I was having with getting Plexconnect to work at all.) 

 

How do I get it to use python 2.7?

 

 

 

 

PMS require SSL & PlexConnect?

$
0
0

Is it possible to get PlexConnect to work if the PMS >network>Require SSL is enabled? It doesn't work for me if I enable it.

No Items available and pms_uuid_not_found

$
0
0

After some problems with the DirectPlay with subtitles I decided to update the PlexConnect (to the last one downloaded from github) and Plex Media Server (0.9.8.6.175) on a Windows 7 machine.

 

Everything is well setuped and I tried several times. But still can't get it to work back again.

Once in trailers it looks that its does not discover de PMS. The PlexConnect console log shows 1 discovered, and after pressing on discover and afterwards "selecting" my PMS, instead of showing pms_uuid_not_found I go back to Library and I get a "No items available"

 

Any idea or update coming?

Issue with port 80

$
0
0

Hello!

I have a problem with port 80.
I have read this thread and maybe that is also my problem:
https://forums.plex.tv/discussion/175761/port-80-in-use-by-windows-fix

However my Windows is in danish and i just cannot locate the World Wide Web Publishing-Service anywhere. Can someone help me?
https://15254b2dcaab7f5478ab-24461f391e20b7336331d5789078af53.ssl.cf1.rackcdn.com/plex.vanillacommunity.com/editor/vi/173hfd5d5bz2.jpg

Here is my log of my Plexconnect:

And here is my netstat:

C:\Users\Jacob>netstat

Active Connections

Proto Local Address Foreign Address State
TCP 127.0.0.1:5354 Jacob-Pc:51647 ESTABLISHED
TCP 127.0.0.1:5354 Jacob-Pc:51648 ESTABLISHED
TCP 127.0.0.1:7112 Jacob-Pc:49673 ESTABLISHED
TCP 127.0.0.1:27015 Jacob-Pc:51763 ESTABLISHED
TCP 127.0.0.1:49673 Jacob-Pc:7112 ESTABLISHED
TCP 127.0.0.1:49713 Jacob-Pc:49714 ESTABLISHED
TCP 127.0.0.1:49714 Jacob-Pc:49713 ESTABLISHED
TCP 127.0.0.1:49716 Jacob-Pc:49712 CLOSE_WAIT
TCP 127.0.0.1:49719 Jacob-Pc:49712 CLOSE_WAIT
TCP 127.0.0.1:49723 Jacob-Pc:49724 ESTABLISHED
TCP 127.0.0.1:49724 Jacob-Pc:49723 ESTABLISHED
TCP 127.0.0.1:49747 Jacob-Pc:49748 ESTABLISHED
TCP 127.0.0.1:49748 Jacob-Pc:49747 ESTABLISHED
TCP 127.0.0.1:49749 Jacob-Pc:49750 ESTABLISHED
TCP 127.0.0.1:49750 Jacob-Pc:49749 ESTABLISHED
TCP 127.0.0.1:49751 Jacob-Pc:49752 ESTABLISHED
TCP 127.0.0.1:49752 Jacob-Pc:49751 ESTABLISHED
TCP 127.0.0.1:49753 Jacob-Pc:49754 ESTABLISHED
TCP 127.0.0.1:49754 Jacob-Pc:49753 ESTABLISHED
TCP 127.0.0.1:49755 Jacob-Pc:49756 ESTABLISHED
TCP 127.0.0.1:49756 Jacob-Pc:49755 ESTABLISHED
TCP 127.0.0.1:49757 Jacob-Pc:49758 ESTABLISHED
TCP 127.0.0.1:49758 Jacob-Pc:49757 ESTABLISHED
TCP 127.0.0.1:49759 Jacob-Pc:49760 ESTABLISHED
TCP 127.0.0.1:49760 Jacob-Pc:49759 ESTABLISHED
TCP 127.0.0.1:51647 Jacob-Pc:5354 ESTABLISHED
TCP 127.0.0.1:51648 Jacob-Pc:5354 ESTABLISHED
TCP 127.0.0.1:51763 Jacob-Pc:27015 ESTABLISHED
TCP 127.0.0.1:60121 Jacob-Pc:60120 TIME_WAIT
TCP 127.0.0.1:60122 Jacob-Pc:60123 TIME_WAIT
TCP 127.0.0.1:60123 Jacob-Pc:60122 TIME_WAIT
TCP 127.0.0.1:60126 Jacob-Pc:60125 TIME_WAIT
TCP 127.0.0.1:60127 Jacob-Pc:60124 TIME_WAIT
TCP 127.0.0.1:60129 Jacob-Pc:60128 TIME_WAIT
TCP 127.0.0.1:60131 Jacob-Pc:60130 TIME_WAIT
TCP 127.0.0.1:60133 Jacob-Pc:60132 TIME_WAIT
TCP 127.0.0.1:60135 Jacob-Pc:60134 TIME_WAIT
TCP 127.0.0.1:60138 Jacob-Pc:60137 TIME_WAIT
TCP 127.0.0.1:60140 Jacob-Pc:60139 TIME_WAIT
TCP 127.0.0.1:60142 Jacob-Pc:60141 TIME_WAIT
TCP 127.0.0.1:60144 Jacob-Pc:60143 TIME_WAIT
TCP 127.0.0.1:60146 Jacob-Pc:60145 TIME_WAIT
TCP 127.0.0.1:60148 Jacob-Pc:60147 TIME_WAIT
TCP 127.0.0.1:60150 Jacob-Pc:60149 TIME_WAIT
TCP 127.0.0.1:60152 Jacob-Pc:60151 TIME_WAIT
TCP 127.0.0.1:60154 Jacob-Pc:60153 TIME_WAIT
TCP 127.0.0.1:60156 Jacob-Pc:60155 TIME_WAIT
TCP 127.0.0.1:60159 Jacob-Pc:60157 TIME_WAIT
TCP 127.0.0.1:60160 Jacob-Pc:60158 TIME_WAIT
TCP 127.0.0.1:60162 Jacob-Pc:60161 TIME_WAIT
TCP 127.0.0.1:60164 Jacob-Pc:60163 TIME_WAIT
TCP 127.0.0.1:60167 Jacob-Pc:60165 TIME_WAIT
TCP 127.0.0.1:60168 Jacob-Pc:60166 TIME_WAIT
TCP 127.0.0.1:60170 Jacob-Pc:60169 TIME_WAIT
TCP 127.0.0.1:60172 Jacob-Pc:60171 TIME_WAIT
TCP 127.0.0.1:60175 Jacob-Pc:60173 TIME_WAIT
TCP 127.0.0.1:60176 Jacob-Pc:60174 TIME_WAIT
TCP 127.0.0.1:60178 Jacob-Pc:60177 TIME_WAIT
TCP 127.0.0.1:60180 Jacob-Pc:60179 TIME_WAIT
TCP 127.0.0.1:60188 Jacob-Pc:60187 TIME_WAIT
TCP 127.0.0.1:60190 Jacob-Pc:60189 TIME_WAIT
TCP 192.168.1.19:58319 193.85.216.232:http ESTABLISHED
TCP 192.168.1.19:58329 82.94.168.12:https ESTABLISHED
TCP 192.168.1.19:59902 192.0.80.239:https TIME_WAIT
TCP 192.168.1.19:59915 i2:https TIME_WAIT
TCP 192.168.1.19:59946 162.125.4.1:https TIME_WAIT
TCP 192.168.1.19:60136 hosted:https ESTABLISHED
TCP 192.168.1.19:60182 hosted:https TIME_WAIT
TCP 192.168.1.19:60186 a92-123-207-250:https ESTABLISHED
TCP [::1]:26143 Jacob-Pc:60185 ESTABLISHED
TCP [::1]:54911 Jacob-Pc:54913 ESTABLISHED
TCP [::1]:54913 Jacob-Pc:54911 ESTABLISHED
TCP [::1]:60185 Jacob-Pc:26143 ESTABLISHED

I hope anyone will be able to help me :)


Port 80 in use by windows ? [FIX]

$
0
0

Hello,

After using plex several years now, i love it...

It worked perfect, still an old plexconnect version but stable.

After the update to windows 10, used win7, plex connect wont start up due to port 80 being used.
With netstat and task manager, found out that the kernel is using it... i dont use other webservers etc.

https://www.dropbox.com/s/38wf5s99p8efwlh/PlexConnect.log?dl=0

I even disabled anti virus, windows firewall etc.

cant get it to work..

pms - 0.9.12.4 1192-9a47d21
windows 10 64 bit

I7 3770K
16Gb

We failed to reach a server. Reason: timed out

$
0
0

AppleTV 3 - 7.2(7512)
DNS - 192.168.0.199
PlexConnect & PMS device IP - 192.168.0.199 on Windows 10 Pro 64bit
PMS Version - 0.9.12.19
PlexConnect version - 0.5-dev-101215

Settings.cfg

[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.0.199
port_pms = 32401
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.0.199
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = Normal
logpath = .

http://pastebin.com/teR3Yuj5

I've been using PlexConnect without issue for the past 6 months, but suddenly I can't get it to work anymore. I can still access my Plex locally or remotely via the Android app, but every time I tried to use my aTV, after a moment it says there are "No Plex Library Sections Available".

I tried changing the settings.cfg to force my local IP to see if that was causing the problems. I've also tried reinstalling PlexConnect, rebooting my computer, aTV, and my router to no avail. I'm stuck watching now via my Chromecast, but my housemates are technically inept making that a less than ideal solution for them.

PlexConnect - ATV4

$
0
0

How do i setup with the new ATV4? Would it work the same as the older versions?

AppleTV3 v7 media server options?

$
0
0

Hi there. Fairly new here so please bear with me.

While I, myself am a Plex Pass user with a Roku and Android, my father is an avid Apple user and has multiple AppleTVs. More than one of them are ATV3 v7 (I know this because I looked into jailbreaking them and you can't.)

He has a new desktop PC with the primary intent to be a media server, and my question is: why should I use Plex for his media instead of something else? One thing I love about Plex is the Netflix-ish grid interface, but from what I've seen on YouTube, the ATV3 apps that can be hacked to use PlexConnect don't look anything like my Plex for Roku does.

Why then should I use PlexConnect instead of an actual app like Air Video HD? I know Plex has more supported formats, but I already know my way around Handbrake so limited formats are an inconvenience rather than a problem.

What limitations can I expect in functionality if I opt to use PlexConnect for ATV3?

I'm really looking for a beautiful, stable, easy to use solution for my parents, and I'm interested to know why hacking Plex into an ATV app would be preferable, interface-wise, to an Apple-sanctioned solution.

OpenPlex UI

$
0
0

Everything seems to be laid out in the wrong order. Why is Plex Icon the sixth interactive item when all preceding five items have to be completely redone after setting the Plex Icon? Why is installing Pillow the second step when the first step is setting the themes, some of which require Pillow to be installed in order to work? It's really aggravating and illogical to use and there are no clear chronological Step By Step directions anywhere. No one wants to watch a video in lieu of an instructional manual. Might I suggest reordering the tabs in the app so that they follow from left to right the order in which they will need to be used upon set up? A written How To would also go a long way.

PlexConnect breaks a channel's URL. Plex Web plays it okay

$
0
0

aTV: Apple TV 3 (A1469), firmware version 7.2
DNS on aTV: set to the IP of my PC (192.168.0.10) which runs PMS & PlexConnect
Local IP: same (192.168.0.10)
PC with PMS & PlexConnect is running Windows 10
PMS version: 0.9.16.3
PlexConnect version: downloaded 23.03.2016 at 20:00 from github. No code changes
Python version: 2.7.11

Contents of the 'Settings.cfg':

[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.0.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.4.4
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.0.10
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = High
logpath = .

Detail on the media file:

<MediaContainer size="1" identifier="com.plexapp.plugins.rodinatv" sourceTitle="RodinaTV" mediaTagPrefix="/system/bundle/media/flags/" prefsKey="/:/plugins/com.plexapp.plugins.rodinatv/prefs">
<Video sourceIcon="http://resources-cdn.plexapp.com/image/source/com.plexapp.plugins.rodinatv.jpg?h=None" key="/video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNgpzNDcKaHR0cDovL2FwaS5yb2RpbmEudHYvZGwvaWNvbnMvMzAwXzMwMF8wLzIzMS5wbmdzNQp0aHVtYnUyMwrQn9C10YDQstGL0Lkg0LrQsNC90LDQu3M1CnRpdGxlczEKMXMzCmNpZGIxczE3CmluY2x1ZGVfY29udGFpbmVydTIxNAoyMjowMC0wMjowMCDQotC10LvQtdC60LDQvdCw0Lsg0JTQvtCx0YDQvtC1INGD0YLRgNC%2ALgowMjowMC0wMjoyMCDQndC%2A0LLQvtGB0YLQuC4KMDI6MjAtMDI6NTAg0JrQvtC90YLRgNC%2A0LvRjNC90LDRjyDQt9Cw0LrRg9C%400LrQsC4KMDI6NTAtMDM6NTUg0JbQuNGC0Ywg0LfQtNC%2A0YDQvtCy0L4hLgowMzo1NS0wNTowMCDQnNC%2A0LTQvdGL0Lkg0L%40RgNC40LPQvtCy0L7RgC4KczcKc3VtbWFyeXMwCnM1CnN0YXJ0cjAK" type="clip" title="Первый канал" summary="22:00-02:00 Телеканал Доброе утро. 02:00-02:20 Новости. 02:20-02:50 Контрольная закупка. 02:50-03:55 Жить здорово!. 03:55-05:00 Модный приговор. " ratingKey="Первый канал" thumb="http://api.rodina.tv/dl/icons/300_300_0/231.png">
<Media audioChannels="2" protocol="hls" optimizedForStreaming="1" container="mp4" audioCodec="aac" videoCodec="h264">
<Part container="mp4" key="http://5.254.126.48:7559/ec8f7ff843c6875ba0daf501f4e033583a1214aa050c19da58557e826b6fea17/1458791788/MuST8uuq/hlsmain/231/141_148.m3u8" file="" optimizedForStreaming="1">
<Stream index="0" selected="1" streamType="1" codec="h264" id="1"/>
<Stream index="1" selected="1" streamType="2" channels="2" codec="aac" id="2"/>
</Part>
</Media>
</Video>
</MediaContainer>

Hello!
First - thank you for a great work. Have been watching the movie collection on AppleTV flawlessly, now I want to connect a Russian IPTV service by means of a Plex channel and encountered a problem. The channel works absolutely okay in the Plex Web Player, unfortunately in PlexConnect only navigation works and stream opening gives an error. I digged a bit and found that for an unknown reason XMLConverter.py appends to the end of stream URL this: MEDIA_ELEMENT_NOT_FOUND
,therefore breaking it for the playing.

This is channel plugin's own log (can be clearly seen the difference in URL before and after going to PlexConnect):

2016-03-23 20:23:38,532 (1330) : WARNING (runtime:1065) - Generating a callback path for a function with no route:
2016-03-23 20:23:38,536 (1330) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1872 bytes
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:717) - Handling request GET /video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNQpiMXMxNwppbmNsdWRlX2NvbnRhaW5lcnUyNgrQn9C10YDQstGL0Lkg0LrQsNC90LDQuyBIRHM1CnRpdGxlczQ3Cmh0dHA6Ly9hcGkucm9kaW5hLnR2L2RsL2ljb25zLzMwMF8zMDBfMC8yNzIucG5nczUKdGh1bWJ1MjE0CjIyOjAwLTAyOjAwINCi0LXQu9C10LrQsNC90LDQuyDQlNC%2A0LHRgNC%2A0LUg0YPRgtGA0L4uCjAyOjAwLTAyOjIwINCd0L7QstC%2A0YHRgtC4LgowMjoyMC0wMjo1MCDQmtC%2A0L3RgtGA0L7Qu9GM0L3QsNGPINC30LDQutGD0L%40QutCwLgowMjo1MC0wMzo1NSDQltC40YLRjCDQt9C00L7RgNC%2A0LLQviEuCjAzOjU1LTA1OjAwINCc0L7QtNC90YvQuSDQv9GA0LjQs9C%2A0LLQvtGALgpzNwpzdW1tYXJ5czIKMjNzMwpjaWRyMAo_
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:814) - Found route matching /video/rodinatv/:/function/CreateChannelClipObject
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:125) - Calling function 'CreateChannelClipObject'
2016-03-23 20:23:41,767 (221c) : DEBUG (networking:166) - Requesting 'http://api.rodina.tv/data.xml?query=get_url&token=TnK2kGIcyLVxxdRSdmBuWqEYjkq9DGUs&key="number|passwd"&value="23|cdb6018dd99714b6124f5af98481f70f"'
2016-03-23 20:23:42,293 (221c) : INFO (logkit:16) - ----->>> FINAL URL: http://5.254.126.48:7559/3e59d74748ae167abb6c170da1f57ec7e8823e11df8e2f139a8a1341ded27616/1458789943/mv62Vq9C/hlsmain/272/146.m3u8
2016-03-23 20:23:42,295 (221c) : WARNING (runtime:1065) - Generating a callback path for a function with no route:
2016-03-23 20:23:42,299 (221c) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1872 bytes
2016-03-23 20:23:43,851 (112c) : DEBUG (runtime:717) - Handling request GET /video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNQpiMXMxNwppbmNsdWRlX2NvbnRhaW5lcnUyNgrQn9C10YDQstGL0Lkg0LrQsNC90LDQuyBIRHM1CnRpdGxlczQ3Cmh0dHA6Ly9hcGkucm9kaW5hLnR2L2RsL2ljb25zLzMwMF8zMDBfMC8yNzIucG5nczUKdGh1bWJ1MjE0CjIyOjAwLTAyOjAwINCi0LXQu9C10LrQsNC90LDQuyDQlNC%2A0LHRgNC%2A0LUg0YPRgtGA0L4uCjAyOjAwLTAyOjIwINCd0L7QstC%2A0YHRgtC4LgowMjoyMC0wMjo1MCDQmtC%2A0L3RgtGA0L7Qu9GM0L3QsNGPINC30LDQutGD0L%40QutCwLgowMjo1MC0wMzo1NSDQltC40YLRjCDQt9C00L7RgNC%2A0LLQviEuCjAzOjU1LTA1OjAwINCc0L7QtNC90YvQuSDQv9GA0LjQs9C%2A0LLQvtGALgpzNwpzdW1tYXJ5czIKMjNzMwpjaWRyMAo_MEDIA_ELEMENT_NOT_FOUND

Apple TV gives a "An error has occured while playing the content" message.
Wireshark shows that PlexConnect gives to aTV broken URL in the XML.
The "key" final URL (with .m3u8) opens and plays in VLC in Windows with no problem.

Attaching "more detailed fresh" PlexConnect.log in 2 parts (sorry for being big):

http://pastebin.com/P3QLx7CY part 1
http://pastebin.com/0XEhscnA part 2

Thank you for your help!

error creating certificate

$
0
0

I downloaded OpenSSL and I am following these instructions: https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Windows-Certificates but I cannot get past the first step.

Here's what outputs:

C:>OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:\trailers.pem -keyout C:\trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com" -config
req [options] outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject output the request's subject
-passin private key password source
-key file use the private key contained in file
-keyform arg key file format
-keyout arg file to send the key to
-rand file;file;...
load the file (or the files in the directory) into
the random number generator
-newkey rsa:bits generate a new RSA key of 'bits' in size
-newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'
-newkey ec:file generate a new EC key, parameters taken from CA in 'file'
-[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)
-config file request template file.
-subj arg set or modify request subject
-multivalue-rdn enable support for multivalued RDNs
-new new request.
-batch do not ask anything during request generation
-x509 output a x509 structure instead of a cert. req.
-days number of days a certificate generated by -x509 is valid for.
-set_serial serial number to use for a certificate generated by -x509.
-newhdr output "NEW" in the header lines
-asn1-kludge Output the 'request' in a format that is wrong but some CA's
have been reported as requiring
-extensions .. specify certificate extension section (override value in config file)
-reqexts .. specify request extension section (override value in config file)
-utf8 input characters are UTF8 (default ASCII)
-nameopt arg - various certificate name options
-reqopt arg - various request text options

It's like it doesn't like the command syntax but I don't know enough about the OpenSSL command to know what needs to be changed... thanks in advance for your help!


Synology - plexconnect failed to start

$
0
0

Updated to DSM 6.0-7321, and updated PMS to 09.16, after upgrade finished plexconnect 05.12 failed to start, after 20 seconds or so plexconnect stops, stating that " httpd-user" does not exist.
Logfile mentioned " failed to connect to HTTPS on port 443 " and " webserver_ssl not alive. shutting down.

I did nothing to change plexconnect, could somebody help me out here to get plexconnect working again ?

Thanks so much!

"We failed to reach a server" for PlexConnect trying to reach PMS

$
0
0

Hi, I recently had to reconfigure my network when I switched to a new pfsense-based firewall. As part of the change, I moved my core network from 192.168.0.x to 192.168.1.x. I think I've fixed everything up, but I am unable to get PlexConnect to talk to PMS anymore.

If the log is literal in its output, it looks like PlexConnect is generating some funny URLs which are apparently not resolvable by my DNS. Full log pastebin: http://pastebin.com/6YVxdKNk The specific error is:

21:43:39 PlexAPI: No Response from Plex Media Server
21:43:39 PlexAPI: We failed to reach a server. Reason: [Errno -2] Name or service not known

Some versions:
* I'm on an ATV v3 with 7.2.1. I can confirm that the ATV is pointing at the PlexConnect DNS.
* Both PMS and PlexConnect are running on 192.168.1.13.
* This is an Ubuntu 14.04 LTS machine, all up to date. It has worked for months before this.
* I'm running PMS 0.9.16.3.1840-cece46d.
* I'm running PlexConnect cfd51deffb

Settings.cfg:
[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.1.13
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.1.13
hosttointercept = trailers.apple.com
port_webserver = 8001
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = High
logpath = .

Any help is greatly appreciated! Thanks!

Ubuntu 15+, Debian 8+, Raspbian (Jessie) guide for Service installation (AutoStart)

$
0
0

Background Story

I have been running Plexconnect as a service through sysvinit (/etc/init.d/) as explained in this post:
https://forums.plex.tv/discussion/156534/install-on-ubuntu-server#latest

After each reboot i still had to restart the service because it would start as

Active (exited)

I belive that's because in order to get the init file to work now one would have to remove plexmediaserver

# Required-Start: networking **plexmediaserver**

from /etc/init.d/plexconnect for it to work properly. This is because now Ubuntu uses systemd, naturally Plex Media Server now comes with a unit file (systemd) . So what we need now is a systemd unit file for plexconnect. Ill follow most of the old steps as i have no intention of reinventing the wheel.

It's also worth mentioning if you have your init.d script running without any issues, you dont need to follow this guide.

Removing the old sysvinit script (/etc/init.d/plexconnect)
(If you never followed the old guide you obviously dont have to do this)

Stop the server:

sudo service plexconnect stop

Backup your current script in case our new unit file does not work for you!

sudo mv /etc/init.d/plexconnect /etc/init.d/plexconnect.bak

Remove the script from rc.d

sudo update-rc.d plexconnect remove

Now you are ready to proceed.

If for some reason our new unit file does not work:

sudo mv /etc/init.d/plexconnect.bak /etc/init.d/plexconnect
sudo update-rc.d plexconnect defaults

How to Install

Full installation documentation can be found here:
https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Linux

We start by downloading Plexconnect, moving it to a more suitable location, adding some sql keys & certificates for the appletv and then moving the certificates. Do this commands one at a time (Trippel click on each line and copy) .
(If you allready have Plexconnect you can skip this step)

wget https://github.com/iBaa/PlexConnect/archive/master.zip
unzip master.zip
sudo mv PlexConnect-master/ /usr/local/lib/PlexConnect
openssl req -new -nodes -newkey rsa:2048 -out ./trailers.pem -keyout ./trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
openssl x509 -in ./trailers.pem -outform der -out ./trailers.cer && cat ./trailers.key >> ./trailers.pem
mv trailers.* /usr/local/lib/PlexConnect/assets/certificates/

Now we are going to make the unit file for the startup process:
(If you have installed Plexconnect somewhere else than "/usr/local/lib/PlexConnect" you need to replace this path with yours in every step its mentioned)

sudo nano /etc/systemd/system/plexconnect.service

Paste the following:

[Unit]
Description=Plexconnect
After=plexmediaserver.service

[Service]
Type=simple
ExecStart=/usr/bin/python /usr/local/lib/PlexConnect/PlexConnect.py
User=root
Group=root
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3


[Install]
WantedBy=multi-user.target

Exit and save with: "Ctrl-x, Y, Enter"

Now we need to set the right permissions for our unit file:

 sudo chmod 644 /etc/systemd/system/plexconnect.service

Now we update systemd:

 sudo systemctl daemon-reload

Finally we add our unit file:

sudo systemctl enable plexconnect.service

Now our service is ready and we can start it with:

sudo systemctl start plexconnect.service

You can check your service status with:

sudo systemctl status plexconnect.service

or:

sudo service plexconnect status

Finally, how to setup your apple-tv:
https://github.com/iBaa/PlexConnect/wiki/Install-Guide

Sources:

http://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/
https://gist.github.com/tstellanova/7323116
https://forums.plex.tv/discussion/156534/install-on-ubuntu-server#latest
https://wiki.ubuntu.com/SystemdForUpstartUsers

Sudden PlexConnect problems with latest commit (cfd51de). Need help identifying the problem

$
0
0

So, I updated PlexConnect to commit cfd51de on my Mac Mini (running OS X 10.6.8) and since then, PlexConnect has become unstable. I have to restart the PMS to get it working again. From the log file, can anyone tell me what the issue is? Should I just download to the previous commit?

PlexConnect Log

Using PlexConnect behind nginx

$
0
0

Hi!

 

I'm going to post my current setup, as I couldn't find anything regarding nginx here and I guess it might be useful for some people. There's probably some space for improvements, so feedback is much appreciated! I'm using Ubuntu 14.04 64bit, but that shouldn't really matter.

 

This is the nginx configuration. It's located at /etc/nginx/sites-available/plexconnect. 192.168.0.42 is the IP of my home server where plexmediaserver, plexconnect & nginx are running. Using 127.0.0.1 is not working here, as PlexConnect only listens on 192.168.0.42. 8080 is the http port of plexconnect.

upstream plexconnect {
  server 192.168.0.42:8080;
}

server {
  listen 80;
  server_name trailers.apple.com;

  location / {
    proxy_set_header Host                   $host;
    proxy_set_header X-Real-IP              $remote_addr;
    proxy_set_header X-Forwarded-For        $proxy_add_x_forwarded_for;

    proxy_pass  http://plexconnect;
  }
}

server {
  listen 443;
  server_name trailers.apple.com;

  ssl_certificate         /path/to/plexconnect/assets/certificates/trailers.pem;
  ssl_certificate_key     /path/to/plexconnect/assets/certificates/trailers.key;

  ssl on;

  location / {
    proxy_set_header Host                   $host;
    proxy_set_header X-Real-IP              $remote_addr;
    proxy_set_header X-Forwarded-For        $proxy_add_x_forwarded_for;

    proxy_pass  http://plexconnect;
  }
}

This is the configuration of PlexConnect. Here it's important to change the port_webserver variable. It should match the value in the nginx config (8080 here). enable_webserver_ssl is disabled, SSL is handled by nginx.

[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.0.42
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 8080
enable_webserver_ssl = False
port_ssl = 4443
certfile = ./assets/certificates/trailers.pem
loglevel = Normal
logpath = .
Viewing all 540 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>