darkside40 91 Posted September 5, 2019 Share Posted September 5, 2019 Hi there, in the last couple of days i had two time the failure that the Cache File Cleanup failes. When if look at the error Message it says: Structure needs cleaningat System.IO.FileStatus.EnsureStatInitialized(ReadOnlySpan`1 path, Boolean continueOnError)at System.IO.FileSystemInfo.Init(FileStatus& fileStatus)at System.IO.FileSystemInfo.Create(String fullPath, String fileName, FileStatus& fileStatus)at System.IO.Enumeration.FileSystemEntry.ToFileSystemInfo()at System.IO.Enumeration.FileSystemEnumerableFactory.<>c.<FileInfos>b__6_0(FileSystemEntry& entry)at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator.TransformEntry(FileSystemEntry& entry)at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)at Emby.Server.Implementations.ScheduledTasks.Tasks.DeleteCacheFileTask.DeleteCacheFilesFromDirectory(CancellationToken cancellationToken, String directory, DateTimeOffset minDateModified, What does that mean and how can i repair this. I am using Emby 4.2.1.0 in the offical docker. Link to comment Share on other sites More sharing options...
Luke 37095 Posted September 5, 2019 Share Posted September 5, 2019 Hi there, please attach the complete emby server log. thanks ! Link to comment Share on other sites More sharing options...
darkside40 91 Posted September 6, 2019 Author Share Posted September 6, 2019 Okay hope you find something. The failure description in the log is the same which i already posted. embyserver-63703306144.txt Link to comment Share on other sites More sharing options...
Luke 37095 Posted September 7, 2019 Share Posted September 7, 2019 You may want to take a look at this here: https://unix.stackexchange.com/questions/330742/cannot-remove-file-structure-needs-cleaning Link to comment Share on other sites More sharing options...
darkside40 91 Posted September 7, 2019 Author Share Posted September 7, 2019 Okay did a filesystem check, is there anyway to trigger the cleanup manually so i can see if it worked? Link to comment Share on other sites More sharing options...
Luke 37095 Posted September 7, 2019 Share Posted September 7, 2019 No but it will happen on it's own within a day. Link to comment Share on other sites More sharing options...
Solution Happy2Play 8296 Posted September 7, 2019 Solution Share Posted September 7, 2019 Okay did a filesystem check, is there anyway to trigger the cleanup manually so i can see if it worked?Only via the api "ScheduledTasks". API link at the bottom of the dashboard. Go to "POST /ScheduledTasks/Running/{Id}" and enter 241d4fcb19a1d557ee62428e411da609. 1 Link to comment Share on other sites More sharing options...
darkside40 91 Posted September 8, 2019 Author Share Posted September 8, 2019 Think it is working now. Link to comment Share on other sites More sharing options...
Luke 37095 Posted September 8, 2019 Share Posted September 8, 2019 Thanks for the feedback. Link to comment Share on other sites More sharing options...
AdrianW 1053 Posted September 13, 2019 Share Posted September 13, 2019 (edited) I've just noticed the cache cleanup failing: I think the issue is that it's running at 3:45am - when my NAS is off. This is the popup text from the "i" icon (KANAME is my NAS), Emby server is on a NUC. The network path was not found. : '\\KANAME\Video\Other\ImagesByNameMB3\metadata\temp' 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.FileInfos(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.EnumerateFiles(String searchPattern, SearchOption searchOption) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFiles(String path, String[] extensions, Boolean enableCaseSensitiveExtensions, Boolean recursive) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFiles(String path, Boolean recursive) at Emby.Server.Implementations.ScheduledTasks.Tasks.DeleteCacheFileTask.DeleteCacheFilesFromDirectory(CancellationToken cancellationToken, String directory, DateTimeOffset minDateModified, IProgress`1 progress) at Emby.Server.Implementations.ScheduledTasks.Tasks.DeleteCacheFileTask.Execute(CancellationToken cancellationToken, IProgress`1 progress) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) Edited September 13, 2019 by AdrianW Link to comment Share on other sites More sharing options...
Luke 37095 Posted September 13, 2019 Share Posted September 13, 2019 Did you look at the error message? We should probably just stop logging the failures. Link to comment Share on other sites More sharing options...
AdrianW 1053 Posted September 14, 2019 Share Posted September 14, 2019 Did you look at the error message? We should probably just stop logging the failures. Well, that just says "The network path was not found." - but I think "Cache file cleanup failed" and a red icon makes it look more serious. If that process always runs at 3:45am then it will never complete successfully on my server. If I could reschedule it to a more appropriate time then at least it should be able to run properly. Link to comment Share on other sites More sharing options...
AdrianW 1053 Posted September 25, 2019 Share Posted September 25, 2019 So, this thing is still running every day at 3:45am and failing. I'd like to be able to re-schedule it to a sensible time - or alternatively disable it entirely. Link to comment Share on other sites More sharing options...
Happy2Play 8296 Posted September 25, 2019 Share Posted September 25, 2019 So, this thing is still running every day at 3:45am and failing. I'd like to be able to re-schedule it to a sensible time - or alternatively disable it entirely. You can via the API ScheduledTaskService, the taskid is "241d4fcb19a1d557ee62428e411da609". Link to comment Share on other sites More sharing options...
AdrianW 1053 Posted September 26, 2019 Share Posted September 26, 2019 You can via the API ScheduledTaskService, the taskid is "241d4fcb19a1d557ee62428e411da609". Thanks - I'll give that a go later, when I'm home from work. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now