Failed to delete xxx on target : (null)

  1. WebDav → local disk
  2. When I delete the whole folder with files in it on cloud, then CloudSync will get this error during sync: [ERROR ] [ 3] [CLOUDSYNC ] Failed to delete />xxx on target : (null)(retry left : 3)

Dear liuhuanian7,

Thank you for reaching out. The error message “Failed to delete xxx on target: (null)” indicates an issue during the synchronization process where CloudSync failed to delete a file or folder on either the WebDAV or the local disk.

This error commonly occurs due to the following reasons:

  1. Permission issues: The file or folder may not have the necessary deletion permissions on either WebDAV or the local disk.
  2. Path issues: The target path may be incorrect, or the file/folder may have already been deleted, causing the synchronization to fail.
  3. Storage configuration issues: Delayed responses or connectivity problems with the WebDAV server.

To identify the exact cause of the issue (whether it’s on WebDAV or the local disk), we kindly request you to share the CloudSync log files with us. These logs will help us determine the root cause and provide you with the necessary steps to resolve the issue.

We appreciate your cooperation and look forward to assisting you further.

Best regards.

Thanks tsjeong,

Here is the log file.
cloudsync.log (30.0 KB)

The error only happens when I delete a folder with files in it.
When I delete a empty folder it works well.
When I delete a file it also works well.

CloudSync already has full disk access in Mac System Setting.

I enable the ‘Remove files from destnation storage when they are remove from source storage’ in ADVANCED OPTION.

Dear liuhuanian7,

Thank you for sharing the log files and providing additional details. Based on the information and logs, it appears that the issue might be related to macOS local disk permissions.

While CloudSync has full disk access in your macOS System Settings, macOS security policies can sometimes interfere with operations like deleting non-empty folders.

Suggested Steps to Resolve the Issue

  1. Check Local Disk Permissions:
  • Ensure the destination folder on your local disk has full read/write/delete permissions.
  • Steps to check and adjust permissions:
    1. Right-click on the folder in Finder.
    2. Select “Get Info”.
    3. Scroll down to “Sharing & Permissions”.
    4. Set the access level to “Read & Write” for all users.

If the issue continues after these steps, please let us know. We are committed to resolving this matter promptly and can provide further assistance if necessary.

Best regards.

It doesn’t work, I have set the access level of the WebDav root folder to “Read & Write” for all users, but still sync failed, and got the same error : Failed to delete /No empty on target : (null)(retry left : 1)

Dear liuhuanian7,

Thank you for your feedback. Based on the issue you described, it seems that the problem might be related to file system permissions on MacOS. Specifically, CloudSync may not have the required permissions to perform file operations on your local disk. Please try the following steps to resolve the issue:

  1. Grant Full Disk Access to CloudSync:
  • Open System Preferences on your Mac.
  • Go to Security & Privacy > Privacy.
  • Scroll down to Full Disk Access in the left-hand menu.
  • Click the lock icon in the bottom-left corner to make changes (you will need to enter your Mac administrator password).
  • Click the + button and add the CloudSync application to the list.
  • Restart CloudSync and try syncing again.
  1. Verify Folder Permissions:
  • Right-click on the folder you are syncing and select Get Info.
  • Check the Sharing & Permissions section at the bottom of the window.
  • Ensure that your Mac user account has “Read & Write” permissions for the folder and all its contents.
  • If necessary, click the lock icon and modify the permissions.
  1. Reset Disk Permissions:
  • Open the Terminal application.
  • Run the following command to reset permissions for your home directory:
diskutil resetUserPermissions / `id -u`
  • Restart your Mac and try syncing again.

If the issue persists after performing these steps, please let us know. Providing updated logs and any additional details about your setup would help us analyze the issue further.

Best regards.

Thanks tsjeong

When I run this commond I got an error

diskutil resetUserPermissions /Volumes/G-DRIVE/ `id -u`

Error encountered attempting to reset permissions for user 501 home directory on disk5s1 (G-DRIVE): Permissions are not enabled on the disk (-69861)

What should I do?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.