Jump to content

Scan media library Failed: An item with the same key has already been added.


Recommended Posts

Posted

Hello,

 

After adding some "Media Location"s into various "Media Folder"s of my "Default Library", I was not able to scan the library anymore... (Here after server log with the details).

 

Concretely, I got the error message reported in the topic title. I quickly found that I did add twice the very same "Media Location" into one of the "Media Folder" but didn't notice it immediately. 

 

My question: why isn't there a check when one adds a new "Media Location" to prevent such a situation ?

2014-02-26 23:35:20.5136 Debug - HttpServer: HTTP POST http://hephaistos:8096/mediabrowser/ScheduledTasks/Running/2d67d886717cdade18d9640d4ebbb9cb
Ip: 192.168.0.15:54970. Headers: Origin=http://hephaistos:8096,Connection=keep-alive,Content-Length=0,Accept=*/*,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/scheduledtasks.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-26 23:35:20.5136 Info - App: Executing Scan media library
2014-02-26 23:35:20.5286 Info - App: Sending web socket message ScheduledTaskStarted
2014-02-26 23:35:20.5286 Debug - HttpServer: HTTP Response 204 to 192.168.0.15:54970. Response time: 16,0179 ms
Url: http://hephaistos:8096/mediabrowser/ScheduledTasks/Running/2d67d886717cdade18d9640d4ebbb9cb
Headers: X-UA-Compatible=IE=Edge,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Length=0
2014-02-26 23:35:20.5406 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/ScheduledTasks?isHidden=false
Ip: 192.168.0.15:54970. Headers: Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/scheduledtasks.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-26 23:35:20.5406 Debug - HttpServer: HTTP Response 200 to 192.168.0.15:54970. Response time: 7,0004 ms
Url: http://hephaistos:8096/mediabrowser/ScheduledTasks?isHidden=false
Headers: X-UA-Compatible=IE=Edge,Vary=Accept-Encoding,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=application/json,Content-Encoding=deflate,Transfer-Encoding=chunked
2014-02-26 23:35:20.5536 Info - App: Validating media library
2014-02-26 23:35:20.7581 Info - App: Validating collection folders within C:\Users\admin\AppData\Roaming\MediaBrowser-Server\root\Tools
2014-02-26 23:35:20.7752 Info - App: Validating collection folders within C:\Users\admin\AppData\Roaming\MediaBrowser-Server\root\default
2014-02-26 23:35:20.9499 Info - DirectoryWatchers: Watching directory C:\Users\admin\AppData\Roaming\MediaBrowser-Server\root
2014-02-26 23:35:20.9499 Error - App: Error
An item with the same key has already been added.
System.ArgumentException
  at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
  at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
  at MediaBrowser.Controller.Entities.CollectionFolder.GetLinkedChildrenInternal()
  at MediaBrowser.Controller.Entities.CollectionFolder.get_LinkedChildren()
  at MediaBrowser.Controller.Entities.Folder.RefreshLinkedChildren()
  at MediaBrowser.Controller.Entities.Folder.<RefreshMetadata>d__4d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Controller.Entities.Folder.<RefreshChild>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Controller.Entities.Folder.<RefreshChildren>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal>d__1e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Controller.Entities.Folder.<ValidateChildren>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<ValidateCollectionFolders>d__6d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<PerformLibraryValidation>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<ValidateMediaLibraryInternal>d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<>c__DisplayClassf.<<ExecuteTask>b__e>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<Execute>d__6.MoveNext()


