IBM Support

How to manually delete corrupted Project Metadata

Question & Answer


Question

While we were importing the project from external Git repository, connection timeout occurred. Then, when we tried to reimport it, we got following error:
 
Project: XXXXXX already exists in your space. Please Remove Project before importing.
We can't find that project under DSX/WSL project list due to the project is not correctly imported yet. With this condition, we can't delete the project nor reimport it.

Cause

Since the corrupted metadata files and directory for that project exist in DSX/WSL file system, we cannot reimport it.

Answer

To solve this problem, delete the existing corrupted metadata file and directory for this project with following steps, and then reimport it.
1. # kubectl get pod --all-namespaces|grep dsx-core
(Get the pod name for dsx-core pod)

2. # kubectl exec -it <dsx-core-pod name> -n dsx /bin/sh
(Execute and log in to the dsx-core container. You will get the # prompt as soon after login to that container)

3. In the dsx-core container, check the directories under
  • /user-home/<uid>/DSX_Projects/
  • /user-home/_global_/libraryProjects/
  • /user-home/mstrRepos/
  • /user-home/mstrRepos/.DSX_META/
4. Find the directories that associate with the corrupted project.
(You can delete or move the incomplete or corrupted project directories created under those directories)

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"Component":"Projects","Platform":[{"code":"PF016","label":"Linux"}],"Version":"DSX 1.2.0.3;WSL 1.2.2;WSL 1.2.3","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 July 2023

UID

ibm10796210