Jump to content

Cannot delete media stored on SMB share


Tawmu

Recommended Posts

Hi,

When I try to delete media stored on an SMB share I get the following error in the UI:

Quote

There was an error deleting the item from Emby Server. Please check that Emby Server has write access to the media folder and try again.

Accompanied by this error in the log:

	SharpCifs.Smb.SmbException: SharpCifs.Smb.SmbException: smb://10.0.0.6/Media/Movies/Midsommar directory must end with '/'
	   at SharpCifs.Smb.SmbFile.DoFindFirstNext(List`1 list, Boolean files, String wildcard, Int32 searchAttributes, ISmbFilenameFilter fnf, ISmbFileFilter ff)
	   at SharpCifs.Smb.SmbFile.DoEnum(List`1 list, Boolean files, String wildcard, Int32 searchAttributes, ISmbFilenameFilter fnf, ISmbFileFilter ff)
	   at SharpCifs.Smb.SmbFile.ListFiles(String wildcard, Int32 searchAttributes, ISmbFilenameFilter fnf, ISmbFileFilter ff)
	   at SharpCifs.Smb.SmbFile.Delete(String fileName)
	   at SharpCifs.Smb.SmbFile.Delete()
	   at Emby.Server.Implementations.IO.SharpCifsFileSystem.DeleteDirectory(String path, Boolean recursive)
	   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 MediaBrowser.Api.Library.LibraryService.Delete(DeleteItems request)
	   at MediaBrowser.Api.Library.LibraryService.Delete(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: Emby.Server.Implementations
	TargetSite: Void DoFindFirstNext(System.Collections.Generic.List`1[System.Object], Boolean, System.String, Int32, SharpCifs.Smb.ISmbFilenameFilter, SharpCifs.Smb.ISmbFileFilter)

I am running Emby Server 4.6.0.10 in Docker on Linux using the emby/embyserver:4.6.0.10 image.

Edited by Tawmu
Link to comment
Share on other sites

  • 4 weeks later...

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