Jump to content

Library Database Issues with current server version


TechDragon

Recommended Posts

TechDragon

I've been trying to purge an issue with otherwise inexplicable database errors for the last few days since the last update.

 

I have removed all libraries and isolated the issue to my TV shows. But diagnosing it further is proving troublesome since there is no information on what files were being worked on when the error occurred.  

2016-02-20 18:26:13.8343 Error App: Error in Nfo
        *** Error Report ***
        Version: 3.0.5871.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 3.13.0.27
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 12:46:26 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        Text node cannot appear in this state.  Line 4, position 28.
        System.Xml.XmlException
          at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at Mono.Xml.XmlFilterReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, System.Xml.XmlReaderSettings settings, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.EpisodeNfoParser.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.Collections.Generic.List`1 images, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.EpisodeNfoProvider.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 result, System.String path, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.BaseNfoProvider`1+<GetMetadata>c__async0[MediaBrowser.Controller.Entities.TV.Episode].MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Providers.MetadataResult`1[MediaBrowser.Controller.Entities.TV.Episode]].GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshWithProviders>c__async4[MediaBrowser.Controller.Entities.TV.Episode,MediaBrowser.Controller.Providers.EpisodeInfo].MoveNext () [0x00000] in <filename unknown>:0 

2016-02-20 18:26:13.9750 Error App: Error in Nfo
        *** Error Report ***
        Version: 3.0.5871.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 3.13.0.27
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 12:46:26 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        Text node cannot appear in this state.  Line 4, position 28.
        System.Xml.XmlException
          at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at Mono.Xml.XmlFilterReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, System.Xml.XmlReaderSettings settings, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.EpisodeNfoParser.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.Collections.Generic.List`1 images, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.EpisodeNfoProvider.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 result, System.String path, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.BaseNfoProvider`1+<GetMetadata>c__async0[MediaBrowser.Controller.Entities.TV.Episode].MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Providers.MetadataResult`1[MediaBrowser.Controller.Entities.TV.Episode]].GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshWithProviders>c__async4[MediaBrowser.Controller.Entities.TV.Episode,MediaBrowser.Controller.Providers.EpisodeInfo].MoveNext () [0x00000] in <filename unknown>:0 

