Tolotos 61 Posted October 31, 2016 Posted October 31, 2016 Hi, On my Ubuntu system Emby is not starting anymore. I get the following error: 2016-10-31 19:06:18.6321 Info ConnectManager: Loading data from /var/lib/emby-server/data/connect.txt 2016-10-31 19:06:18.6724 Info App: Sqlite 3.11.0 opening page size=4096;cache size=-100000;synchronous=Normal;data source=/var/lib/emby-server/data/library.db;journal mode=Wal;pooling=False;read only=False 2016-10-31 19:06:48.9682 Error Main: UnhandledException *** Error Report *** Version: 3.0.8400.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.45 Processor count: 12 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.6.1 (Stable 4.6.1.5/ef43c15 Fri Oct 28 20:30:39 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. System.AggregateException at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00242] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, System.Int32 millisecondsTimeout) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at MediaBrowser.Server.Mono.MainClass.RunApplication (MediaBrowser.Server.Implementations.ServerApplicationPaths appPaths, MediaBrowser.Model.Logging.ILogManager logManager, MediaBrowser.Server.Startup.Common.StartupOptions options) [0x000cf] in <f632e7bfcf8641658a646380af248e25>:0 at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x0008a] in <f632e7bfcf8641658a646380af248e25>:0 InnerException: System.Data.SQLite.SQLiteException database is locked database is locked at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x00088] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader:.ctor (System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior) at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <eb7ac4c09bbe4cd784c2e9d33e014c35>:0 at MediaBrowser.Server.Implementations.Persistence.DataExtensions.Attach (System.Data.IDbConnection db, System.String path, System.String alias) [0x00039] in <e85b935968f848a3b3f0528cab20a9af>:0 at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository+<Initialize>c__async1.MoveNext () [0x01145] in <e85b935968f848a3b3f0528cab20a9af>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at MediaBrowser.Server.Startup.Common.ApplicationHost+<RegisterResources>c__async2.MoveNext () [0x01865] in <8ce4cddc1ed045d481352d1ee732fd14>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at MediaBrowser.Common.Implementations.BaseApplicationHost`1+<Init>c__async0[TApplicationPathsType].MoveNext () [0x00240] in <b885de9a44d3484384b6640883bd1c56>:0 I deleted "connect.txt" and "library.db*" but the error still persists. -- Tolotos
Luke 42077 Posted October 31, 2016 Posted October 31, 2016 Only one process can access the db file at a time so if you're using something else to read it then shut that down. If the issue persists, try rebooting your machine.
Tolotos 61 Posted October 31, 2016 Author Posted October 31, 2016 (edited) Ok, it starts now. I had no other processes running which can access the db files. But I didn't run "lsof | grep -i emby" earlier. Now it shows nothing and emby started. If this error comes back I'll fire the lsof to get the process which holds the database files. Edit: Now I got it again: lsof | grep -i emby-server Threadpoo 28842 28859 emby mem REG 9,2 164352 28185352 /usr/lib/emby-server/bin/UniversalDetector.dll Threadpoo 28842 28859 emby mem REG 9,2 133120 28185387 /usr/lib/emby-server/bin/WebMarkupMin.Core.dll Threadpoo 28842 28859 emby mem REG 9,2 64512 28185388 /usr/lib/emby-server/bin/MoreLinq.dll Threadpoo 28842 28859 emby mem REG 9,2 47616 28185374 /usr/lib/emby-server/bin/Mono.Nat.dll Threadpoo 28842 28859 emby mem REG 9,2 1100800 28185373 /usr/lib/emby-server/bin/ServiceStack.Api.Swagger.dll Threadpoo 28842 28859 emby mem REG 9,2 102912 28182729 /usr/lib/emby-server/bin/OpenSubtitlesHandler.dll Threadpoo 28842 28859 emby mem REG 9,2 78336 28185363 /usr/lib/emby-server/bin/BDInfo.dll Threadpoo 28842 28859 emby mem REG 9,2 18432 28185389 /usr/lib/emby-server/bin/DvdLib.dll Threadpoo 28842 28859 emby mem REG 9,2 29696 28185355 /usr/lib/emby-server/bin/INIFileParser.dll Threadpoo 28842 28859 emby mem REG 9,2 117760 28185372 /usr/lib/emby-server/bin/SocketHttpListener.dll Threadpoo 28842 28859 emby mem REG 9,2 29184 28185382 /usr/lib/emby-server/bin/Emby.XmlTv.dll Threadpoo 28842 28859 emby mem REG 9,2 216576 28182693 /usr/lib/emby-server/bin/Emby.Drawing.dll Threadpoo 28842 28859 emby mem REG 9,2 185856 28182728 /usr/lib/emby-server/bin/ServiceStack.Client.dll Threadpoo 28842 28859 emby mem REG 9,2 183808 28185385 /usr/lib/emby-server/bin/ServiceStack.Common.dll Threadpoo 28842 28859 emby mem REG 9,2 1679360 28185354 /usr/lib/emby-server/bin/ServiceStack.dll Threadpoo 28842 28859 emby mem-r REG 9,2 32768 36307177 /var/lib/emby-server/data/library.db-shm Threadpoo 28842 28859 emby mem REG 9,2 101888 28185371 /usr/lib/emby-server/bin/ImageMagickSharp.dll Threadpoo 28842 28859 emby mem REG 9,2 273920 28185351 /usr/lib/emby-server/bin/System.Data.SQLite.dll Threadpoo 28842 28859 emby mem REG 9,2 54272 28185377 /usr/lib/emby-server/bin/MediaBrowser.Naming.dll Threadpoo 28842 28859 emby mem REG 9,2 187392 28185360 /usr/lib/emby-server/bin/Mono.Posix.dll Threadpoo 28842 28859 emby mem REG 9,2 59904 28185356 /usr/lib/emby-server/bin/MediaBrowser.XbmcMetadata.dll Threadpoo 28842 28859 emby mem REG 9,2 48128 28185362 /usr/lib/emby-server/bin/MediaBrowser.LocalMetadata.dll Threadpoo 28842 28859 emby mem REG 9,2 79872 28185365 /usr/lib/emby-server/bin/Rssdp.Portable.dll Threadpoo 28842 28859 emby mem REG 9,2 289792 28185367 /usr/lib/emby-server/bin/Rssdp.NetFx40.dll Threadpoo 28842 28859 emby mem REG 9,2 640000 28185379 /usr/lib/emby-server/bin/MediaBrowser.Dlna.dll Threadpoo 28842 28859 emby mem REG 9,2 169472 28185353 /usr/lib/emby-server/bin/MediaBrowser.MediaEncoding.dll Threadpoo 28842 28859 emby mem REG 9,2 573952 28185391 /usr/lib/emby-server/bin/MediaBrowser.Providers.dll Threadpoo 28842 28859 emby mem REG 9,2 128512 28185392 /usr/lib/emby-server/bin/ServiceStack.Interfaces.dll Threadpoo 28842 28859 emby mem REG 9,2 37888 28182732 /usr/lib/emby-server/bin/MediaBrowser.WebDashboard.dll Threadpoo 28842 28859 emby mem REG 9,2 797184 28182730 /usr/lib/emby-server/bin/MediaBrowser.Api.dll Threadpoo 28842 28859 emby mem REG 9,2 5120 28185386 /usr/lib/emby-server/bin/Interfaces.IO.dll Threadpoo 28842 28859 emby mem REG 9,2 339456 28185393 /usr/lib/emby-server/bin/ServiceStack.Text.dll Threadpoo 28842 28859 emby mem REG 9,2 11776 28185384 /usr/lib/emby-server/bin/MediaBrowser.IsoMounting.Linux.dll Threadpoo 28842 28859 emby mem REG 9,2 31472 28182691 /usr/lib/emby-server/bin/Microsoft.IO.RecyclableMemoryStream.dll Threadpoo 28842 28859 emby mem REG 9,2 387584 28185378 /usr/lib/emby-server/bin/SimpleInjector.dll Threadpoo 28842 28859 emby mem REG 9,2 536064 28182684 /usr/lib/emby-server/bin/NLog.dll Threadpoo 28842 28859 emby mem REG 9,2 479744 28185380 /usr/lib/emby-server/bin/MediaBrowser.Model.dll Threadpoo 28842 28859 emby mem REG 9,2 489472 28185381 /usr/lib/emby-server/bin/MediaBrowser.Controller.dll Threadpoo 28842 28859 emby mem REG 9,2 2225152 28185368 /usr/lib/emby-server/bin/MediaBrowser.Server.Implementations.dll Threadpoo 28842 28859 emby mem REG 9,2 18432 28182692 /usr/lib/emby-server/bin/CommonIO.dll Threadpoo 28842 28859 emby mem REG 9,2 47104 28185369 /usr/lib/emby-server/bin/MediaBrowser.Common.dll Threadpoo 28842 28859 emby mem REG 9,2 147968 28185383 /usr/lib/emby-server/bin/MediaBrowser.Common.Implementations.dll Threadpoo 28842 28859 emby mem REG 9,2 89088 28185390 /usr/lib/emby-server/bin/MediaBrowser.Server.Startup.Common.dll Threadpoo 28842 28859 emby mem REG 9,2 5120 28182689 /usr/lib/emby-server/bin/Patterns.Logging.dll Threadpoo 28842 28859 emby mem REG 9,2 108544 28185358 /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Threadpoo 28842 28859 emby 1w REG 9,2 22728 36178883 /var/log/emby-server.log Threadpoo 28842 28859 emby 2w REG 9,2 22728 36178883 /var/log/emby-server.log Threadpoo 28842 28859 emby 4uw REG 9,2 43401216 36307058 /var/lib/emby-server/data/library.db Threadpoo 28842 28859 emby 5u REG 9,2 0 36307095 /var/lib/emby-server/data/library.db-wal Threadpoo 28842 28859 emby 6ur REG 9,2 32768 36307177 /var/lib/emby-server/data/library.db-shm Threadpoo 28842 28859 emby 7uw REG 9,2 34816 36307170 /var/lib/emby-server/data/userdata_v2.db kill -9 28842 don't work Maybe I must wait a longer time the Threadpool will close automatically. A reboot is currently not possible. Edited October 31, 2016 by Tolotos
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