Trailers is unavaible. Please try again later

Hello Guys!

 

Thanks for a very good and informative forum. I am running a computer with UBUNTU 14.04

 

I have an Apple TV (latest version both hardware and firmware) that is causing my already short hair to fall off even faster & more. I am soon bald!

 

The reason for this is simply " Whatever i do , i still get the message "Trailer is unavailable. Please try again later" message when pressing the Trailers app in my Apple TV.

 

I have tried nearly everything. I have read forum topics, guides, videos from 2013 , but nothing seams to help me.

 

Her is what i have done.

 

Created the SERTIFICATE FILES (trailers.cer - trailers.key - trailers.pem)

 

Installed the PLEXCONNECT

 

git clone https://github.com/iBaa/PlexConnect.git

cd PlexConnect/
 
 

 

Placed the 3 certificate files inside the folder /home/robert/PlexConnect/assets/certificates

 

Also added the 192.168.1.94/trailers.cer inside my APPLE TV - MENU - Send Data To APPLE play button procedure.

 

Then:

 

sudo ./PlexConnect.py

 

 

This resulting in PLEXCONNECT running fine. Then tried to open the Trailers APP on my Apple TV. resulting in, guess what? Trailers is unavaible. Please try again later

 

What am I doing wrong?

 

 

 

  • Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software): ATV 3  & 7.0.3 6917

  • The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 192.168.1.94

  • The local IP address of the device that PlexConnect is installed on: 192.168.1.94

  • The device and operating system (including version number) that PlexConnect is installed on: PC & UBUNTU 14.04

  • The device and operating system (including version number) that the Plex media server (PMS) is installed on: PC & UBUNTU 14.04

  • The Plex media server (PMS) version number you are running (do not put 'latest'): 

    Version 2.3.15
    
  • The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.1.94

  • The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any non-standard setup e.g. Plexify or a fork. Version: 0.5-dev

  • The contents of your 'Settings.cfg' file (this is created at first clean shutdown of PlexConnect, using CTR+c) See Below

  • Detail on the media file if it is an issue related to playing a media file (in order to get the necessary information on a particular media file go into the Plex web interface, select the video file, when it brings up the page for the media file click on the "i" information button on the left hand side, it will then bring up a "media info" box, click on the "View XML" button, it will then open a browser window with the relevant information, copy this to http://www.pastebin.com and use the pastebin link to post the details; posting the information directly in the forum may mess up the formatting and generally takes up a lot of space):

  • detailed description of the issue (the clearer you can make this the better):

  • Ensure you post your 'PlexConnect.log' file to pastebin and post the link ('PlexConnect.log' is located in your PlexConnect folder). If possible, follow these steps to create a "more detailed fresh" one:

    • shutdown PlexConnect
    • in 'Settings.cfg', set loglevel to "High" (note the capital 'H')
    • delete the existing log file
    • restart PlexConnect
    • repeat the issue
    • immediately close PlexConnect and post the log.
    • in 'Settings.cfg', set the loglevel back to "Normal"
[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
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 = 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 = .

Here is the output from the Terminal. Please ignore the attached PlexConnect.log (i uploaded wrong)

root@Server:/home/robert/PlexConnect# sudo ./PlexConnect.py
20:40:04 PlexConnect: ***
20:40:04 PlexConnect: PlexConnect
20:40:04 PlexConnect: Press CTRL-C to shut down.
20:40:04 PlexConnect: ***
20:40:04 PlexConnect: started: 20:40:04
20:40:04 PlexConnect: Version: 0.5-dev
20:40:04 PlexConnect: Python: 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2]
20:40:04 PlexConnect: Host OS: linux2
20:40:04 PlexConnect: PILBackgrounds: Is PIL installed? True
20:40:04 PlexConnect: IP_self: 192.168.1.94
20:40:04 DNSServer: started: 20:40:04
20:40:04 DNSServer: ***
20:40:04 DNSServer: DNSServer: Serving DNS on 192.168.1.94 port 53.
20:40:04 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.94
20:40:04 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
20:40:04 DNSServer: forward other to higher level DNS: 8.8.8.8
20:40:04 DNSServer: ***
20:40:04 WebServer: started: 20:40:04
20:40:04 WebServer: ***
20:40:04 WebServer: WebServer: Serving HTTP on 192.168.1.94 port 80.
20:40:04 WebServer: ***
20:40:04 WebServer: started: 20:40:04
20:40:04 WebServer: ***
20:40:04 WebServer: WebServer: Serving HTTPS on 192.168.1.94 port 443.
20:40:04 WebServer: ***
20:41:23 DNSServer: DNS request received!
20:41:23 DNSServer: Source: ('192.168.1.123', 59966)
20:41:23 DNSServer: Domain: trailers.apple.com
20:41:23 DNSServer: ***intercept request
20:41:23 DNSServer: -> DNS response: 192.168.1.94

Here is the correct PLEXConnect.Log file itself

Firewall?

I am connected straight from my ZYXEL MODEM/ROUTER. I have NAT 32400 to 192.168.1.94. Plex works fine outside also.

How can i check if UBUNTU has FW enabled ? And what must i deactivate ?

I typed: ufw status

Got this:

Status: inactive

Also tried to disable dnsmasq - still not working!

Update:

1. I shut down PLEXCONNECT.

2. Deleted all my certificates and created new by entering the following code:

openssl req -new -nodes -newkey rsa:2048 -out /home/robert/PlexConnect/assets/certificates/trailers.pem -keyout /home/robert/PlexConnect/assets/certificates/trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"

openssl x509 -in /home/robert/PlexConnect/assets/certificates/trailers.pem -outform der -out /home/robert/PlexConnect/assets/certificates/trailers.cer && cat /home/robert/PlexConnect/assets/certificates/trailers.key >> ~/Desktop/trailers.pem

3. I restored my Apple TV

4. Apple TV asks me after restore if i want to send Diagnostics to Apple? I selected no

5. I started Plexconnect on my Ubuntu (192.168.1.94)

6. I selected networks setup on my Apple TV - Wireless - Manual DNS to 192.168.1.94

7. I selected Play Button on my Apple TV " Send Data To Apple " - And added a new Profile (there was none profile before)

8. i entered: http://192.168.1.94/trailers.cerand submit.

9. Tested Trailers on my Apple TV , resulting in error: Trailers is unavaible. Please try again later. 

10. I then deleted the Profile and added a new: 192.168.1.94/trailers.cer

11. Tested Trailers on my Apple TV , resulting in error: Trailers is unavaible. Please try again later.

12.. I then deleted the Profile and added a new: http://apple.trailers.com/trailers.cer

13. Tested Trailers on my Apple TV , resulting in error: Trailers is unavaible. Please try again later.

14. I unplugged the power cable from my Apple TV , waited 10 seconds and plugged in.

15. Tested Trailers on my Apple TV , resulting in error: Trailers is unavaible. Please try again later.

So, still not working.

What happens if, with ATV DNS manually set to 192.168.1.94 (point 6 above) and PlexConnect running (point 2 above), you just reboot your ATV ? Does it comes up with just two icons (settings and another one), or with all the icons ?

Her is the last session LOG

What happens if, with ATV DNS manually set to 192.168.1.94 (point 6 above) and PlexConnect running (point 2 above), you just reboot your ATV ? Does it comes up with just two icons (settings and another one), or with all the icons ?

After restart/reboot the APPLE TV says that "no internett is avaible " and then just showing two icons. But after 10 seconds, it changes auotmatically and showing all icons. Maybe this is a delay in the wifi DHCP IP , before accessing internet. 

Plexconnect was running also in the background.

Update!

Tried restart two more times , second time the icons showed instantly , the third time it showed two icons for about 2 seconds before showing all.

So , still stucked!

Since you are able load the certs via network, we know that the connection aTV->PlexConnect is working (:80). We also see DNS requests (:53). The only thing that's missing is Port :443, https.

Two options:

- firewall (still...)

- bad certs.

You got to rule out 1), for 2) PM me a copy of your certs and I will try them in my environment... you can easily make new ones later. :-D