2016-02-20 18:26:14.1040 Error App: Error in Nfo
        *** Error Report ***
        Version: 3.0.5871.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 3.13.0.27
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 12:46:26 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        Text node cannot appear in this state.  Line 4, position 28.
        System.Xml.XmlException
          at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
          at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
          at Mono.Xml.XmlFilterReader.Read () [0x00000] in <filename unknown>:0 
          at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, System.Xml.XmlReaderSettings settings, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.BaseNfoParser`1[MediaBrowser.Controller.Entities.TV.Episode].Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Parsers.EpisodeNfoParser.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 item, System.Collections.Generic.List`1 images, System.String metadataFile, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.EpisodeNfoProvider.Fetch (MediaBrowser.Controller.Providers.MetadataResult`1 result, System.String path, CancellationToken cancellationToken) [0x00000] in <filename unknown>:0 
          at MediaBrowser.XbmcMetadata.Providers.BaseNfoProvider`1+<GetMetadata>c__async0[MediaBrowser.Controller.Entities.TV.Episode].MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Providers.MetadataResult`1[MediaBrowser.Controller.Entities.TV.Episode]].GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshWithProviders>c__async4[MediaBrowser.Controller.Entities.TV.Episode,MediaBrowser.Controller.Providers.EpisodeInfo].MoveNext () [0x00000] in <filename unknown>:0 

2016-02-20 18:26:14.1199 Error TaskManager: Error
        *** Error Report ***
        Version: 3.0.5871.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 3.13.0.27
        Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 12:46:26 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        database disk image is malformed
        database disk image is malformed
        System.Data.SQLite.SQLiteException
          at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00000] in <filename unknown>:0 
          at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x00000] in <filename unknown>:0 
          at System.Data.SQLite.SQLiteDataReader.NextResult () [0x00000] in <filename unknown>:0 
          at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, CommandBehavior behave) [0x00000] in <filename unknown>: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 (CommandBehavior behavior) [0x00000] in <filename unknown>:0 
          at System.Data.SQLite.SQLiteCommand.ExecuteDbDataReader (CommandBehavior behavior) [0x00000] in <filename unknown>:0 
          at System.Data.Common.DbCommand.ExecuteReader (CommandBehavior behavior) [0x00000] in <filename unknown>:0 
          at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader (CommandBehavior behavior) [0x00000] in <filename unknown>:0 
          at MediaBrowser.Server.Implementations.Persistence.SqliteProviderInfoRepository.GetMetadataStatus (Guid itemId) [0x00000] in <filename unknown>:0 
          at MediaBrowser.Providers.Manager.MetadataService`2[MediaBrowser.Controller.Entities.TV.Episode,MediaBrowser.Controller.Providers.EpisodeInfo].GetLastResult (IHasMetadata item) [0x00000] in <filename unknown>:0 
          at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshMetadata>c__async0[MediaBrowser.Controller.Entities.TV.Episode,MediaBrowser.Controller.Providers.EpisodeInfo].MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Library.ItemUpdateType].GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.BaseItem+<RefreshMetadata>c__async1.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[MediaBrowser.Controller.Library.ItemUpdateType].GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.TV.Series+<RefreshAllMetadata>c__async0.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.Folder+<RefreshChildMetadata>c__async3.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.Folder+<RefreshMetadataRecursive>c__async2.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.Folder+<RefreshChildMetadata>c__async3.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.Folder+<RefreshMetadataRecursive>c__async2.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Controller.Entities.Folder+<ValidateChildrenInternal>c__async1.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Server.Implementations.Library.LibraryManager+<PerformLibraryValidation>c__async3.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () [0x00000] in <filename unknown>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
          at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () [0x00000] in <filename unknown>:0 

2016-02-20 18:26:14.1199 Info TaskManager: Scan media library Failed after 2 minute(s) and 17 seconds
Link to comment
Share on other sites

TechDragon

Digging in further, it appears that Emby is parsing NFO file XML far more pedantically than in previous versions... and then inexplicably attributing the cause of the library scan failure to database corruption instead of correctly to a bad NFO file...  

Link to comment
Share on other sites

Hi, no that's not true. there is some kind of database corruption here. you'll need to delete your refreshinfo.db file under the /data folder.

Link to comment
Share on other sites

TechDragon

Hi Luke

 

If there is indeed database corruption, in that file, its transient & ignorable... Since I was able to stop "database disk image is malformed database disk image is malformed" from repeatedly causing incomplete library scans, by heading into the metadata manager, and forcing a full refresh on a show I was able to isolate the NFO file / metadata parsing to for testing purposes. I was only deleting the Library DB files, before I began investigating the NFO files and folder structure with regards to metadata being the cause. 

 

Is it possible that this issue is a result of a attempting to 'insert' invalid data instead of skipping over it, triggering the malformed database error?

 

I'm not very familiar with C# so the stack trace means little to me other than a few informative lines. I can extract the files out of a ZFS snapshot from before I fixed the issue, but I'm not sure what good it will do since I was unable to 'see' anything obviously wrong when I went through and checked the NFO files in vim. Which leads me to suspect unprintable chars, or the metadata gathered by Emby from the folder structure instead of the NFO file itself.

Link to comment
Share on other sites

I'm not sure what caused this, and I wouldn't be surprised if it could be repaired somehow, but deleting the database is the simplest path.

Link to comment
Share on other sites

TechDragon

I'll definitely be adding "delete refreshinfo.db" to the troubleshooting list for future reference but I the biggest issue I faced with this was the difficulty I had tracking down the cause. Is there a way to get more verbose activity information out of the library scan, or more informational output in the stack traces? The information about the XML parsing error, and API call errrors, was about the most informative part of the logs. It would be really handy to have the output include the file/folder/path currently being processed by the library scan when it had the problem.

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