-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load backup #84
Comments
Yep, I'm also experiencing this issue on jellyfin 10.9.4, I'll be able to post some more info soon. |
Jellyfin server running on ubuntu lxc:
Logs when loading the backup:
|
I have the same issue running Jellyfin 10.10.13 in a Docker container, getting the same logs as @ibndiaye. |
I have this issue as well, with Jellyfin 10.10.3 on Ubuntu Server 24.04.1 LTS, with these logs: |
Same journal_mode issue when trying to load a backup with plugin version 15.0.0.0 and Jellyfin 10.10.4. For anyone coming across this issue as well, I have created a workaround by manually editing playback_reporting.db with this short python script: #EDIT THIS
DATABASE = "playback_reporting.db"
BACKUP = "backup.tsv"
import sqlite3
import csv
con = sqlite3.connect(DATABASE)
cursor = con.cursor()
with open(BACKUP) as fd:
rd = csv.reader(fd, delimiter="\t", quotechar='"')
for row in rd:
query = f"INSERT INTO PlaybackActivity VALUES ({", ".join([f'"{x.replace('"', '""')}"' for x in row])});"
cursor.execute(query)
con.commit() It worked for me while Jellyfin was shut down. Hope it helps. The script does not check for duplicate insertion. |
@Flo56958 - thanks! this worked to import the backup containing history for me as well. However, the users from the backup were imported as new users with names 'Not Known' instead of the history simply appended to existing users, which is what I would have expected given same user names in the backup file and the newly setup jellyfin instance. Did you run into this as well? Thanks! |
The users are saved by their uuids. I have also transferred the jellyfin.db which contained the old user ids. I think you need to find out which old ids map to which new ones and then update the old ids manually via the sql interface. |
@Flo56958 , perfect, thanks, sorted it. For future reference, to list the UUIDS from jellyfin.db, the command is:
The UUIDs will be listed with dashes and capital letters, one should remove the dashes (I also made them all lower case to match the backup export). Tip: |
Hey,
today I created a backup of my playback reporting with the aim of deleting reports that were not desirable in it. After editing, I deleted all my data and wanted to load the tsv file again using the "Load Backup Data" tab. Unfortunately, nothing happens. Is this option possibly buggy or is it just me? Thanks!
I use version 14.0
The text was updated successfully, but these errors were encountered: