AsheAshe 4 Posted November 24, 2022 Share Posted November 24, 2022 Am trying to delete files from my QNAP isntance of Emby, accessed via an nvidia shield. I used to be able to do this no problem, but recently I have been getting an error "volley error com.android.volley.ServerError" I've enclosed my log file below with relevant part 2022-11-24 20:27:44.499 Info Server: http/1.1 DELETE http://host1:8096/emby/Items/8747. UserAgent: Dalvik/2.1.0 (Linux; U; Android 11; SHIELD Android TV Build/RQ1A.210105.003) 2022-11-24 20:27:44.503 Info App: Removing item from database, Type: Movie, Name: Fast & Furious, Path: /data/movies/Fast & Furious - (2009)/Fast & Furious - (2009).mkv, Id: 8747 2022-11-24 20:27:44.503 Info App: Deleting directory /data/movies/Fast & Furious - (2009) 2022-11-24 20:27:44.505 Error Server: Error processing request *** Error Report *** Version: 4.7.6.0 Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3 Operating system: Linux version 5.10.60-qnap (root@U16BuildServer118) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld Framework: .NET 6.0.2 OS/Process: x64/x64 Runtime: app/emby/System.Private.CoreLib.dll Processor count: 3 Data path: /config Application path: /app/emby System.IO.IOException: System.IO.IOException: Directory not empty : '/data/movies/Fast & Furious - (2009)' at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at Emby.Api.Library.LibraryService.Any(DeleteItems request) at Emby.Api.Library.LibraryService.Any(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) 2022-11-24 20:27:44.506 Info Server: http/1.1 Response 500 to host2. Time: 7ms. http://host1:8096/emby/Items/8747 2022-11-24 20:27:52.075 Info Server: http/1.1 DELETE http://host1:8096/emby/Items/8776. UserAgent: Dalvik/2.1.0 (Linux; U; Android 11; SHIELD Android TV Build/RQ1A.210105.003) 2022-11-24 20:27:52.076 Info App: Removing item from database, Type: Movie, Name: The Fast and the Furious, Path: /data/movies/The Fast and the Furious - (2001)/The Fast and the Furious - (2001).mkv, Id: 8776 2022-11-24 20:27:52.076 Info App: Deleting directory /data/movies/The Fast and the Furious - (2001) 2022-11-24 20:27:52.078 Error Server: Error processing request *** Error Report *** Version: 4.7.6.0 Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3 Operating system: Linux version 5.10.60-qnap (root@U16BuildServer118) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld Framework: .NET 6.0.2 OS/Process: x64/x64 Runtime: app/emby/System.Private.CoreLib.dll Processor count: 3 Data path: /config Application path: /app/emby System.IO.IOException: System.IO.IOException: Directory not empty : '/data/movies/The Fast and the Furious - (2001)' at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at Emby.Api.Library.LibraryService.Any(DeleteItems request) at Emby.Api.Library.LibraryService.Any(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) 2022-11-24 20:27:52.078 Info Server: http/1.1 Response 500 to host2. Time: 2ms. http://host1:8096/emby/Items/8776 Link to comment Share on other sites More sharing options...
Luke 37046 Posted November 25, 2022 Share Posted November 25, 2022 HI, are you able to update to Emby Server 4.7.10? Are you still having this issue with that? Link to comment Share on other sites More sharing options...
AsheAshe 4 Posted November 25, 2022 Author Share Posted November 25, 2022 6 hours ago, Luke said: HI, are you able to update to Emby Server 4.7.10? Are you still having this issue with that? Hi, yes I tried last night disabling addons that I wasn't using and restarting emby to update to most recent version but still received the error Link to comment Share on other sites More sharing options...
AsheAshe 4 Posted November 26, 2022 Author Share Posted November 26, 2022 On 25/11/2022 at 01:42, Luke said: HI, are you able to update to Emby Server 4.7.10? Are you still having this issue with that? Hi Luke, I have tried it with the web interface and receive another error around making sure the emby server has access to the folder. The Emby server error log states below: 2022-11-26 12:03:02.128 Info App: Deleting directory /data/movies/Fast & Furious - (2009) *** Error Report *** Version: 4.7.10.0 Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3 Operating system: Linux version 5.10.60-qnap (root@U16BuildServer118) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld Framework: .NET 6.0.8 OS/Process: x64/x64 Runtime: app/emby/System.Private.CoreLib.dll Processor count: 3 Data path: /config Application path: /app/emby System.IO.IOException: System.IO.IOException: Directory not empty : '/data/movies/Fast & Furious - (2009)' at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at System.IO.Directory.Delete(String path, Boolean recursive) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectoryInternal(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at Emby.Api.Library.LibraryService.Any(DeleteItems request) at Emby.Api.Library.LibraryService.Any(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) I've logged into Putty and done sudo chown -R 1001:1000 /share/medialibrary & sudo chmod -R a=,a+rX,u+w,g+w /share/medialibrary In Portainer Emby has access to /share/medialibrary/datastore/media/movies & /share/medialibrary/datastore/media/tv which are aliased /data/movies & /data/tv respectively Is there anything else I would need to do in order to resolve it? Link to comment Share on other sites More sharing options...
Solution AsheAshe 4 Posted November 26, 2022 Author Solution Share Posted November 26, 2022 Resolved - looks like the pguid was set up wrong, amended and now works as before 1 Link to comment Share on other sites More sharing options...
Luke 37046 Posted November 26, 2022 Share Posted November 26, 2022 Thanks for following up. 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