RE: Remote User Constantly Online/Disconnected - TheDreadPirate - 2024-08-27
I switched one of my CCwGTVs out of "app only" mode and it is only checking in once a day-ish.
RE: Remote User Constantly Online/Disconnected - Fox1977 - 2024-08-27
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.
RE: Remote User Constantly Online/Disconnected - jellyhorse - 2024-09-06
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 }
RE: Remote User Constantly Online/Disconnected - pxr5 - 2024-09-06
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.
RE: Remote User Constantly Online/Disconnected - bkl842 - 2024-10-06
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
RE: Remote User Constantly Online/Disconnected - pxr5 - 2024-12-03
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
RE: Remote User Constantly Online/Disconnected - C4ZePhyr - 2024-12-06
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';"
RE: Remote User Constantly Online/Disconnected - reminator2468 - 2024-12-27
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!
RE: Remote User Constantly Online/Disconnected - TheDreadPirate - 2024-12-27
Try deleting all the tokens for your Android TV devices and have then clear their app cache and log back in.
|