Before submitting your issue, please verify the following.
Shoko Version
5.1.0
Shoko Version - Daily Commit
No response
Install Type
Linux - Docker Daily
Description
Creating a new issue based on - #1124 (comment)
Copying files while preserving timestamps will result in a crash.
You will first see that a bunch of errors are generated very quickly. I assume due to shoko thinking that because the timestamp is old, the file is ready to be checked.
22:55:12| ImportFolderWatcher: /import/ --- Error in FileSystemWatcher. Attempting recovery: System.UnauthorizedAccessException: Access to the path '/import/[anime mkv filename]` is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
... (repeats a bunch of times)
Eventually this error will show (Everything past this point will not show up in the shoko log, it'll show up in the stdout/stderr for docker logs).
Stack overflow.
at System.Reflection.RuntimeAssembly.<GetCodeBase>g____PInvoke|14_0(System.Runtime.CompilerServices.QCallAssembly, System.Runtime.CompilerServices.StringHandleOnStack)
at System.Reflection.RuntimeAssembly.GetCodeBase()
at System.Reflection.RuntimeAssembly.GetName(Boolean)
at Sentry.Internal.MainSentryEventProcessor.Process(Sentry.SentryEvent)
at Sentry.SentryClient.DoSendEvent(Sentry.SentryEvent, Sentry.SentryHint, Sentry.Scope)
at Sentry.SentryClient.CaptureEvent(Sentry.SentryEvent, Sentry.Scope, Sentry.SentryHint)
at Sentry.Internal.Hub.CaptureEvent(Sentry.SentryEvent, Sentry.Scope, Sentry.SentryHint)
at Sentry.Extensions.Logging.SentryLogger.Log[[Microsoft.Extensions.Logging.FormattedLogValues, Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.FormattedLogValues, System.Exception, System.Func`3<Microsoft.Extensions.Logging.FormattedLogValues,System.Exception,System.String>)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[[Microsoft.Extensions.Logging.FormattedLogValues, Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.ILogger, System.Exception, System.Func`3<Microsoft.Extensions.Logging.FormattedLogValues,System.Exception,System.String>, System.Collections.Generic.List`1<System.Exception> ByRef, Microsoft.Extensions.Logging.FormattedLogValues ByRef)
at Microsoft.Extensions.Logging.Logger.Log[[Microsoft.Extensions.Logging.FormattedLogValues, Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.FormattedLogValues, System.Exception, System.Func`3<Microsoft.Extensions.Logging.FormattedLogValues,System.Exception,System.String>)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, System.Exception, System.String, System.Object[])
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
And then this portion of the error is repeated for the same number of times
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.Start()
at Shoko.Server.Utilities.FileSystemWatcher.RecoveringFileSystemWatcher.WatcherOnError(System.Object, System.IO.ErrorEventArgs)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher.StartRaisingEvents()
Steps to Reproduce
- Copy a bunch of files using
cp -pr [folder] [shoko import folder]
- Server crashes
Log File
No response
Screenshots
No response
Before submitting your issue, please verify the following.
Shoko Version
5.1.0
Shoko Version - Daily Commit
No response
Install Type
Linux - Docker Daily
Description
Creating a new issue based on - #1124 (comment)
Copying files while preserving timestamps will result in a crash.
You will first see that a bunch of errors are generated very quickly. I assume due to shoko thinking that because the timestamp is old, the file is ready to be checked.
Eventually this error will show (Everything past this point will not show up in the shoko log, it'll show up in the stdout/stderr for docker logs).
And then this portion of the error is repeated for the same number of times
Steps to Reproduce
cp -pr [folder] [shoko import folder]Log File
No response
Screenshots
No response