vurt 19 Posted 5 hours ago Posted 5 hours ago Hi, my emby docker in unraid is shutting down randomly. This is the log. text error warn system array login Info App: Loading Emby.Webhooks, Version=1.0.38.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Webhooks.dll Info App: Loading MusicBrainz, Version=1.0.28.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MusicBrainz.dll Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioImages.dll Info App: Loading BlurayMounter, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null from /config/plugins/BlurayMounter.dll Info App: Loading DvdMounter, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/DvdMounter.dll Info SqliteUserRepository: Initializing PooledDatabaseConnectionManager with pool size: 3 Info SqliteUserRepository: Sqlite version: 3.49.2 Info SqliteUserRepository: Sqlite compiler options: ATOMIC_INTRINSICS=1,COMPILER=gcc-10.3.0,DEFAULT_AUTOVACUUM,DEFAULT_CACHE_SIZE=-2000,DEFAULT_FILE_FORMAT=4,DEFAULT_JOURNAL_SIZE_LIMIT=-1,DEFAULT_MMAP_SIZE=0,DEFAULT_PAGE_SIZE=4096,DEFAULT_PCACHE_INITSZ=20,DEFAULT_RECURSIVE_TRIGGERS,DEFAULT_SECTOR_SIZE=4096,DEFAULT_SYNCHRONOUS=2,DEFAULT_WAL_AUTOCHECKPOINT=1000,DEFAULT_WAL_SYNCHRONOUS=2,DEFAULT_WORKER_THREADS=0,DIRECT_OVERFLOW_READ,ENABLE_COLUMN_METADATA,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS5,ENABLE_MATH_FUNCTIONS,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MALLOC_SOFT_LIMIT=1024,MAX_ATTACHED=10,MAX_COLUMN=2000,MAX_COMPOUND_SELECT=500,MAX_DEFAULT_PAGE_SIZE=8192,MAX_EXPR_DEPTH=1000,MAX_FUNCTION_ARG=1000,MAX_LENGTH=1000000000,MAX_LIKE_PATTERN_LENGTH=50000,MAX_MMAP_SIZE=0x7fff0000,MAX_PAGE_COUNT=0xfffffffe,MAX_PAGE_SIZE=65536,MAX_SCHEMA_RETRY=25,MAX_SQL_LENGTH=1000000000,MAX_TRIGGER_DEPTH=1000,MAX_VARIABLE_NUMBER=250000,MAX_VDBE_OP=250000000,MAX_WORKER_THREADS=8,MUTEX_PTHREADS,OMIT_LOOKASIDE,OMIT_SHARED_CACHE,SYSTEM_MALLOC,TEMP_STORE=1,THREADSAFE=1 Info SqliteUserRepository: Sqlite ThreadSafe: 1 Info SqliteUserRepository: Sqlite ThreadingMode: MultiThreaded Info SqliteUserRepository: Opening sqlite connection to /config/data/users.db. isReadOnly: False Info SqliteUserRepository: Default journal_mode for /config/data/users.db is wal Info SqliteUserRepository: PRAGMA cache_size=-65536 Info SqliteUserRepository: PRAGMA page_size=4096 Info SqliteUserRepository: PRAGMA foreign_keys=1 Info SqliteUserRepository: PRAGMA SECURE_DELETE=0 Info SqliteUserRepository: Result of setting SQLITE_DBCONFIG_DQS_DDL to 0 is 0 Info SqliteUserRepository: Result of setting SQLITE_DBCONFIG_DQS_DML to 0 is 0 Info SqliteItemRepository: Initializing PooledDatabaseConnectionManager with pool size: 5 Info AuthenticationRepository: Initializing PooledDatabaseConnectionManager with pool size: 5 Info ActivityRepository: Initializing PooledDatabaseConnectionManager with pool size: 3 Info ActivityRepository: Opening sqlite connection to /config/data/activitylog.db. isReadOnly: False Info ActivityRepository: Default journal_mode for /config/data/activitylog.db is wal Info ActivityRepository: PRAGMA cache_size=-65536 Info ActivityRepository: PRAGMA page_size=4096 Info ActivityRepository: PRAGMA foreign_keys=1 Info ActivityRepository: PRAGMA SECURE_DELETE=0 Info ActivityRepository: Result of setting SQLITE_DBCONFIG_DQS_DDL to 0 is 0 Info ActivityRepository: Result of setting SQLITE_DBCONFIG_DQS_DML to 0 is 0 Info NetworkManager: Detecting local network addresses Info NetworkManager: networkInterface: Ethernet eth0, Speed: 10000000000, Description: eth0 Info NetworkManager: GatewayAddresses: 172.18.0.1 Info NetworkManager: UnicastAddresses: 172.18.0.13 Info NetworkManager: networkInterface: Loopback lo, Speed: -1, Description: lo Info NetworkManager: GatewayAddresses: Info NetworkManager: UnicastAddresses: 127.0.0.1,::1 Info NetworkManager: Detected local ip addresses: [{"IPAddress":"172.18.0.13","HasGateWayAddress":true,"PrefixLength":16,"IPv4Mask":"255.255.0.0"},{"IPAddress":"127.0.0.1","HasGateWayAddress":false,"PrefixLength":8,"IPv4Mask":"255.0.0.0"},{"IPAddress":"::1","HasGateWayAddress":false,"PrefixLength":128}] Info ServerConfigurationManager: Saving system configuration Debug XmlSerializer: Serializing to file /config/config/system.xml Info App: Begin vacuuming SqliteItemRepository Info SqliteItemRepository: Opening sqlite connection to /config/data/library.db. isReadOnly: False Info SqliteItemRepository: Default journal_mode for /config/data/library.db is wal Info SqliteItemRepository: PRAGMA cache_size=-131072 Info SqliteItemRepository: PRAGMA page_size=4096 Info SqliteItemRepository: PRAGMA foreign_keys=1 Info SqliteItemRepository: PRAGMA SECURE_DELETE=0 Info SqliteItemRepository: Result of setting SQLITE_DBCONFIG_DQS_DDL to 0 is 0 Info SqliteItemRepository: Result of setting SQLITE_DBCONFIG_DQS_DML to 0 is 0 Info App: Completed vacuuming SqliteItemRepository after 1712ms Info App: Begin vacuuming SqliteUserRepository Info App: Completed vacuuming SqliteUserRepository after 2ms Info App: Begin vacuuming AuthenticationRepository Info AuthenticationRepository: Opening sqlite connection to /config/data/authentication.db. isReadOnly: False Info AuthenticationRepository: Default journal_mode for /config/data/authentication.db is wal Info AuthenticationRepository: PRAGMA cache_size=-65536 Info AuthenticationRepository: PRAGMA page_size=4096 Info AuthenticationRepository: PRAGMA foreign_keys=1 Info AuthenticationRepository: PRAGMA SECURE_DELETE=0 Info AuthenticationRepository: Result of setting SQLITE_DBCONFIG_DQS_DDL to 0 is 0 Info AuthenticationRepository: Result of setting SQLITE_DBCONFIG_DQS_DML to 0 is 0 Info App: Completed vacuuming AuthenticationRepository after 23ms Info App: Begin vacuuming ActivityRepository Error Main: Error in appHost.Init *** Error Report *** Version: 4.9.5.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 6.12.54-Unraid (root@Develop) (gcc (GCC) 15.2.0, GNU ld version 2.45-slack151) #1 SMP PREEMPT_DYNAMIC Tue Oct 21 15:58:46 PDT 2025 OS/Process: x64/x64 Framework: .NET 8.0.25 Runtime: system/System.Private.CoreLib.dll Processor count: 4 Data path: /config Application path: /system SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3_stmt stmt, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at SQLitePCL.pretty.DatabaseConnection.Execute(IDatabaseConnection This, String sql) at Emby.Sqlite.BaseSqliteRepository.Vacuum() at Emby.Server.Implementations.ApplicationHost.VacuumDatabase(BaseSqliteRepository db) at Emby.Server.Implementations.ApplicationHost.VacuumDatabases() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) Source: SQLitePCL.pretty TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32) Info Main: Shutdown complete Info LogManager: Disposing Logger ** Press ANY KEY to close this window ** Does anyone know how to resolve this? TIA.
Neminem 1822 Posted 4 hours ago Posted 4 hours ago @vurtIt looks like DB has gone corrupt. SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed Here is a how to Corrupt Database | Emby Documentation Never had to use it, so can't help you with that.
Luke 42860 Posted 4 hours ago Posted 4 hours ago @vurtHi, please see here and let us know if it helps get you squared away: Corrupt Database Thanks.
vurt 19 Posted 1 hour ago Author Posted 1 hour ago @Luke@NeminemThanks so much for pointing me in the right direction. I followed the instructions and deleted "library.db-shm" and "library.db-wal". Fingers crossed that fixed it!
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