• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access SOLVED: DirectPlayError when behind reverse proxy webOS

     
    • 0 Vote(s) - 0 Average

    SOLVED: DirectPlayError when behind reverse proxy webOS

    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #1
    2024-10-18, 06:03 PM (This post was last modified: 2024-10-18, 06:04 PM by andreafontana. Edited 1 time in total.)
    Hi,

    I'm having issues with my reverse proxy configuration. I have both Jellyfin and Nginx Reverse Proxy installed as docker containers on a Zimaboard, and I'm trying to use the official webOS app as client. On local network everything's fine. Outside local network, I can access the web UI from the LG TV, yet I'm experiencing Playback errors. Specifically, whenever I reproduce a file from the beginning, direct play starts and no problem occurs. As soon as I skip forwards or backwards or continue watching an already started film, transcoding is triggered (even though the file is compatible with the client) and I get an error saying "There was an error starting direct playback". All the other clients I tried work fine, so it's related to the webOS app.

    I tried using plain nginx, as well as cloudflare tunnels, same behaviour. I followed the official guides on how to set up npm (also commented the lines that are may cause problems with webOS).

    I tried opening a port and accessing jf from WANIP:port and this problem does not occur. 

    I'm attaching ffmpeg log and the errors I get with cloudflare tunnels.
    .txt   cloudflare tunnels error.txt (Size: 949 bytes / Downloads: 46)
    .txt   log.txt (Size: 60.3 KB / Downloads: 70)

    Any ideas? 

    Thank you,

    Andrea
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-18, 07:19 PM
    In NPM, can you remove all of the "add_header" advanced options?

    These.

    Code:
    # Security / XSS Mitigation Headers
        # NOTE: X-Frame-Options may cause issues with the webOS app
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "0";
        add_header X-Content-Type-Options "nosniff";
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #3
    2024-10-18, 07:24 PM
    (2024-10-18, 07:19 PM)TheDreadPirate Wrote: In NPM, can you remove all of the "add_header" advanced options?

    These.

    Code:
        # Security / XSS Mitigation Headers
        # NOTE: X-Frame-Options may cause issues with the webOS app
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "0";
        add_header X-Content-Type-Options "nosniff";

    I tried already, but didn't solve the issue
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-10-18, 08:14 PM
    Are you using https? If so, are you using legit certs or self-signed certs?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #5
    2024-10-18, 08:48 PM
    Yes, I'm using custom certificates generated through cloudflare
    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #6
    2024-10-18, 09:56 PM
    Update: I also tried setting up Caddy, with https ans got the same result, so I don't think it's due to the reverse proxy.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-10-18, 11:42 PM
    When you're using caddy or nginx proxy manager, is your Cloudflare setup for DNS only or is it proxied?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #8
    2024-10-19, 06:35 AM
    proxied
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-10-19, 05:56 PM (This post was last modified: 2024-10-20, 03:27 PM by TheDreadPirate. Edited 1 time in total.)
    I'm pretty sure that CF's default proxy setup has some XSS/CSP going on that may be preventing your WebOS client from connecting. In the same way we've documented with Nginx and Apache.

    Regardless, using CF's proxy for video streaming is against their TOS. I recommend switching to DNS only since you're already using https.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    andreafontana
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Italy
    #10
    2024-10-20, 08:16 AM
    Yes that's it. I also had to generate certificates with let's encrypt.

    Thank you for your help
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode