Luke 42077 Posted August 24, 2024 Posted August 24, 2024 1 hour ago, AshotAntonyan said: Found it: Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program EmbyServer OK sounds like you need to resolve an issue with your disk drive, right?
VBElec 3 Posted November 6, 2025 Author Posted November 6, 2025 Dear, I still had the same problem again, Emby server starts, but closes immediately. try with different versions.
Luke 42077 Posted November 6, 2025 Posted November 6, 2025 @VBElec Hi there, please attach the Emby server log from when the problem occurred: How to Report a Problem Thanks!
VBElec 3 Posted November 6, 2025 Author Posted November 6, 2025 Dear, when I manually install Emby server 4.9 it first works, with complete empty database. As soon as I shutdown Emby and replace database with my backup, I get these problems. My current data base only works with versions 4.7.11
Luke 42077 Posted November 6, 2025 Posted November 6, 2025 3 hours ago, VBElec said: Dear, when I manually install Emby server 4.9 it first works, with complete empty database. As soon as I shutdown Emby and replace database with my backup, I get these problems. My current data base only works with versions 4.7.11 Hi, please take a look at this and let us know if it helps get you squared away: Corrupt Database
VBElec 3 Posted November 7, 2025 Author Posted November 7, 2025 Dear, every time emby server start, it seems to be that he make the library corrupt.
sa2000 674 Posted November 7, 2025 Posted November 7, 2025 34 minutes ago, VBElec said: Dear, every time emby server start, it seems to be that he make the library corrupt. Did you go through repair database steps ? Which database file did you check out and try to repair? The error in the log indicates it is failing on the users.db database SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, SyncRepository
sa2000 674 Posted November 7, 2025 Posted November 7, 2025 16 minutes ago, sa2000 said: The error in the log indicates it is failing on the users.db database SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, SyncRepository Sorry I think I was wrong It is referring to SqliteItemRepository in the first part at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize(SqliteUserDataRepository userDataRepo, SyncRepository which would be library.db So did you repair the database and get an OK on the PRAGMA integrity_check ?
Luke 42077 Posted November 7, 2025 Posted November 7, 2025 6 hours ago, VBElec said: Dear, every time emby server start, it seems to be that he make the library corrupt. Hi, no the issue is that it's already corrupt to begin with. Did you follow the instructions in the link I gave you?
VBElec 3 Posted November 9, 2025 Author Posted November 9, 2025 I try the instruction, but it did not work, or I did something wrong. Is there a way I send the library file to you? and you can give it a try?
sa2000 674 Posted November 9, 2025 Posted November 9, 2025 1 hour ago, VBElec said: Is there a way I send the library file to you? and you can give it a try? I will send you an upload link. Please zip the db and upload and i will see if it is repairable
sa2000 674 Posted November 9, 2025 Posted November 9, 2025 (edited) 1 hour ago, VBElec said: the data file is uploaded. Not showing up yet as uploaded Edited November 9, 2025 by sa2000
sa2000 674 Posted November 9, 2025 Posted November 9, 2025 @VBElec the VACUUM andn REINDEX cleared the malformed db error Lets see if it launches ok now. I sent you the repaied library.db Please compare the steps I carried out with what you did and let me know what you got back earlier when you gtried Command Prompt - sqlite3 library.db.txt
VBElec 3 Posted November 10, 2025 Author Posted November 10, 2025 Dear, I tried with the repaired library, but still same issue, the highest Emby server version what is working is 4.7.11I tried now with 4.8.3.0 but same issue. Attached last log files. embyserver-63898361732.txt embyserver-63898361764.txt readme.txt
sa2000 674 Posted November 10, 2025 Posted November 10, 2025 2 hours ago, VBElec said: tried with the repaired library, but still same issue, t I made a miatake not double checking what the directory path was where i was executing sqlite3. I will add a warning to the support doc for double checking. When doing the attempt to recover correctly, the REINDEX failed with Runtime error: UNIQUE constraint failed: UserDataKeys2.UserDataKey (19) I have recreated the database using .recover and sent you a new one to try i don't know if you will have issues after switching to this repaired database as a result of any overlapping paths - an issue that has been seen to give constraint errors
VBElec 3 Posted November 11, 2025 Author Posted November 11, 2025 Dear, I add the new library file, and now I run on 4.9.1.80
sa2000 674 Posted November 11, 2025 Posted November 11, 2025 3 minutes ago, VBElec said: I add the new library file, and now I run on 4.9.1.80 Great
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now