2025-04-02, 10:31 PM
I did encounter this, after modifying the library.db using sql lite editor(to remove duplicates). though I created a backup before modifying anything. then when i encounter this error I tried to revert back to original library.db, but still got same error.
what i found out that the permission on the file was altered somehow. So I go to File Properties->SecurityTab->Advanced
then change the owner to NETWORK SERVICE, I am running it as a service but if you are running it as a user-startup-app, then you might need to check the order file in the folder to get the correct owner.
if all else fail, just add "everyone" with all permission(this is generally safe as long as the parent folder is still have proper permission). you still need to inherit the parent folders permission, this will be an additional permission on top for this specific file. but if you could identify the correct user that would be preferrable.
you might also need to shutdown jellyfin first, or restart it after the modification, I always shutdown jellyfin before I do anything on the files, to ensure I wont get a race event(where jellyfin is trying to do something on the file and I will get an outdated file in the end due to that).
what i found out that the permission on the file was altered somehow. So I go to File Properties->SecurityTab->Advanced
then change the owner to NETWORK SERVICE, I am running it as a service but if you are running it as a user-startup-app, then you might need to check the order file in the folder to get the correct owner.
if all else fail, just add "everyone" with all permission(this is generally safe as long as the parent folder is still have proper permission). you still need to inherit the parent folders permission, this will be an additional permission on top for this specific file. but if you could identify the correct user that would be preferrable.
you might also need to shutdown jellyfin first, or restart it after the modification, I always shutdown jellyfin before I do anything on the files, to ensure I wont get a race event(where jellyfin is trying to do something on the file and I will get an outdated file in the end due to that).