Since you are able load the certs via network, we know that the connection aTV->PlexConnect is working (:80). We also see DNS requests (:53). The only thing that's missing is Port :443, https.

Two options:

- firewall (still...)

- bad certs.

You got to rule out 1), for 2) PM me a copy of your certs and I will try them in my environment... you can easily make new ones later. :-D

1. I dont know what else to do on the FW. If you have any tips i would be grateful you sharing them.

2. Sent you message with files.

Thanks!

12.. I then deleted the Profile and added a new: http://apple.trailers.com/trailers.cer

it shouldn't matter as you tried the ip address as well,

but this address should be: https://trailers.apple.com/trailers.cer

and in this command:

openssl x509 -in /home/robert/PlexConnect/assets/certificates/trailers.pem -outform der -out /home/robert/PlexConnect/assets/certificates/trailers.cer && cat /home/robert/PlexConnect/assets/certificates/trailers.key >> ~/Desktop/trailers.pem

the certificate (.pem) is actually created in ~/Desktop - this file should be moved to /home/robert/PlexConnect/assets/certificates/

@Baa - perhaps a cert-file-exist check upon start of plexconnect could help a little to rule out "obvious" problems ?  

bakman1 - PlexConnect checks for cert availability. It won't start without...

Thanks! Now it worked :slight_smile:


I deleted all certificates then

  1. I corrected the certificate /desktop location to the correct path /home/robert…

  2. But https could not be added as profile, had to be http


    Case closed :slight_smile:

>>2. But https could not be added as profile, had to be http

How should it... there are not certs to make the source "trust-able". :-D

Ask Bakman1 :slight_smile:


Now i have signed in - and all my library is showing. Nice graphics on the player! Very good job:)


But when I press play movie I get an error message. This happen on all every movies.


AN ERROR OCCURED LOADING THIS CONTENT. Try again later.


Any clues for what happening?

AN ERROR OCCURED LOADING THIS CONTENT. Try again later.

This is often caused when specifying DirectPlay in ATVSettings and the file cannot be played natively by the ATV.

Tanks! Solved by setting auto.


Is it still direct play though? And do you recommend using cat 5.e cable or is it enough with WiFi in most circumstances ?


How come that the tvshows can’t be listed up as recently aired or recently added?


I am also curious on how to mark all files on every folders as watched (I know how to do it by holding the select button) not only one folder at a time.

Tanks! Solved by setting auto.

Is it still direct play though? And do you recommend using cat 5.e cable or is it enough with WiFi in most circumstances ?

How come that the tvshows can't be listed up as recently aired or recently added?

I am also curious on how to mark all files on every folders as watched (I know how to do it by holding the select button) not only one folder at a time.


Auto means it will direct play when possible, but transcode when needed (obviously the file before needs transcoding, we would need media info to understand why)

TV shows on mine show in recently aired and recently added, this data is coming from PMS so what does plex web show?

For marking as watched, just do the same hold and select at the show level and it will mark all seasons/episodes as watched/unwatched

Plex web and all other like iPad and iPhone shows recently released and recently added.


But in plexconnect on my Apple TV doesn’t show this. You know why?

They are there in the individual libraries if you have “on deck” selected in the settings under movie options and TV show options.