Jump to content

Emby 4.7.8 crashes during library rescan


samulopezperez@outlook.com

Recommended Posts

samulopezperez@outlook.com

Hi,

Since a couple of days I am not able to rescan my photo library. I have about 50.000 files and my NAS is a Terramaster F2-410. I have created the library years ago without any issue. I am currently running the latest TOS 5 patch. The problem is only with this library, I have ten libraries (movies, music, photos) and are working fine but when I perform a full rescan or I do it in this photo library, the resoruces are at 100% and emby crashes. I attach a log just in case you can help me.

embyserver (1).txt

Link to comment
Share on other sites

Hi, please try removing these plugins:

2022-10-11 11:03:27.790 Info App: Loading MediaBrowser.Plugins.SmtpNotifications, Version=3.1.6.0, Culture=neutral, PublicKeyToken=null from /Volume1/Emby/plugins/MediaBrowser.Plugins.SmtpNotifications.dll
2022-10-11 11:03:27.790 Info App: Loading DiskSpace, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /Volume1/Emby/plugins/DiskSpace.dll
2022-10-11 11:03:27.790 Info App: Loading CoverArt, Version=4.1.18.0, Culture=neutral, PublicKeyToken=null from /Volume1/Emby/plugins/CoverArt.dll
2022-10-11 11:03:27.791 Info App: Loading statistics, Version=3.0.3.10, Culture=neutral, PublicKeyToken=null from /Volume1/Emby/plugins/Statistics.dll

Then restart the server and see how that compares. Thanks.

Link to comment
Share on other sites

Happy2Play

Only thing I am seeing is Collections are broken do to legacy path as they moved from /data/collections to /metadata/collections but you have old database entry.

2022-10-11 11:06:02.086 Error BaseItem: Error refreshing item Collections 9d7ad6af-e9af-a2da-b1a2-f6e00ad28fa6 /Volume1/Emby/root/default/Collections
	*** Error Report ***
	Version: 4.7.8.0
	Command line: /Volume1/@apps/emby/emby-server/system/EmbyServer.dll -programdata /Volume1/Emby -ffdetect /Volume1/@apps/emby/emby-server/bin/ffdetect -ffmpeg /Volume1/@apps/emby/emby-server/bin/ffmpeg -ffprobe /Volume1/@apps/emby/emby-server/bin/ffprobe -defaultdirectory /mnt/public -updatepackage emby_TOS5_APP_{version}_x86_64.tpk
	Operating system: Linux version 4.19.165+ (root@developer) (gcc version 7.1.0 (Buildroot 2017.08-rc1)) #435 SMP Tue Aug 9 10:27:33 CST 2022
	Framework: .NET 6.0.8
	OS/Process: x64/x64
	Runtime: Volume1/@apps/emby/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /Volume1/Emby
	Application path: /Volume1/@apps/emby/emby-server/system
	System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/Volume1/Emby/data/collections'.
	   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
	   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
	   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
	   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
	   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
	   at System.IO.DirectoryInfo.EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path, Boolean clearCache)
	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
	   at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetFiles(String[] paths, IDirectoryService directoryService)
	   at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(BaseItem item, LibraryOptions libraryOptions, String[] paths, Boolean arePathsInMediaFolders, IDirectoryService directoryService)
	   at MediaBrowser.LocalMetadata.Images.CollectionFolderLocalImageProvider.GetImages(BaseItem item, LibraryOptions libraryOptions, IDirectoryService directoryService)
	   at Emby.Providers.Manager.ItemImageProvider.<>c__DisplayClass5_0.<ValidateImages>b__0(ILocalImageFileProvider i)
	   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList()
	   at Emby.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, LibraryOptions libraryOptions, IEnumerable`1 providers, IDirectoryService directoryService)
	   at Emby.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, CancellationToken cancellationToken)
	   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
	   at MediaBrowser.Controller.Entities.Folder.RefreshMetadataRecursive(BaseItem[] children, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken)
	Source: System.Private.CoreLib
	TargetSite: IntPtr CreateDirectoryHandle(System.String, Boolean)

Workaround in this topic and your path will be /Volume1/Emby/root/default/Collections

 

But the last couple minutes of the log are odd in ScheduledTasks.

 

Link to comment
Share on other sites

samulopezperez@outlook.com

Hi There,

Thank you for your answers. I tried the workaround that Happy2Play, I deleted the path /Volume1/Emby/root/default/Collections but I wasn't able to rescan the libraries.

And I also have removed the four plugins that Luke says from Emby but same issue, the rescan get stuck at about 95%.

I attach a new log.

Thanks again for all your help.

embyserver (1) (1).txt

Link to comment
Share on other sites

samulopezperez@outlook.com

Hi,

After starting the scan of the photo library or a full scan Emby crashes always and all the resources of the OS are consumed at 100% (ram and cpu). My Emby configuration wasn't modify for a long time, a full rescan was done as a schedule task every 12 hours. 

New logs were attached.

Thanks

embyserver-63801329746.txt hardware_detection-63801329759.txt embyserver (2).txt

Link to comment
Share on other sites

Ok yes there is an issue where certain photo files can cause this. If you need immediate relief it is resolved in the 4.8 beta channel. Thanks.

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