ARTIFACTORY: How to resolve errors like "Unable to delete path 'xxx/' on Metadata Server" during system import

ARTIFACTORY: How to resolve errors like "Unable to delete path 'xxx/' on Metadata Server" during system import

Products
Frog_Artifactory
Content Type
Administration_Platform
AuthorFullName__c
Yunzong Guo
articleNumber
000006694
FirstPublishedDate
2025-11-20T07:57:07Z
lastModifiedDate
2025-11-20
VersionNumber
2
Description:

When Artifactory is installed in a Kubernetes environment, the following error may be encountered in artifactory-service.log during system import, causing the import to fail:
2025-04-05T05:07:32.979Z [jfrt ] [INFO ] [6f57e7354f41693e] [s.MetadataEventServiceImpl:312] [http-nio-8081-exec-9] - Received delete instruction on root for repository 'newbie-maven-releases'. Deleting paths from Metadata Server
2025-04-05T05:07:32.979Z [jfrt ] [ERROR] [6f57e7354f41693e] [s.MetadataEventServiceImpl:321] [http-nio-8081-exec-9] - Unable to delete path 'maven-releases/' on Metadata Server
Root Cause:

This error is usually caused by some directories in the Artifactory PVC persistent volumes having UIDs and GIDs that do not belong to the "artifactory" user and group. You can check if all directories or files under /opt/jfrog/artifactory/var/data/ belong to the "artifactory" user group (1030:1030). In this example, there is a directory named jfrog under /opt/jfrog/artifactory/var/data/ that belongs to the "root" user and group, causing the import failure:

User-added image 

Solution: 

To find this directory or file:
  1. If the directory is indeed required for persistent mounting, change the "root" permissions to "artifactory:artifactory"(1030:1030) during mounting;
  2. If the directory is incorrectly mounted or no longer needed, remove it or move it to the parent directory at the same level as data (e.g., mv jfrog ../)
Then, re-import again, and it will be successful.