• 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 SOLVED: Android TV fails to connect to server (SSL handshake failure)

     
    • 0 Vote(s) - 0 Average

    SOLVED: Android TV fails to connect to server (SSL handshake failure)

    Android TV fails to connect to server
    OmegaSupreme3
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    Country:Netherlands
    #1
    2025-07-23, 06:27 AM (This post was last modified: Yesterday, 10:22 PM by OmegaSupreme3. Edited 6 times in total.)
    After update to 0.18.11 the app cannot connect to my server anymore, the reverse proxy reports a SSL handshake failure. Before the update I've never experienced any problems with the app. The setup has been working for almost a year without problems.
    • I use a Google ChromeCast 4K (up-to-date)
    • WiFi connection is working (can browse videos etc.)
    • The reverse proxy is configured to use a non self-signed SSL certificate (Sectigo). The certificate is valid
    • The reverse proxy also is used for other services and none of those services experience problems
    • No configuration changes have been made to the reverse proxy
    • No configuration changes have been made to JellyFin server (10.10.7 running since release)
    • JellyFin through the webbrowser, MediaPlayer and the regular Android app work without problems. Both from inside and outside the network

    What did I try?
    • I tried connecting directly to the JellyFin server HTTPS (8095), bypassing the reverse proxy, but no connection could be made
    • I also tried through direct connecting to the JellyFin server HTTP (8096), bypassing the reverse proxy, but no connection could be made
    • Remove server settings from the app. Did not resolve the issue
    • Remove the cache/data for the Android TV app. Did not resolve the issue
    • Reinstalled the Android TV app. Did not resolve the issue
    • Tried with a different Google ChromeCast 4K. Same issues occur
    • Checked the logs of JellyFin and couldn't find any relevant information. It seems the app doesn't connect to JellyFin server at all. The logs do not show any information
    • Checked the operating system logs, also no relevant information is shown
    • 'netstat' on the system running JellyFin doesn't reveal any pending connections as well

    The latter seems to indicate that the issue I have might be more of a general connection issue, not only related to SSL connections.

    What steps can I take to start resolving this issue? Are there any debug logs for the app?
    Go to solution
    bitmap
    Offline

    Community Moderator

    Posts: 942
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #2
    2025-07-23, 05:50 PM
    Debug logs can be enabled, but generally aren't going to provide useful information for an issue like this one. What version of Jellyfin server are you running? Additionally, can you share your RP configuration and info (i.e., which one)?
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    OmegaSupreme3
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    Country:Netherlands
    #3
    2025-07-23, 06:08 PM
    (2025-07-23, 05:50 PM)bitmap Wrote: Debug logs can be enabled, but generally aren't going to provide useful information for an issue like this one. What version of Jellyfin server are you running? Additionally, can you share your RP configuration and info (i.e., which one)?

    I am running Jellyfin server 10.10.7 since it was released. With respect to the proxy I'm running HAProxy, it is just a default out of the box setup. I can share the details with you and I appreciate your intent, but I doubt if it matters since the app also fails to make any direct connection (which means bypassing the proxy) to Jellyfin server. I found that later on and updated my post afterwards. Maybe it isn't clear, I will update it to make it more clear.

    I will enable the debug logs and report back here with my findings.
    OmegaSupreme3
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    Country:Netherlands
    #4
    Yesterday, 10:22 PM (This post was last modified: Yesterday, 10:29 PM by OmegaSupreme3. Edited 4 times in total.)
    Coming back to this issue. So for future reference, I will post my solution. The problem didn't have anything to do with the Jellyfin app or server.

    As usual, problems are hardly every caused by a single factor ...
    • It turned out that, unknown to me, my room mate had recently renewed the SSL certificate and updated it on the reverse proxy
    • Sectigo updated and migrated their root certificates last april 2025 in all known major root stores (https://www.sectigo.com/knowledge-base/d...0000003RoT)
    • However, it appears the certificate store of Android 14 doesn't seem to be entirely up-to-date yet (no problems on Android 16!). So to circumvent this issue, the root certificate had to be added on the reverse proxy.

    How did I found out?
    Checking debug logs for both the reverse proxy and Jellyfin server did not give any indication. So I eventually took the sources of Jellyfin Android TV, had to change some code (min-server-version, app-version) to actually make it work with my Jellyfin server and fired up the debugger in Android Studio. After testing some scenarios I found the cause of the connection problems in the stacktrace (shortened for readability):  Trust anchor for certification path not found.

    Code:
    org.jellyf...HttpClient org.jellyfin.androidtv.debug        E  Unknown SSL error occurred
    org.jellyf...HttpClient org.jellyfin.androidtv.debug        E  javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
    org.jellyf...HttpClient org.jellyfin.androidtv.debug        E  at com.android.org.conscrypt.SSLUtils.toSSLHandshakeException(SSLUtils.java:356)
    org.jellyf...HttpClient org.jellyfin.androidtv.debug        E  at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:218)
    org.jellyf...HttpClient org.jellyfin.androidtv.debug        E  Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

    Would be nice if the Jellyfin app could show a stacktrace of the last known issue (e.g. located behind a "Show Error" button).
    1
    « 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