Jump to content

Ubuntu unhandled exception log created daily at 5am


hijinx

Recommended Posts

Hi All,

 

Does anyone know what is happening and/or why?

I am getting an unhanded exception log on a daily basis at 5am.

I guess a scheduled task is running into problem, but I cant tell what is it.

From the log the main think that sticks out is a sqllite locking issue.

 

The only thing weird I have noticed on my server is that a bunch of TV shows are not available.

Its possibly off topic so I have posted about this issue separately as I dont want to pollute this thread.

 

here is the log:

htpc@ubuntutv:/var/lib/emby-server/logs$ cat unhandled_39663c63-c883-4c5b-977a-aec5c4622834.txt
One or more errors occurred.
System.AggregateException
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x7f25de0a12e0 + 0x005a9> in <filename unknown>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout) <0x7f25de0a1280 + 0x00028> in <filename unknown>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) <0x7f25de0a11f0 + 0x00016> in <filename unknown>:0
  at MediaBrowser.Server.Mono.MainClass.RunApplication (MediaBrowser.Server.Implementations.ServerApplicationPaths appPaths, ILogManager logManager, MediaBrowser.Server.Startup.Common.StartupOptions options) <0x4037d120 + 0x00398> in <filename unknown>:0
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) <0x40325ff0 + 0x001c7> in <filename unknown>:0
InnerException: System.Data.SQLite.SQLiteException
database is locked
database is locked
  at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, UInt32 timeoutMS, System.String& strRemain) <0x404a37e0 + 0x00cbb> in <filename unknown>:0
  at System.Data.SQLite.SQLiteCommand.BuildNextCommand () <0x404a3350 + 0x00214> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f25de0018a0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f25ddfff880 + 0x000a7> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f25ddfff800 + 0x0006b> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f25ddfff7b0 + 0x0003a> in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f25ddfffce0 + 0x00012> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Persistence.SqliteExtensions+<ConnectToDb>c__async0.MoveNext () <0x4047add0 + 0x005ea> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f25de0018a0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f25ddfff880 + 0x000a7> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f25ddfff800 + 0x0006b> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f25ddfff7b0 + 0x0003a> in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f25ddfffee0 + 0x00017> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository+<CreateConnection>c__async0.MoveNext () <0x404eba90 + 0x00231> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f25de0018a0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f25ddfff880 + 0x000a7> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f25ddfff800 + 0x0006b> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f25ddfff7b0 + 0x0003a> in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f25ddfffee0 + 0x00017> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository+<Initialize>c__async1.MoveNext () <0x404e9000 + 0x001b8> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f25de0018a0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f25ddfff880 + 0x000a7> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f25ddfff800 + 0x0006b> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f25ddfff7b0 + 0x0003a> in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f25ddfffce0 + 0x00012> in <filename unknown>:0
  at MediaBrowser.Server.Startup.Common.ApplicationHost+<RegisterResources>c__async2.MoveNext () <0x40469000 + 0x0809c> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f25de0018a0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f25ddfff880 + 0x000a7> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f25ddfff800 + 0x0006b> in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f25ddfff7b0 + 0x0003a> in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f25ddfffce0 + 0x00012> in <filename unknown>:0
  at MediaBrowser.Common.Implementations.BaseApplicationHost`1+<Init>c__async0[TApplicationPathsType].MoveNext () <0x4041a4f0 + 0x008df> in <filename unknown>:0

htpc@ubuntutv:/var/lib/emby-server/logs$

Edited by hijinx
Link to comment
Share on other sites

Happy2Play

Technically there is not task set to run at 5am, you can click on each task and see what they are set too.  Majority are set to run at interval, 12 or 24hrs.  There are a couple set at specific time (unless non-Windows scheduled task are setup differently which I doubt).

database is locked

Do you by chance have more than one instance of Emby server running?

Link to comment
Share on other sites

Which one of your scheduled tasks runs at 5am?

 

Good question!

I didnt realise that you can see the scheduling when clicking the items :)

So the only one I can see on a fixed schedule @ 5am is "Refresh People"

I ran the task manually and finishes ok...

 

But I found the issue and its of my own making - I have a cron process that is checking if letsencrypt SSL certs need to be updated.

It runs at 5am... bingo. Need to fix that script I think.

 

Thanks for the input folks

Link to comment
Share on other sites

Technically there is not task set to run at 5am, you can click on each task and see what they are set too.  Majority are set to run at interval, 12 or 24hrs.  There are a couple set at specific time (unless non-Windows scheduled task are setup differently which I doubt).

database is locked

Do you by chance have more than one instance of Emby server running?

 

Not purposefully, but I my script is supposed to restart emby if (and only if) SLL cert was updated, but I think there is a typo in there somewhere and the restart is resulting in dup server.

Ty for inputs.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...