2014-02-26 23:35:20.9499 Info - App: Scan media library Failed after 0 minute(s) and 0 seconds
2014-02-26 23:35:20.9599 Info - DirectoryWatchers: Watching directory \\Hades\divers
2014-02-26 23:35:21.1770 Info - App: Sending web socket message ScheduledTaskEnded
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\Hades\music
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\HADES\photo
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\Hades\video\Cartoons DVDRip
2014-02-26 23:35:21.1780 Info - App: Sending web socket message NotificationAdded
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\Hades\video\Cartoons HD
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\Hades\video\Docu HD
2014-02-26 23:35:21.1780 Info - DirectoryWatchers: Watching directory \\Hades\video\Docu DVDRip
2014-02-26 23:35:21.1961 Info - DirectoryWatchers: Watching directory \\Hades\video\Series HDTV
2014-02-26 23:35:21.1961 Info - DirectoryWatchers: Watching directory \\Hades\video\Movies DVDRip
2014-02-26 23:35:21.1961 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/Notifications/78ee3c8192698ab53354b66650dc8201/Summary
Ip: 192.168.0.15:54970. Headers: Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/scheduledtasks.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-26 23:35:21.1961 Info - DirectoryWatchers: Watching directory \\Hades\video\Movies HD
2014-02-26 23:35:21.1961 Debug - HttpServer: HTTP Response 200 to 192.168.0.15:54970. Response time: 14,0078 ms
Url: http://hephaistos:8096/mediabrowser/Notifications/78ee3c8192698ab53354b66650dc8201/Summary
Headers: X-UA-Compatible=IE=Edge,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=application/json; charset=utf-8,Transfer-Encoding=chunked
2014-02-26 23:35:21.2101 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Cartoons DVDRip
2014-02-26 23:35:21.2101 Info - DirectoryWatchers: Watching directory \\HADES\video\Series Cartoons
2014-02-26 23:35:21.2101 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Cartoons HD
2014-02-26 23:35:21.2101 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Docu HD
2014-02-26 23:35:21.2251 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Movies DVDRip
2014-02-26 23:35:21.2251 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Series Cartoons
2014-02-26 23:35:21.2251 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Movies HD

 

Posted

we really need to see the full log.

Posted

Sorry... My Mistake... I did delete the logs just before starting another scan, for clean-up purpose (stupid, I now)...

 

But it's very easy to reproduce. Add a "Media Location" already existing as shown on the screenshot here after..

 

 

530e7ec9c7c58_DuplicateMediaLocation.png

 

 

IMO, there is not check implemented when adding a "Media Location" to avoid duplicates...

 

That being said, I did restart the media browser service to get a new log and here it is:

 

