• 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: remote jellyfin Jellyfin.Api.Auth.CustomAuthenticationHandler problem

     
    • 0 Vote(s) - 0 Average

    SOLVED: remote jellyfin Jellyfin.Api.Auth.CustomAuthenticationHandler problem

    remote jellyfin Jellyfin.Api.Auth.CustomAuthenticationHandler problem
    ahmad
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Mar
    Reputation: 0
    Country:Jordan
    #1
    2024-03-11, 06:12 AM
    i have a jellyfin in a docker container with domian and cloudflare for remote access when watching a movie or a show after some time it stop playing and can't do anything in the webpage and after refresh i got this first image, so i have to close the tab re-enter the domian for it and login again

    here the log from portainer:
    Code:
    [code][07:41:06] [INF] [41] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
    [07:41:06] [INF] [46] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/Books
    [07:41:06] [INF] [202] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/TVSeries/Series
    [07:41:06] [INF] [116] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/Movies
    [07:45:00] [INF] [37] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
    [07:41:06] [INF] [50] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/TVSeries/Anime
    [07:41:06] [INF] [74] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/Music
    [07:45:00] [INF] [37] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
    [07:50:00] [INF] [70] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
    [07:50:00] [INF] [70] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
    [07:41:06] [INF] [41] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 10 seconds[/code]



    here a brief info about my setup: 
    cpu: ryzen 3 3200g
    igpu: amd redaon vega 
    ram: 16GB 
    OS: Debian 12
    Jellyfin version: 10.8.13
    i run jellyfin inside a docker container with an nginx proxy manager with force SSL for remote access and i register a domain with cloudflare and enabled Proxied
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-03-11, 04:30 PM
    I've updated our Nginx Proxy Manager docs recently.

    https://jellyfin.org/docs/general/networ...xy-manager

    Double check your setup lines up with our docs. If it does, we can do some additional troubleshooting.
    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]
    ahmad
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Mar
    Reputation: 0
    Country:Jordan
    #3
    2024-03-26, 11:34 AM (This post was last modified: 2024-03-26, 11:36 AM by ahmad. Edited 1 time in total.)
    (2024-03-11, 04:30 PM)TheDreadPirate Wrote: I've updated our Nginx Proxy Manager docs recently.

    https://jellyfin.org/docs/general/networ...xy-manager

    Double check your setup lines up with our docs.  If it does, we can do some additional troubleshooting.

    Thanks, this works for me.
    gbomacfly
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2025 Apr
    Reputation: 0
    Country:Germany
    #4
    2025-04-09, 04:32 PM
    Hello!
    I have the same problem.
    My computer is running on Proxmox with an OpenMediaVault VM. It contains a Docker container for Jellyfin. Everything works fine, but I keep getting the same error messages, namely three lines:
    Code:
    [18:10:04] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
    [18:10:04] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
    [18:10:04] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.

    My Nginx Proxy Manager is configured as described in the documentation. But when I disable the proxy host or quit NPM, the error persists.
    The debug log also doesn't provide any clues as to the source of the error. An IP or hostname would be helpful.
    Can someone please help me? I'm running out of ideas.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2025-04-09, 05:20 PM
    This is unrelated to Nginx. This is likely a TV client, Android TV or Roku, that has an expired authentication token. You need to find the offending client and log out and log back in on that TV client.
    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]
    gbomacfly
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2025 Apr
    Reputation: 0
    Country:Germany
    #6
    2025-04-10, 06:16 PM
    THX, had found the issue. It was an abandoned Home assistant Container Smiling-face
    « 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