• 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 User Constantly Online/Disconnected

    Pages (3): « Previous 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Remote User Constantly Online/Disconnected

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-08-27, 08:08 PM
    I switched one of my CCwGTVs out of "app only" mode and it is only checking in once a day-ish.

       
       
    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]
    Fox1977
    Offline

    Junior Member

    Posts: 5
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:France
    #12
    2024-08-27, 08:16 PM
    It does the same for me on a Sony Android TV. If i force the app to stop, after it's not doing it till next time Jellyfin is launched but otherwise it also keeps connecting and disconnecting. I'd like to know how to prevent it if someone has the solution.
    jellyhorse
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    Country:Canada
    #13
    2024-09-06, 05:03 AM (This post was last modified: 2024-09-06, 05:07 AM by jellyhorse. Edited 2 times in total.)
    Ok, I thought maybe I had a reverse proxy misconfiguration so attempted just hosting jellyfin locally on my desktop (windows 11) and connecting to it from my 2019 shield via IP. Still having the same issue!! Here are the logs I was getting on my server with debug logs enabled.

    Also I can reproduce this every time by leaving the jellyfin app open on my shield and not playing any media.

    Code:
    [2024-09-04 16:49:18.463 -04:00] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
    [2024-09-04 16:49:26.163 -04:00] [DBG] [19] Emby.Server.Implementations.Session.WebSocketController: Removing websocket from session "3ad4d490b1a84e779dd30e0ebe45bb4c"
    [2024-09-04 16:49:26.165 -04:00] [DBG] [17] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
    [2024-09-04 16:49:26.166 -04:00] [DBG] [19] Emby.Server.Implementations.Session.SessionManager: Disposing session controller asynchronously "WebSocketController"
    [2024-09-04 16:49:26.166 -04:00] [INF] [17] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.23" request
    [2024-09-04 16:49:26.167 -04:00] [DBG] [19] Emby.Server.Implementations.Session.SessionWebSocketListener: WebSocket "Emby.Server.Implementations.HttpServer.WebSocketConnection" is closed.
    [2024-09-04 16:49:26.169 -04:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.23" closed
    [2024-09-04 16:49:26.172 -04:00] [DBG] [17] Emby.Server.Implementations.Session.SessionManager: Creating new "WebSocketController"
    [2024-09-04 16:49:26.173 -04:00] [DBG] [17] Emby.Server.Implementations.Session.WebSocketController: Adding websocket to session "3ad4d490b1a84e779dd30e0ebe45bb4c"
    [2024-09-04 16:49:26.176 -04:00] [DBG] [20] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.1.23" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
    [2024-09-04 16:49:38.177 -04:00] [DBG] [17] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
    [2024-09-04 16:49:44.901 -04:00] [DBG] [18] Emby.Server.Implementations.Session.WebSocketController: Removing websocket from session "3ad4d490b1a84e779dd30e0ebe45bb4c"
    [2024-09-04 16:49:44.903 -04:00] [DBG] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
    [2024-09-04 16:49:44.904 -04:00] [DBG] [18] Emby.Server.Implementations.Session.SessionManager: Disposing session controller asynchronously "WebSocketController"
    [2024-09-04 16:49:44.904 -04:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.23" request
    [2024-09-04 16:49:44.904 -04:00] [DBG] [18] Emby.Server.Implementations.Session.SessionWebSocketListener: WebSocket "Emby.Server.Implementations.HttpServer.WebSocketConnection" is closed.
    [2024-09-04 16:49:44.906 -04:00] [DBG] [3] Emby.Server.Implementations.Session.SessionManager: Creating new "WebSocketController"
    [2024-09-04 16:49:44.906 -04:00] [INF] [18] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.23" closed
    [2024-09-04 16:49:44.907 -04:00] [DBG] [3] Emby.Server.Implementations.Session.WebSocketController: Adding websocket to session "3ad4d490b1a84e779dd30e0ebe45bb4c"
    [2024-09-04 16:49:44.910 -04:00] [DBG] [3] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "192.168.1.23" received message: InboundWebSocketMessage`1 { Data: null, MessageType: KeepAlive, ServerId: null }
    pxr5
    Offline

    Member

    Posts: 52
    Threads: 3
    Joined: 2024 Jan
    Reputation: 3
    Country:United Kingdom
    #14
    2024-09-06, 05:07 PM
    I'm getting this too. I'm remote at the moment and using a Fire TV stick and Caddy as the reverse proxy. To stop the constant connect/disconnects I have to force stop Jellyfin on the Fire Stick. I'll try it out locally soon.

    I tend to check my activity all the time and this is the first time I've ever seen this.
    Jellyfin1 - 10.10.3 (Docker) Synology NAS (transcoding off)
    Jellyfin2 - 10.10.3 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
    Storage - x3 Synology NAS (22TB)
    Reverse Proxy - Caddy v2 running on a Pi3b+
    bkl842
    Offline

    Junior Member

    Posts: 7
    Threads: 0
    Joined: 2024 Mar
    Reputation: 1
    Country:United States
    #15
    2024-10-06, 12:01 AM
    I posted an issue on Github and it was closed with the comment that this is normal behavior. I did come up with a workaround (for Ubuntu). I created a crontab that executes a script every 15 minutes and deletes these logs from the database.

    Create a script and make it executable (chmod +x /path/to/script.sh) with the following contents:
    #!/bin/bash
    sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db "delete from ActivityLogs where name like '%has disconnected from%' or name like '%is online from%';"

    Run 'sudo crontab -e' and add this to the bottom:
    */15 * * * * /bin/bash /path/to/script.sh
    1
    pxr5
    Offline

    Member

    Posts: 52
    Threads: 3
    Joined: 2024 Jan
    Reputation: 3
    Country:United Kingdom
    #16
    2024-12-03, 09:06 PM
    I was having a fiddle today with a Fire TV Stick 4k Max Gen 2 and this behaviour is still apparent both remotely and locally - a constant connect/disconnect every few seconds until Jellyfin is force stopped. I have 2 Jellyfin servers running and it does this on both from the same FireTv stick client either local or remote. Playback isn't affected though. No other device/client (and I've tried as many as I can) does this only the Fire TV stick. Not much showing in the logs, just the constant request/closed.

    Code:
    [2024-12-03 14:35:23.485 +00:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:23.556 +00:00] [INF] [24] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:25.066 +00:00] [INF] [24] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:25.140 +00:00] [INF] [20] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:27.397 +00:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:27.463 +00:00] [INF] [24] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:30.845 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:30.921 +00:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:34.825 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "86.173.190.118" request
    [2024-12-03 14:35:36.000 +00:00] [INF] [23] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:36.204 +00:00] [INF] [8] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:43.811 +00:00] [INF] [20] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:44.026 +00:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:35:55.430 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:35:55.495 +00:00] [INF] [15] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:36:04.432 +00:00] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:36:04.506 +00:00] [INF] [21] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    [2024-12-03 14:36:12.590 +00:00] [INF] [20] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" request
    [2024-12-03 14:36:12.662 +00:00] [INF] [19] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.1.128" closed
    Jellyfin1 - 10.10.3 (Docker) Synology NAS (transcoding off)
    Jellyfin2 - 10.10.3 Minix ZX100-0db MiniPC, Intel N100 (transcoding on)
    Storage - x3 Synology NAS (22TB)
    Reverse Proxy - Caddy v2 running on a Pi3b+
    C4ZePhyr
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Dec
    Reputation: 0
    Country:Germany
    #17
    2024-12-06, 03:44 PM
    THX bkl842
    I just had to change it a little to make it work in any language.

    Code:
    sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db "delete from ActivityLogs where Type like 'SessionStarted' or Type like 'SessionEnded';"
    1
    reminator2468
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #18
    2024-12-27, 02:50 PM (This post was last modified: 2024-12-27, 03:31 PM by reminator2468. Edited 4 times in total.)
    I have jellyfin running on a dedicated Windows 10 machine. My activity log has continued to grow exponentially, with connection and disconnection activity every few seconds. It only seems to happen on my Android TV users. Not Roku users.

    App only mode made it worse.

    I am using Caddy, and it is also happening on the local network.

    I have seen the Ubuntu work around, is there a way to do this with Windows? Thank you!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #19
    2024-12-27, 09:27 PM
    Try deleting all the tokens for your Android TV devices and have then clear their app cache and log back in.
    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]
    kandykarter
    Offline

    Member

    Posts: 145
    Threads: 21
    Joined: 2023 Jun
    Reputation: 3
    #20
    2025-02-22, 05:04 PM
    Did anyone successfully find a workaround to this? It's making the activity log on my server practically useless, I have to wade through pages and pages of "Fire TV Connected" and "Fire TV Disconnected" every 5 minutes to find anything useful.
    Specifics:
    Jellyfin 10.10.7 (docker) on Debian 12.6 // N100 16GB
    Storage: Synology DS220+ CIFS mounts
    Clients: Jellyfin4Kodi (Addon Mode), Android, Android TV, Roku, Symfonium

    Pages (3): « Previous 1 2 3 Next »

    « 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