Zelgadis 1 Posted October 17, 2015 Share Posted October 17, 2015 Hello guys, I'm trying to delete an episode from the file system using the Emby web front-end. When I click on the Delete menu item and then confirm the action, I'm redirected to the Home page, the show still being present both in the library and on the file system. Examining the logs, I got: 2015-10-17 20:23:26.1378 Info - HttpServer: HTTP DELETE http://localhost:8096/emby/Items/71355095b1478b28d33d7549258d8895 Ip: 127.0.0.1:59543. Headers: Host=localhost:8096,Connection=keep-alive,Accept=*/*,X-MediaBrowser-Token=cba9f24f8fa94721a5a2910b877c3495,User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36,X-Emby-Authorization=MediaBrowser Client="Emby Web Client", Device="Chrome 46.0.2490.71", DeviceId="92f7059c95ead6fd658cb3634f32b673a9462d07", Version="3.0.5768.1", UserId="e073981e1e524826a16329152f7914ee",Origin=http://localhost:8096,Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8,it;q=0.6 2015-10-17 20:23:26.2068 Error - DtoUtils: ServiceBase<TRequest>::Service Exception *** Error Report *** Version: 3.0.5768.1 Command line: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: D:\Users\ZeL\AppData\Roaming\Emby-Server Application Path: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Accesso al percorso 'E:\Media\Shows\Transparent\Season 1\Transparent - 1x01 - Pilot.mp4' negato. System.UnauthorizedAccessException in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) in System.IO.File.InternalDelete(String path, Boolean checkHost) in System.IO.File.Delete(String path) in CommonIO.ManagedFileSystem.DeleteFile(String path) in MediaBrowser.Server.Implementations.Library.LibraryManager.<DeleteItem>d__1a.MoveNext() 2015-10-17 20:23:26.2228 Error - HttpServer: Error processing request for /emby/Items/71355095b1478b28d33d7549258d8895 *** Error Report *** Version: 3.0.5768.1 Command line: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: D:\Users\ZeL\AppData\Roaming\Emby-Server Application Path: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Accesso al percorso 'E:\Media\Shows\Transparent\Season 1\Transparent - 1x01 - Pilot.mp4' negato. ServiceStack.HttpError No Stack Trace Available 2015-10-17 20:23:26.2568 Info - HttpServer: HTTP Response 500 to 127.0.0.1. Response time: 119.0066 ms. Url: http://localhost:8096/emby/Items/71355095b1478b28d33d7549258d8895 It seems like Emby cannot delete the file due to an Access Denied exception ('Accesso negato' in italian). However, Emby server is running directly as my user (not as a service) which is an administrator of this computer. I have tried running Emby directly as Administrator, but even that does not change the result. File permissions should be fine, here are the current authorizations on this particular folder (unfortunately in Italian): (Special Authorizations is the only not consented authorization in both cases) Deleting the file manually from Windows Explorer works without any problem, as expected. This is on Windows 10 64bit. I have tried to delete multiple episodes, even whole seasons, but I can't seem to make it work. What could I try next? Any help would be appreciated. Thanks. Link to comment Share on other sites More sharing options...
Luke 37084 Posted October 17, 2015 Share Posted October 17, 2015 are you running the server from the tray icon or from the windows service? if using the service you will need to double check the account is running under. unfortunately the answer of why emby doesn't have delete access isn't something we can answer for you, but we can provide pointers based on what we've seen as the most common cause. For the windows service, the service account has been the most common cause of that. Link to comment Share on other sites More sharing options...
Zelgadis 1 Posted October 17, 2015 Author Share Posted October 17, 2015 I used to run Emby as a service, I even set my account has the account to be run as, but since I thought that could be the cause of this particular issue, I'm now running Emby directly (with the tray icon present in the task bar). I know unauthorized exceptions are the hardest to get help with, so I have tried anything I could image to solve it on my own, but unfortunately I got no luck. Could the problem reside in the spaces in the path? Or maybe the path separator? Or the fact that the file is actually an hard link? Thanks anyway for trying to help! Link to comment Share on other sites More sharing options...
Luke 37084 Posted October 17, 2015 Share Posted October 17, 2015 you mean a normal sym link? it should be fine but you never know. you could try setting up a test library on your c: drive and seeing as a baseline if you're able to delete from that. Link to comment Share on other sites More sharing options...
Zelgadis 1 Posted October 17, 2015 Author Share Posted October 17, 2015 (edited) Okay, I have tried what you said. This time, I'm using another file (which this time is not an hard link and does not contain any spaces) in C:\Test\Defiance\1x02.mp4. As before, it plays perfectly fine and even downloading it works. Deleting it however is still a no go: 2015-10-17 21:18:28.8913 Info - HttpServer: HTTP DELETE http://localhost:8096/emby/Items/b2d8adfb92f8e71c85700d3fe490f63d Ip: 127.0.0.1:62003. Headers: Host=localhost:8096,Connection=keep-alive,Accept=*/*,X-MediaBrowser-Token=cba9f24f8fa94721a5a2910b877c3495,User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36,X-Emby-Authorization=MediaBrowser Client="Emby Web Client", Device="Chrome 46.0.2490.71", DeviceId="92f7059c95ead6fd658cb3634f32b673a9462d07", Version="3.0.5768.1", UserId="e073981e1e524826a16329152f7914ee",Origin=http://localhost:8096,Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8,it;q=0.6 2015-10-17 21:18:28.8913 Error - DtoUtils: ServiceBase<TRequest>::Service Exception *** Error Report *** Version: 3.0.5768.1 Command line: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: D:\Users\ZeL\AppData\Roaming\Emby-Server Application Path: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Accesso al percorso 'C:\Test\Defiance\1x02.mp4' negato. System.UnauthorizedAccessException in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) in System.IO.File.InternalDelete(String path, Boolean checkHost) in System.IO.File.Delete(String path) in CommonIO.ManagedFileSystem.DeleteFile(String path) in MediaBrowser.Server.Implementations.Library.LibraryManager.<DeleteItem>d__1a.MoveNext() 2015-10-17 21:18:28.8913 Error - HttpServer: Error processing request for /emby/Items/b2d8adfb92f8e71c85700d3fe490f63d *** Error Report *** Version: 3.0.5768.1 Command line: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: D:\Users\ZeL\AppData\Roaming\Emby-Server Application Path: D:\Users\ZeL\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Accesso al percorso 'C:\Test\Defiance\1x02.mp4' negato. ServiceStack.HttpError No Stack Trace Available 2015-10-17 21:18:28.8943 Info - HttpServer: HTTP Response 500 to 127.0.0.1. Response time: 3.0003 ms. Url: http://localhost:8096/emby/Items/b2d8adfb92f8e71c85700d3fe490f63d I can confirm the process is running with my user and not as a service: The authorizations are a little different, there is no authorization for 'Everyone', but Administrators still do have full control over the file and Windows Explorer still has no problem deleting it. I think at this point I have exhausted every possibility and I might have to give up on it. If you have any mean of debugging the issue please let me know. Thanks anyway! Edited October 17, 2015 by Zelgadis Link to comment Share on other sites More sharing options...
Solution Zelgadis 1 Posted October 18, 2015 Author Solution Share Posted October 18, 2015 (edited) Okay, I tried to delete the same file using DOS and the Access denied error came up. Emby has nothing to do with it, sorry for wasting your time. Now to understand why Windows Explorer is able to delete the file without any error is another story.. You can close the issue. Thanks and sorry again. Edited October 18, 2015 by Zelgadis 1 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