Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plexconnect suddendly stopped working

2»

Comments

  • pgbpgb Members Posts: 4 ✭✭

    My PlexConnect install broke after this WSJ change.

    I've updated the settings, to reflect the new hosttointercept value, as well as patched the DNS to allow dashes. I also created a new certificate and reinstalled.

    However, as soon as I access it from my ATV, I get the message that "WSJ is Unavailable".

    Here's my config:

    [PlexConnect]
    enable_plexgdm = True
    ip_pms = 0.0.0.0
    port_pms = 32400
    enable_dnsserver = False
    port_dnsserver = 53
    ip_dnsmaster = 192.168.1.1
    prevent_atv_update = True
    enable_plexconnect_autodetect = True
    ip_plexconnect = 0.0.0.0
    hosttointercept = video-api-secure.wsj.com
    port_webserver = 81
    enable_webserver_ssl = True
    port_ssl = 443
    certfile = /usr/local/plexconnect/etc/certificates/wsj.pem
    allow_gzip_atv = False
    allow_gzip_pmslocal = False
    allow_gzip_pmsremote = True
    loglevel = High
    logpath = /usr/local/plexconnect/var
    
    

    and here's the log after it fails:

    18:56:37 WebServer: pms address:
    
    18:56:37 WebServer: cleaned path:
    /api-video/appletv/wsjvideo/javascripts/application.js
    18:56:37 WebServer: PlexConnect options:
    {'aTVScreenResolution': '720', 'aTVFirmwareVersion': '7.2', 'aTVLanguage': 'en', 'aTVAddress': '192.168.1.21'}
    18:56:37 WebServer: additional arguments:
    
    18:56:37 WebServer: serving /js/application.js
    18:56:37 Settings: getsetting allow_gzip_atv=True
    
    

    As you can see, I'm hitting PlexConnect properly, and it's logging that it is serving application.js. However, it doesn't appear to load on the ATV.

    Any hint? Troubleshoot tip?

  • baabaa Members, Plex Pass, Forum Moderator Posts: 3,954 Forum Mod

    created/installed fresh certs (for new host address)?

  • pgbpgb Members Posts: 4 ✭✭
    baa wrote on June 26 2015, 4:31 AM: »

    created/installed fresh certs (for new host address)?

    Yep. Created with these two commands:

    openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/wsj.pem -keyout ~/Desktop/wsj.key -x509 -days 7300 -subj "/C=US/CN=video-api-secure.wsj.com"
    
    openssl x509 -in ~/Desktop/wsj.pem -outform der -out ~/Desktop/wsj.cer && cat ~/Desktop/wsj.key >> ~/Desktop/wsj.pem
    

    Copied the three files to the proper location and added the profile in the AppleTV. Just tried a wget to the certificate, and I get the proper file, so it's serving it fine.

  • danielfcastrodanielfcastro Members Posts: 1
    edited September 2015

    So far no luck.

    What did I do?
    1 - updated Settings.cfg and it is like that
    [PlexConnect]
    enable_plexgdm = True
    ip_pms = 0.0.0.0
    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
    hosttointercept = video-api-secure.wsj.com
    port_webserver = 81
    enable_webserver_ssl = True
    port_ssl = 444
    certfile = /usr/local/plexconnect/etc/certificates/trailers.pem
    allow_gzip_atv = False
    allow_gzip_pmslocal = False
    allow_gzip_pmsremote = True
    loglevel = High
    logpath = /usr/local/plexconnect/var

    2 - Updated Settings.py line 35 and it is now

    ('hosttointercept' , ('trailers.apple.com', '[a-zA-Z0-9_.-]+')),

    3 - Downloaded the 3 files from post of wahlman.j and put it on /usr/local/plexconnect/etc/certificates/
    drwxr-xr-x 3 root root 4096 Sep 3 20:19 .
    drwxr-xr-x 3 root root 4096 Jul 15 18:54 ..
    drwxrwxrwx 2 root root 4096 Sep 3 20:19 @eaDir
    -rwx------ 1 root root 890 Sep 3 20:18 trailers.cer
    -rwx------ 1 root root 1679 Sep 3 20:18 trailers.key
    -rwx------ 1 root root 2940 Sep 3 20:18 trailers.pem

    4 - Restarted PlexConnect
    5 - Deleted profiles from ATV3
    6 - Retrieved the new certificates inside ATV and created a profile that automatically recieved the name video-api-secure.wsj.com

    But it does not work

    What am I missing?

  • remembranceremembrance Members Posts: 11 ✭✭

    Does not work for me too.
    How should I create cert files it plexconnect running on Cent OS?
    Should I create it on Mac or Cent OS?

  • wahlman.jwahlman.j Members, Plex Pass Posts: 3,266 Plex Pass
    edited November 2015
  • remembranceremembrance Members Posts: 11 ✭✭

    Yes I tried that certs from github.
    Also I tried to change /etc/httpd/conf.d/plexconnect.conf
    and set ServerAlias video-api-secure.wsj.com

    But still having "WSJ Video is unavailable. Try again later"

    And nothing print to PlexConnect.log

    :-(

  • remembranceremembrance Members Posts: 11 ✭✭

    I think that certs from GitHub and generate cert commands for Mac are not applicable for Linux.
    Because when I put trailers.cer trailers.key trailers.pem from package (cp /etc/pki/plexconnect/trailers.* .)
    Everything work well for trailers.
    (Trailers/trailers.* from GitHub does not)

  • remembranceremembrance Members Posts: 11 ✭✭

    My problem has resolved at Nov 7. I've forgot to add paths to cer & key inside Apache configuration file

2»
Sign In or Register to comment.