Search the Community
Showing results for tags 'Scan media library failed'.
-
It appears that my media is not getting scanned correctly. Any pointers for what I should do? Thank you. Log.txt
-
Hi, I have just updated the emby server, since it does not want to do scan library. Thank you for your help 2017-02-12 15:14:58.5323 Info TaskManager: Executing Scan media library 2017-02-12 15:14:58.5323 Info App: Validating media library 2017-02-12 15:14:58.5346 Error TaskManager: Error *** Error Report *** Version: 3.2.1.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.14.32.6 64-Bit OS: True 64-Bit Process: True Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Tue Nov 29 22:31:42 UTC 2016) Processor count: 4 Program data path: /var/lib/emby-server Application directory: /usr/lib/emby-server/bin System.ArgumentNullException: Value cannot be null. Parameter name: path at Emby.Common.Implementations.IO.ManagedFileSystem.GetDirectoryInfo (System.String path) [0x00008] in <da20615430c54c638e588efcad199fdc>:0 at MediaBrowser.Controller.Entities.AggregateFolder.CreateResolveArgs (MediaBrowser.Controller.Providers.IDirectoryService directoryService, System.Boolean setPhysicalLocations) [0x00024] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 at MediaBrowser.Controller.Entities.AggregateFolder.RequiresRefresh () [0x00037] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshMetadata>c__async0[TItemType,TIdType].MoveNext () [0x0007c] in <4d54051fc914418fa8d71186a68a1de4>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at MediaBrowser.Controller.Entities.BaseItem+<RefreshMetadata>c__async1.MoveNext () [0x001fa] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Server.Implementations.Library.LibraryManager+<PerformLibraryValidation>c__async3.MoveNext () [0x00113] in <60da0dda661040f0bc947d7e94c669aa>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () [0x000ae] in <60da0dda661040f0bc947d7e94c669aa>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00181] in <da20615430c54c638e588efcad199fdc>:0 System.ArgumentNullException at Emby.Common.Implementations.IO.ManagedFileSystem.GetDirectoryInfo (System.String path) [0x00008] in <da20615430c54c638e588efcad199fdc>:0 at MediaBrowser.Controller.Entities.AggregateFolder.CreateResolveArgs (MediaBrowser.Controller.Providers.IDirectoryService directoryService, System.Boolean setPhysicalLocations) [0x00024] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 at MediaBrowser.Controller.Entities.AggregateFolder.RequiresRefresh () [0x00037] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshMetadata>c__async0[TItemType,TIdType].MoveNext () [0x0007c] in <4d54051fc914418fa8d71186a68a1de4>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at MediaBrowser.Controller.Entities.BaseItem+<RefreshMetadata>c__async1.MoveNext () [0x001fa] in <2a63d09a43d04dbe9f3b6c5d5a1a3f1e>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Server.Implementations.Library.LibraryManager+<PerformLibraryValidation>c__async3.MoveNext () [0x00113] in <60da0dda661040f0bc947d7e94c669aa>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () [0x000ae] in <60da0dda661040f0bc947d7e94c669aa>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00181] in <da20615430c54c638e588efcad199fdc>:0 2017-02-12 15:14:58.5346 Info TaskManager: Scan media library Failed after 0 minute(s) and 0 seconds 2017-02-12 15:14:58.5358 Info ServerManager: Sending web socket message ScheduledTaskEnded 2017-02-12 15:14:58.5363 Debug NotificationManager: Sending notification via Dashboard Notifications to user Zizzou 2017-02-12 15:14:58.5363 Info ServerManager: Sending web socket message NotificationAdded 2017-02-12 15:14:58.5363 Debug NotificationManager: Sending notification via Dashboard Notifications to user Misoss 2017-02-12 15:14:58.5363 Info ServerManager: Sending web socket message NotificationAdded 2017-02-12 15:14:58.5363 Info TaskManager: ExecuteQueuedTasks
- 5 replies
-
- Scan media library failed
- Value cannot be null
-
(and 1 more)
 Tagged with:
-
Hi I'm running Emby-server v3.1.63.0 (beta) on Debian 7 and tried before with latest release version with same problem. When scanning Library, emby-server stops after few seconds and display : Scan Media Library Failed - Constraint failed columns itemid - AncestorId are not unique. Movies and Musics materials are stored on another server (Unix). So I'm using 2 mount points : /mnt/Movies and /mnt/Musics. All was running great for 2 years ! I tried to uninstall emby-server and re-install : same problem. I tried to remove files and folder in admin user home folder : same problem. If I add a new media Library for Films as "Personal Video" type, Library Scanning works ! With Music media, if create a Library as "Undefined material" , error message is : Scan Media Library Failed - Constraint failed columns itemid - UserDataKey are not unique. Really strange behaviour. Is it a version problem, a database problem ? Many thanks for your help. Best
-
Hi All, I'm a bit stuck on how to trouble shoot this issue I have got since the last server update. Not sure if it is related to the update or just something random that has gone wrong with the database or xml data somewhere: I did have chapter extraction on, so I have tried disabling that with the scan. Still fails around 60% with the same error. Chapter extraction works by itself. Any suggestions on how I might track down the root cause is greatly appreciated! I have attached my latest logs. Thank you. server-63581119004.zip