Jump to content

Scan media library failed.


Recommended Posts

Posted

Hi,

 

Media library task and subtitle download task both fail for some days (weeks?) now, I found the error below in the logs.

System = ubuntu 16.04, always up to date, emby from repository http://download.opensuse.org/repositories/home:/emby/xUbuntu_15.10/ (I didn't find a 16.04 version yet, if there is one I'd be glad to change).

 2016-06-11 14:39:23.5604 Error App: Error in Dynamic Image Provider        *** Error Report ***
        Version: 3.0.5972.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 4.4.0.24
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        String was not recognized as a valid DateTime.
        System.FormatException
          at System.DateTimeParse.ParseExactMultiple (System.String s, System.String[] formats, System.Globalization.DateTimeFormatInfo dtfi, DateTimeStyles style) <0x7f3f3b70ad20 + 0x00096> in <filename unknown>:0
          at System.DateTime.ParseExact (System.String s, System.String[] formats, IFormatProvider provider, DateTimeStyles style) <0x7f3f3b6e26e0 + 0x00049> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText, SQLiteDateFormats format, DateTimeKind kind, System.String formatString) <0x40642570 + 0x00309> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText) <0x40641ac0 + 0x00027> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (IntPtr ptr, Int32 len) <0x40641a50 + 0x00027> in <filename unknown>:0
          at System.Data.SQLite.SQLite3.GetDateTime (System.Data.SQLite.SQLiteStatement stmt, Int32 index) <0x406417c0 + 0x00133> in <filename unknown>:0
          at System.Data.SQLite.SQLiteDataReader.GetDateTime (Int32 i) <0x40640ec0 + 0x0009e> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.GetItem (IDataReader reader) <0x406140a0 + 0x02653> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.RetrieveItem (Guid id) <0x40601e10 + 0x001a7> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager.RetrieveItem (Guid id) <0x40601b60 + 0x00031> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager.GetItemById (Guid id) <0x40600b60 + 0x000a7> in <filename unknown>:0
          at System.Linq.Enumerable+WhereSelectArrayIterator`2[TSource,TResult].MoveNext () <0x40815940 + 0x000a5> in <filename unknown>:0
          at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () <0x4030e420 + 0x00162> in <filename unknown>:0
          at System.Linq.Buffer`1[TElement]..ctor (IEnumerable`1 source) <0x402db910 + 0x001fb> in <filename unknown>:0
          at System.Linq.Enumerable.ToArray[TSource] (IEnumerable`1 source) <0x402f9440 + 0x0004b> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager.GetItemsResult (MediaBrowser.Controller.Entities.InternalItemsQuery query) <0x40811880 + 0x003e3> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder.QueryRecursive (MediaBrowser.Controller.Entities.InternalItemsQuery query) <0x4080f670 + 0x0035e> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<GetItemsInternal>c__async5.MoveNext () <0x4080e960 + 0x007bf> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f3f3b77f6d0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f3f3b77d6b0 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f3f3b77d630 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f3f3b77d5e0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f3f3b77dd10 + 0x00017> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.UserViews.CollectionFolderImageProvider+<GetItemsWithImages>c__async0.MoveNext () <0x4080da50 + 0x00470> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f3f3b77f6d0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f3f3b77d6b0 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f3f3b77d630 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f3f3b77d5e0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x7f3f3b77dd10 + 0x00017> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Photos.BaseDynamicImageProvider`1+<FetchAsync>c__async1[T].MoveNext () <0x4080d000 + 0x0033f> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f3f3b77f6d0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f3f3b77d6b0 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f3f3b77d630 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f3f3b77d5e0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x40665640 + 0x0001a> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Photos.BaseDynamicImageProvider`1+<FetchAsync>c__async0[T].MoveNext () <0x4080c470 + 0x002c1> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f3f3b77f6d0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f3f3b77d6b0 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f3f3b77d630 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f3f3b77d5e0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x40665640 + 0x0001a> in <filename unknown>:0
          at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>c__async8[TItemType,TIdType].MoveNext () <0x4080ba90 + 0x00343> in <filename unknown>:0

I'm not 100% sure if this is an emby issue, media library issue or 3rd party library/tool issue, I haven't seen similar issues yet when googling. I'd appreciate it if anybody could help.

Posted

Hi, can you try mono 4.2.3.4?

Posted

Thanks for the response already. This seemingly didn't change much, same error thrown from seemingly other codepath:

2016-06-11 22:10:12.8432 Error TaskManager: Error
        *** Error Report ***
        Version: 3.0.5972.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 4.4.0.24
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        String was not recognized as a valid DateTime.
        System.FormatException
          at System.DateTimeParse.ParseExactMultiple (System.String s, System.String[] formats, System.Globalization.DateTimeFormatInfo dtfi, DateTimeStyles style) <0x7f7a84ad5d90 + 0x00096> in <filename unknown>:0
          at System.DateTime.ParseExact (System.String s, System.String[] formats, IFormatProvider provider, DateTimeStyles style) <0x7f7a84aad720 + 0x00049> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText, SQLiteDateFormats format, DateTimeKind kind, System.String formatString) <0x40fe8eb0 + 0x00309> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText) <0x40fe7eb0 + 0x00027> in <filename unknown>:0
          at System.Data.SQLite.SQLiteConvert.ToDateTime (IntPtr ptr, Int32 len) <0x40fe7b70 + 0x00027> in <filename unknown>:0
          at System.Data.SQLite.SQLite3.GetDateTime (System.Data.SQLite.SQLiteStatement stmt, Int32 index) <0x40fe76d0 + 0x00133> in <filename unknown>:0
          at System.Data.SQLite.SQLiteDataReader.GetDateTime (Int32 i) <0x40fe7270 + 0x0009e> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.GetItem (IDataReader reader) <0x40fb26e0 + 0x02653> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.RetrieveItem (Guid id) <0x40fa8020 + 0x001a7> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager.RetrieveItem (Guid id) <0x40fa7aa0 + 0x00031> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager.GetItemById (Guid id) <0x40fa7530 + 0x000a7> in <filename unknown>:0
          at System.Linq.Enumerable+WhereSelectListIterator`2[TSource,TResult].MoveNext () <0x4101a640 + 0x00119> in <filename unknown>:0
          at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () <0x41d459a0 + 0x00162> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder.GetActualChildrenDictionary () <0x40d4ea90 + 0x00216> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<ValidateChildrenInternal>c__async1.MoveNext () <0x40d49000 + 0x0055f> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<ValidateSubFolders>c__async4.MoveNext () <0x40d70860 + 0x008c3> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<ValidateChildrenInternal>c__async1.MoveNext () <0x40d49000 + 0x0264a> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<ValidateSubFolders>c__async4.MoveNext () <0x40d70860 + 0x008c3> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Controller.Entities.Folder+<ValidateChildrenInternal>c__async1.MoveNext () <0x40d49000 + 0x0264a> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager+<PerformLibraryValidation>c__async3.MoveNext () <0x40d3e560 + 0x00fea> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () <0x40d3d1c0 + 0x002f8> in <filename unknown>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f7a84b4a8a0 + 0x00029> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f7a84b48880 + 0x000a7> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f7a84b48800 + 0x0006b> in <filename unknown>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f7a84b487b0 + 0x0003a> in <filename unknown>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f7a84b48ce0 + 0x00012> in <filename unknown>:0
          at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () <0x412ee400 + 0x007c7> in <filename unknown>:0

Posted

what is your installed sqlite version?

Posted

user@system:~$ sqlite3 --version
3.11.0 2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f

Posted

how old is this installation of emby server?

Posted

The install itself is less than 2 months old (clean install of ubuntu 16.04 + emby server by the end of April). Everything worked fine until May 22, I opened the notifications db manually to get the exact date of the oldest failed scan. I also want back and took a look in my apt-get history and that day I only had one upgrade

Start-Date: 2016-05-22  14:07:45
Commandline: apt-get --yes dist-upgrade
Requested-By: user (1000)
Upgrade: emby-server:amd64 (3.0.5934, 3.0.5970)
End-Date: 2016-05-22  14:07:49

So it appears the failures started when my server version went from 3.0.5934 to 3.0.5970, no other upgrades where done that day

Posted

it's odd because we haven't changed anything with date storage. if you delete your library.db file and let the server rebuild it, do you still see the problem?

Posted

That seems to have worked, took some time to rescan my whole library but don't get any errors anymore. Thank you for the help.

Posted

Interesting, thanks. Unfortunately I'm not really sure what the root issue was so i guess we'll just have to keep an eye on it. Is it possible that over the last couple months you also updated sqlite?

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...