2014-02-27 00:49:33.0776 Info - Main: Media Browser Server started
2014-02-27 00:49:33.0856 Info - Main: Command line: C:\Users\admin\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service
2014-02-27 00:49:33.0856 Info - Main: Server: HEPHAISTOS
2014-02-27 00:49:33.0856 Info - Main: Operating system: Microsoft Windows NT 6.2.9200.0
2014-02-27 00:49:33.0856 Info - Main: Program data path: C:\Users\admin\AppData\Roaming\MediaBrowser-Server
2014-02-27 00:49:33.0856 Info - Main: Application Path: C:\Users\admin\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
2014-02-27 00:49:33.3918 Info - App: Application Configuration:
{"WeatherLocation":"Belgium/Brussels","WeatherUnit":"Celsius","EnableHttpLevelLogging":true,"HttpServerPortNumber":8096,"LegacyWebSocketPortNumber":8945,"EnableInternetProviders":true,"ItemsByNamePath":"C:\\Users\\Public\\MediaBrowser\\Images","SeasonZeroDisplayName":"Specials","MetadataRefreshDays":30,"SaveLocalMeta":true,"RefreshItemImages":false,"PreferredMetadataLanguage":"fr","MetadataCountryCode":"FR","DownloadMovieImages":{"Art":true,"Logo":true,"Primary":true,"Backdrops":true,"Disc":true,"Thumb":true,"Banner":true},"DownloadSeriesImages":{"Art":true,"Logo":true,"Primary":true,"Backdrops":true,"Disc":true,"Thumb":true,"Banner":true},"DownloadSeasonImages":{"Art":true,"Logo":true,"Primary":true,"Backdrops":true,"Disc":true,"Thumb":true,"Banner":true},"DownloadMusicArtistImages":{"Art":true,"Logo":true,"Primary":true,"Backdrops":true,"Disc":true,"Thumb":true,"Banner":true},"DownloadMusicAlbumImages":{"Art":true,"Logo":true,"Primary":true,"Backdrops":true,"Disc":true,"Thumb":true,"Banner":true},"SortReplaceCharacters":[".","+","%"],"SortRemoveCharacters":[",","&","-","{","}","'"],"SortRemoveWords":["the","a","an"],"ShowLogWindow":false,"RecentItemDays":10,"MinResumePct":5,"MaxResumePct":90,"MinResumeDurationSeconds":300,"FileWatcherDelay":8,"EnableDashboardResponseCaching":true,"ManualLoginClients":[],"EnableTvDbUpdates":true,"EnableTmdbUpdates":true,"EnableVideoImageExtraction":false,"ImageSavingConvention":"Compatible","EnablePeoplePrefixSubFolders":true,"MediaEncodingQuality":"Auto","EnableMovieChapterImageExtraction":false,"EnableEpisodeChapterImageExtraction":false,"EnableOtherVideoChapterImageExtraction":false,"MovieOptions":{"MaxBackdrops":3,"MinBackdropWidth":1280},"TvOptions":{"MaxBackdrops":3,"MinBackdropWidth":1280},"MusicOptions":{"MaxBackdrops":1,"MinBackdropWidth":1280},"GameOptions":{"MaxBackdrops":3,"MinBackdropWidth":1280},"BookOptions":{"MaxBackdrops":1,"MinBackdropWidth":1280},"EnableDebugEncodingLogging":true,"TranscodingTempPath":"C:\\Users\\Public\\MediaBrowser\\Transcoding","EnableAutomaticRestart":true,"TvFileOrganizationOptions":{"IsEnabled":false,"MinFileSizeMb":50,"LeftOverFileExtensionsToDelete":[],"WatchLocations":[],"SeasonFolderPattern":"Season %s","SeasonZeroFolderName":"Season 0","EpisodeNamePattern":"%sn - %sx%0e - %en.%ext","MultiEpisodeNamePattern":"%sn - %sx%0e-x%0ed - %en.%ext","OverwriteExistingEpisodes":false,"DeleteEmptyFolders":false},"LiveTvOptions":{},"EnableDebugLevelLogging":true,"EnableAutoUpdate":true,"SystemUpdateLevel":"Release","LogFileRetentionDays":3,"RunAtStartup":false,"IsStartupWizardCompleted":true,"CachePath":"C:\\Users\\Public\\MediaBrowser\\Cache"}
2014-02-27 00:49:33.4038 Info - App: Loading MBPhoto, Version=1.0.0.2, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4038 Info - App: Loading MediaBrowser.Api, Version=3.0.5135.31684, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4038 Info - App: Loading MediaBrowser.WebDashboard, Version=3.0.5135.31684, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4038 Info - App: Loading MediaBrowser.Model, Version=3.0.5135.31683, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4038 Info - App: Loading MediaBrowser.Common, Version=3.0.5135.31683, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4038 Info - App: Loading MediaBrowser.Controller, Version=3.0.5135.31683, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4138 Info - App: Loading MediaBrowser.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4138 Info - App: Loading MediaBrowser.Common.Implementations, Version=3.0.5135.31683, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4138 Info - App: Loading MediaBrowser.Server.Implementations, Version=3.0.5135.31684, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4138 Info - App: Loading MediaBrowser.IsoMounter, Version=1.0.5079.1480, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.4138 Info - App: Loading MediaBrowser.ServerApplication, Version=3.0.5135.31685, Culture=neutral, PublicKeyToken=null
2014-02-27 00:49:33.5279 Info - App: Version 3.0.5135.31685 initializing
2014-02-27 00:49:33.5719 Info - SqliteUserRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\users.db
2014-02-27 00:49:33.6329 Info - SqliteItemRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\chapters.db
2014-02-27 00:49:33.6329 Info - SqliteItemRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\mediainfo.db
2014-02-27 00:49:33.6329 Info - SqliteItemRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\providerinfo.db
2014-02-27 00:49:33.6570 Info - SqliteFileOrganizationRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\fileorganization.db
2014-02-27 00:49:33.7950 Info - SqliteDisplayPreferencesRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\displaypreferences.db
2014-02-27 00:49:33.7950 Info - SqliteItemRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\library.db
2014-02-27 00:49:33.7950 Info - SqliteUserDataRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\userdata_v2.db
2014-02-27 00:49:33.7950 Info - SqliteNotificationsRepository: Opening C:\Users\admin\AppData\Roaming\MediaBrowser-Server\data\notifications.db
2014-02-27 00:49:34.0362 Info - HttpServer: Calling ServiceStack AppHost.Init
2014-02-27 00:49:34.7978 Error - ServiceController: System.ArgumentException: Type ServiceStack.Api.Swagger.SwaggerResourcesService is not a Web Service that inherits IService
   at ServiceStack.Host.ServiceController.RegisterService(Type serviceType)
