Failed to delete the content library item via vSphere web client
search cancel

Failed to delete the content library item via vSphere web client

book

Article ID: 307167

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

Can't delete or update content library item in vSphere webclient, below errors found in vCenter vpxd.log:

Log directory is var/log/vmware/vpxd/vpxd.log.

info vpxd[7FCC2D195700] [Originator@6876 sub=Default opID=DatastoreExplorerMediator-removeOnMultiEntity-59878-ngc:70005236-e8] [VpxLRO] -- ERROR task-22259 -- FileManager -- vim.FileManager.delete: vim.fault.CannotDeleteFile:
--> Result:
--> (vim.fault.CannotDeleteFile) {
-->    faultCause = (vmodl.MethodFault) null,
-->    faultMessage = <unset>,
-->    file = "[DATASTORE] contentlib-<UUID>/<UUID>/vm_name.vmdk"
-->    msg = "Received SOAP response fault from [<cs p:00007fcbb444f130, TCP:Server:443>]: Delete
--> "
--> }
--> Args:
-->
--> Arg datacenter:
--> 'vim.Datacenter:<UUID>:datacenter-21'
--> Arg datastorePath:
--> "[VOL01_VIRTUAL_01] contentlib-<UUID>/<UUID>/vm_name.vmdk"
--> Arg fileType:
--> "VirtualDisk"

You also may see errors similar to the below in the vpxa.log file:

info vpxa[9867B70] [Originator@6876 sub=DiskLib opID=dam-auto-generated: DatastoreFilesViewMediator:dr-663:FilePropertyProvider:201242:8337-59866-ngc:70005235-58-2b] DISKLIB-LINK  : "/vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID>/vm_name-1_<UUID>-flat.vmdk" : failed to open (The file specified is not a virtual disk).

info vpxa[8C39B70] [Originator@6876 sub=Libs opID=DatastoreExplorerMediator-removeOnMultiEntity-59878-ngc:70005236-e8-e5] OBJLIB-FILEBE :FileBEUnlink : Failed to unlink the file '/vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID>/vm_name-1_<UUID>-flat.vmdk' : 1048580

info vpxa[8C39B70] [Originator@6876 sub=DiskLib opID=DatastoreExplorerMediator-removeOnMultiEntity-59878-ngc:70005236-e8-e5] DISKLIB-LIB   : Cannot remove extent `/vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID>/vm_name-1_<UUID>-flat.vmdk': Device or resource busy

error vpxa[8C39B70] [Originator@6876 sub=vpxaMoService opID=DatastoreExplorerMediator-removeOnMultiEntity-59878-ngc:70005236-e8-e5] [DeleteFile] Received exception: N7Vmacore31FileIOPermissionDeniedExceptionE(FileIO error: Permission denied for file  : /vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID>/vm_name-1_<UUID>.vmdk)

verbose vpxa[8D41B70] [Originator@6876 sub=vpxaMoService opID=dam-auto-generated: DatastoreFilesViewMediator:dr-673:FilePropertyProvider:201242:8351-59887-ngc:70005239-a4-b6] SearchDatastore: ds:///vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID> false [N3Vim4Host16DatastoreBrowser10SearchSpecE:0x04061c50]

info vpxa[8D41B70] [Originator@6876 sub=DiskLib opID=dam-auto-generated: DatastoreFilesViewMediator:dr-673:FilePropertyProvider:201242:8351-59887-ngc:70005239-a4-b6] DISKLIB-LINK  : "/vmfs/volumes/<UUID>/contentlib-<UUID>/<UUID>/vm_name-1_<UUID>-flat.vmdk" : failed to open (The file specified is not a virtual disk).

Environment

VMware vCenter Server Appliance 6.7 / 7.x / 8.x

Cause

Possible Database corruption on content library record, or files were incorrectly removed outside of the UI.

 

Resolution

Please contact VMware by Broadcom Support for assistance in resolving this issue.