Jump to content

AutoOrganize failed to sort... new problem (for me)


Recommended Posts

SwanStream
Posted (edited)

Hey all, New problem for me (meaning it worked fine for a long time, then after recent update...)

I'm getting this error in auto sort

 

Failed to move file from /volume1/Sort/Sort_TV/Wentworth.S04E09.1080p.mkv to /volume1/tv_1/Wentworth/Season 4/Wentworth - S04E09.mkv: Access to the path is denied.

 

Problem is it IS doing the 'copy' part of the move, just not getting the verification (guessing) so not doing the delete and throwing the error.

 

The associated bit from log:

    *** Error Report ***

    Version: 4.1.0.26
    Command line: /volume1/@appstore/EmbyServer/releases/4.1.0.26/EmbyServer.dll -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121
    Operating system: Unix 3.10.105.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/netcore/2.2.1/runtime/System.Private.CoreLib.dll
    Processor count: 4
    Program data path: /var/packages/EmbyServer/target/var
    Application directory: /volume1/@appstore/EmbyServer/releases/4.1.0.26
    System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
     --- End of inner exception stack trace ---
     at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
     at Interop.CheckIo(Int64 result, String path, Boolean isDirectory, Func`2 errorRewriter)
     at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
     at Emby.AutoOrganize.Core.EpisodeFileOrganizer.PerformFileSorting(TvFileOrganizationOptions options, FileOrganizationResult result)
    Source: System.IO.FileSystem
    TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[interop+ErrorInfo,Interop+ErrorInfo])
    InnerException: System.IO.IOException: Operation not permitted
    Source:
    TargetSite: 

Edited by bikesquid
Posted

Hi, what version of the auto-organize plugin.

SwanStream
Posted

From "my plugins" page looks to be 1.3.8.0.

SwanStream
Posted

@@Luke - In case it's relevant...

Just found that after the last firmware update of my switch the LACP setup was buggered.... so Synology's bonded LAN ports were likely spasming.... If this feels like a likely contributor to the problem above, I can just report back if the problem persists. If it's not likely related, let me know if you need anything else to track it down.

Cheers.

SwanStream
Posted

@@Luke - Nope, that didn't help... I did have to do a restart today due to a notice that AutoOrganize was updated, now on 1.3.9 and getting the same error. The file does in fact copy to the proper location with the proper name, etc. But obviously isn't getting deleted from source location.

From auto organize page:

Failed to move file from /volume1/Sort/Sort_TV/Wentworth.S04E12.mkv to /volume1/tv_1/Wentworth/Season 4/Wentworth - S04E12.mkv: Access to the path is denied.

 

and the log:

2019-04-23 12:55:17.860 Error App: Failed to move file from /volume1/Sort/Sort_TV/Wentworth.S04E12.mkv to /volume1/tv_1/Wentworth/Season 4/Wentworth - S04E12.mkv: Access to the path is denied.

    *** Error Report ***
    Version: 4.1.0.26
    Command line: /volume1/@appstore/EmbyServer/releases/4.1.0.26/EmbyServer.dll -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121
    Operating system: Unix 3.10.105.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/netcore/2.2.1/runtime/System.Private.CoreLib.dll
    Processor count: 4
    Program data path: /var/packages/EmbyServer/target/var
    Application directory: /volume1/@appstore/EmbyServer/releases/4.1.0.26
    System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
     --- End of inner exception stack trace ---
     at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
     at Interop.CheckIo(Int64 result, String path, Boolean isDirectory, Func`2 errorRewriter)
     at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
     at Emby.AutoOrganize.Core.EpisodeFileOrganizer.PerformFileSorting(TvFileOrganizationOptions options, FileOrganizationResult result)
    Source: System.IO.FileSystem
    TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[interop+ErrorInfo,Interop+ErrorInfo])
    InnerException: System.IO.IOException: Operation not permitted
    Source:
    TargetSite: 

Posted

Ok, unfortunately I don't know the answer to this, sorry. What's happening is the error is being thrown by the .net core runtime. The transfer may not have failed, but for some reason it thinks it did and it is erroneously raising an error. I'll try to look through issue reports to see if I can find anything similar to this. Thanks.

SwanStream
Posted

Thanks dude. appreciate getting info back even if it's not clear what the fix is. To be clear it's not every file, it's not most files, it's now and then... and MAYBE tied to the NAS being busy with other activities, so maybe a time out rather than access denied? just a thought. Let me know if there's something I can help with from this end to track it down. Cheers.

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