2014-02-27 00:49:34.8058 Error - ServiceController: System.ArgumentException: Type ServiceStack.Api.Swagger.SwaggerApiService is not a Web Service that inherits IService
   at ServiceStack.Host.ServiceController.RegisterService(Type serviceType)
2014-02-27 00:49:34.8298 Info - ServiceStackHost: Initializing Application took 1144,7988ms
2014-02-27 00:49:34.8468 Info - App: Loading Http Server
2014-02-27 00:49:34.8538 Info - HttpServer: Adding HttpListener prefix http://+:8096/mediabrowser/
2014-02-27 00:49:34.8538 Info - HttpServer: Starting HttpListner
2014-02-27 00:49:35.1970 Info - App: Core startup complete
2014-02-27 00:49:35.5389 Info - App: HttpClientManager POST: http://mb3admin.com/admin/service/registration/validate
2014-02-27 00:49:35.7962 Info - App: HttpClientManager GET: http://mediabrowser.tv/community/index.php?/blog/rss/1-media-browser-developers-blog
2014-02-27 00:49:35.7962 Info - App: HttpClientManager GET: http://www.mb3admin.com/admin/service/MB3ServerNotifications.json
2014-02-27 00:49:36.0239 Debug - MBPhoto: MBPhoto Registration Status - Registered: True In trial: False Expiration Date: 02-03-14 23:00:00 Is Valid: True
2014-02-27 00:49:38.2029 Info - App: StartupTrigger fired for task: Check for application updates
2014-02-27 00:49:38.2029 Info - App: StartupTrigger fired for task: Scan media library
2014-02-27 00:49:38.2029 Info - App: StartupTrigger fired for task: Check for plugin updates
2014-02-27 00:49:38.2100 Info - App: Executing Check for application updates
2014-02-27 00:49:38.2260 Info - App: Executing Scan media library
2014-02-27 00:49:38.2260 Info - App: Executing Check for plugin updates
2014-02-27 00:49:38.2260 Info - App: Check for application updates Completed after 0 minute(s) and 0 seconds
2014-02-27 00:49:38.2420 Info - App: HttpClientManager GET: http://www.mb3admin.com/admin/service/MB3Packages.json
2014-02-27 00:49:38.2420 Info - App: Validating media library
2014-02-27 00:49:38.2960 Info - App: StartupTrigger fired for task: Refresh Guide
2014-02-27 00:49:38.2960 Info - App: Executing Refresh Guide
2014-02-27 00:49:38.2960 Info - App: StartupTrigger fired for task: Log file cleanup
2014-02-27 00:49:38.3040 Info - App: Executing Log file cleanup
2014-02-27 00:49:38.3040 Info - App: StartupTrigger fired for task: Cache file cleanup
2014-02-27 00:49:38.3040 Info - App: Executing Cache file cleanup
2014-02-27 00:49:38.3040 Info - App: Log file cleanup Completed after 0 minute(s) and 0 seconds
2014-02-27 00:49:38.3040 Info - App: Refresh Guide Completed after 0 minute(s) and 0 seconds
2014-02-27 00:49:38.3971 Info - App: Cache file cleanup Completed after 0 minute(s) and 0 seconds
2014-02-27 00:49:39.0607 Info - App: Validating collection folders within C:\Users\admin\AppData\Roaming\MediaBrowser-Server\root\default
2014-02-27 00:49:39.2380 Info - DirectoryWatchers: Watching directory C:\Users\admin\AppData\Roaming\MediaBrowser-Server\root
2014-02-27 00:49:39.2420 Error - App: Error
An item with the same key has already been added.
System.ArgumentException
  at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
  at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
  at MediaBrowser.Controller.Entities.CollectionFolder.GetLinkedChildrenInternal()
  at MediaBrowser.Controller.Entities.CollectionFolder.get_LinkedChildren()
  at MediaBrowser.Controller.Entities.Folder.RefreshLinkedChildren()
  at MediaBrowser.Controller.Entities.Folder.<RefreshMetadata>d__4d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Controller.Entities.Folder.<RefreshChild>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Controller.Entities.Folder.<RefreshChildren>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal>d__1e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Controller.Entities.Folder.<ValidateChildren>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<ValidateCollectionFolders>d__6d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<PerformLibraryValidation>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Library.LibraryManager.<ValidateMediaLibraryInternal>d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<>c__DisplayClassf.<<ExecuteTask>b__e>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<Execute>d__6.MoveNext()


