keith2045 7 Posted July 12, 2018 Posted July 12, 2018 The auto organize feature on my emby server stopped working. I get an internal error message. I noticed that sometimes the fie gets moved but both the destination and source are corrupt (0 file size). I've attached the logs Log.txt
Luke 42077 Posted July 12, 2018 Posted July 12, 2018 Hi, it didn't stop working, rather it was denied write access to your folders. 2018-07-11 20:30:10.445 Error App: Failed to move file from /mnt/NFS/Recordings/watchdir/Modern Family - S03E15 - .ts.mkv to /mnt/NFS/TVShows/Modern Family (2009)/Season 3/Modern Family - 3x15 - Aunt Mommy.mkv: Access to the path is denied. *** Error Report *** Version: 3.4.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.9.0.6 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 8 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted --- End of inner exception stack trace ---
keith2045 7 Posted July 12, 2018 Author Posted July 12, 2018 (edited) Does the server use a different set of credentials for this? The underlying OS has write access to both directories, i verified by SSH'ing into the server. I also changed to the "emby" user who is the user running the emby server and it has write access. I'll keep digging around but i want to say it stopped when i upgraded to 3.4.1 Edited July 12, 2018 by keith2045
Luke 42077 Posted July 12, 2018 Posted July 12, 2018 Yea everything happens under the emby system user.
keith2045 7 Posted July 14, 2018 Author Posted July 14, 2018 So i've been doing some testing: 1) The file does not already exist in the destination directory. It will copy the file over successfully but sometimes fail to delete. Example Last Man Standing S04E01. Now that i think about it i wonder if it failed to delete because it was still being encoded, which is possible. 2) File already exists in the destination directory. It will copy the file over but fail to delete it. I know it copies over as i see the file size change to 0 and once complete the file and date/time match. An example in the attached log is Modern Family - S03E20. In the log it shows the same error, but i can delete the files manually using the emby user. I'll do some more tests Log.txt
Luke 42077 Posted July 14, 2018 Posted July 14, 2018 Unfortunately i don't really have an answer for you. The plugin uses a file system api to perform these operations and that api is coming back with access denied on the target path. To me that doesn't look like something that can be resolved in the plugin but rather within your personal environment. Just in case I am wrong, I would like to point out that the auto organize plugin is a community addition, and contributions are welcome. The source code can be found here: https://github.com/MediaBrowser/Emby.AutoOrganize Thanks !
keith2045 7 Posted July 14, 2018 Author Posted July 14, 2018 No i understand. Just reading the error message it does sound like something in my environment, its just weird that i cant seem to reproduce it outside of the application. I'll look over the code. thanks again
InTheAir 0 Posted September 25, 2018 Posted September 25, 2018 keith2045, did you ever resolve this? I'm in the similar situation, I get this message: Failed to move file from /media/TV_Inbox/The Big Bang Theory.S12E01.The Conjugal Configuration.mp4 to /media/tv/Big Bang Theory/Season 12/The Big Bang Theory.S12E01.The Conjugal Configuration.mp4: Access to the path is denied. Copying the file to the destination is successful but the source file is not deleted and the source and destination folders have the same rights. I've even switched Emby Server to run as root and it still errors. Thanks.
Luke 42077 Posted September 25, 2018 Posted September 25, 2018 While we are here I would like to point out that the auto organize plugin is a community addition, and contributions are welcome. The source code can be found here: https://github.com/MediaBrowser/Emby.AutoOrganize Thanks !
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