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
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