2024-08-27, 08:08 PM
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.
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-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+
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
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
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+
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
Yesterday, 02:50 PM
(This post was last modified: Yesterday, 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!
Yesterday, 09:27 PM
Try deleting all the tokens for your Android TV devices and have then clear their app cache and log back in.
|
|
|