Concurrent installation of UCX in multiple workspaces

unity_Catalog
New Contributor III

I am trying to install UCX in multiple workspaces concurrently through bash script but facing issue continuously. I have created separate directories for each workspace. I'm facing the below error everytime.

Installing UCX in Workspace1
Error: lib: cleanup: remove all: remove C:\Users\offerings_admin\.databricks\labs\ucx\lib: The process cannot access the file because it is being used by another process.
Installing UCX in Workspace2
Error: lib: cleanup: remove all: remove C:\Users\offerings_admin\.databricks\labs\ucx\lib: The process cannot access the file because it is being used by another process.








Brahmareddy
Esteemed Contributor II

Hi @unity_Catalog, How are you dong today?

Try running the UCX installations sequentially to avoid file access conflicts, adding a small delay between each. Ensure each workspace uses a separate installation directory to prevent overlap. You could also implement a file locking mechanism in your script to ensure one installation runs at a time. Lastly, check that there are no lingering processes or files from previous installations before starting a new one.

Give a try and let know if it works.

Regards,

Brahma