2014-02-27 00:49:39.2420 Info - App: Scan media library Failed after 0 minute(s) and 1 seconds
2014-02-27 00:49:39.2420 Info - DirectoryWatchers: Watching directory \\Hades\music
2014-02-27 00:49:39.2420 Info - DirectoryWatchers: Watching directory \\Hades\divers
2014-02-27 00:49:39.2871 Info - DirectoryWatchers: Watching directory \\HADES\photo
2014-02-27 00:49:39.2901 Info - DirectoryWatchers: Watching directory \\Hades\video\Cartoons DVDRip
2014-02-27 00:49:39.3041 Info - DirectoryWatchers: Watching directory \\Hades\video\Cartoons HD
2014-02-27 00:49:39.3041 Info - DirectoryWatchers: Watching directory \\Hades\video\Docu DVDRip
2014-02-27 00:49:39.3041 Info - DirectoryWatchers: Watching directory \\Hades\video\Docu HD
2014-02-27 00:49:39.3191 Info - DirectoryWatchers: Watching directory \\Hades\video\Movies DVDRip
2014-02-27 00:49:39.3191 Info - DirectoryWatchers: Watching directory \\Hades\video\Movies HD
2014-02-27 00:49:39.3191 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Cartoons DVDRip
2014-02-27 00:49:39.3361 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Cartoons HD
2014-02-27 00:49:39.3361 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Docu HD
2014-02-27 00:49:39.3361 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Movies DVDRip
2014-02-27 00:49:39.3532 Info - App: Check for plugin updates Completed after 0 minute(s) and 1 seconds
2014-02-27 00:49:39.3532 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Movies HD
2014-02-27 00:49:39.3932 Info - DirectoryWatchers: Watching directory \\HADES\video\New Movies\Series Cartoons
2014-02-27 00:49:39.4082 Info - DirectoryWatchers: Watching directory \\HADES\video\Series Cartoons
2014-02-27 00:49:39.4082 Info - DirectoryWatchers: Watching directory \\Hades\video\Series HDTV
2014-02-27 00:50:35.3410 Info - App: HttpClientManager GET: http://bot.whatismyipaddress.com/
2014-02-27 00:55:43.3709 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/dashboard/library.html
Ip: 192.168.0.15:64694. Headers: Connection=keep-alive,Accept=text/html, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Host=hephaistos:8096,If-None-Match=f66549ba3b87a894b4ac2f6f54d9295c,Referer=http://hephaistos:8096/mediabrowser/dashboard/scheduledtasks.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-27 00:55:43.4823 Debug - HttpServer: HTTP Response 304 to 192.168.0.15:64694. Response time: 122,3894 ms
Url: http://hephaistos:8096/mediabrowser/dashboard/library.html
Headers: X-UA-Compatible=IE=Edge,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=text/html; charset=UTF-8,ETag=f66549ba3b87a894b4ac2f6f54d9295c,Content-Length=0
2014-02-27 00:55:43.6077 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/System/Info
Ip: 192.168.0.15:64694. Headers: Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/library.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-27 00:55:43.7254 Debug - HttpServer: HTTP Response 200 to 192.168.0.15:64694. Response time: 117,6935 ms
Url: http://hephaistos:8096/mediabrowser/System/Info
Headers: X-UA-Compatible=IE=Edge,Vary=Accept-Encoding,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=application/json,Content-Encoding=deflate,Transfer-Encoding=chunked
2014-02-27 00:55:43.7254 Debug - HttpServer: Web Socket http://hephaistos:8096/mediabrowser
Ip: 192.168.0.15:64695. Headers: Origin=http://hephaistos:8096,Sec-WebSocket-Key=ebB3V66S635NIBfcgaxiOA==,Sec-WebSocket-Version=13,Sec-WebSocket-Extensions=permessage-deflate; client_max_window_bits, x-webkit-deflate-frame,Cache-Control=no-cache,Connection=Upgrade,Pragma=no-cache,Upgrade=websocket,Host=hephaistos:8096,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-27 00:55:44.0678 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/users?
Ip: 192.168.0.15:64694. Headers: Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/library.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-27 00:55:44.0948 Debug - HttpServer: HTTP Response 200 to 192.168.0.15:64694. Response time: 30,0305 ms
Url: http://hephaistos:8096/mediabrowser/users?
Headers: X-UA-Compatible=IE=Edge,Vary=Accept-Encoding,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=application/json,Content-Encoding=deflate,Transfer-Encoding=chunked
2014-02-27 00:55:44.1239 Debug - HttpServer: HTTP GET http://hephaistos:8096/mediabrowser/Library/VirtualFolders
Ip: 192.168.0.15:64694. Headers: Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip,deflate,sdch,Accept-Language=fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 33.0.1750.117", DeviceId="144db0b5fbdc3a354267fd67e773c12ed31fe44d", Version="3.0.5135.31685", UserId="78ee3c8192698ab53354b66650dc8201",Host=hephaistos:8096,Referer=http://hephaistos:8096/mediabrowser/dashboard/library.html,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
2014-02-27 00:55:44.1339 Debug - HttpServer: HTTP Response 200 to 192.168.0.15:64694. Response time: 10,0099 ms
Url: http://hephaistos:8096/mediabrowser/Library/VirtualFolders
Headers: X-UA-Compatible=IE=Edge,Vary=Accept-Encoding,X-Powered-By=ServiceStack/4,001 Win32NT/.NET,Access-Control-Allow-Origin=*,Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS,Access-Control-Allow-Headers=Content-Type, Authorization,Content-Type=application/json,Content-Encoding=deflate,Transfer-Encoding=chunked
2014-02-27 00:55:44.2614 Debug - SessionWebSocketListener: Received Identity message: Dashboard|144db0b5fbdc3a354267fd67e773c12ed31fe44d|3.0.5135.31685|Chrome 33.0.1750.117

 

Posted

The same thing happened to me. In the previous version, I had my main library and then a library that was specific to only one user. After the changes when we could no longer have a second library, I had to add that folder to the main library (and disable it for any other users).

 

So I think that the problem is that the server is either allowing the same entry twice, or making the double entry when adding a new library. Since the double entry is allowed, when it tries to do the next scan it fails. Since it does a scan after adding a folder, it fails right there.

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