Error on upgrade Cannot run program " /apps/niku/clarity/bin/admin": error=2, No such file or directory

book

Article ID: 197565

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

After upgrade we had a build failed. We reviewed the install log and see that at the end of the upgrade, it failed on restoring the files back:

 

8/13/20 3:32 AM (Echo) Restoring customer specified files after upgrade to install.dir =  /apps/niku/niku6

8/13/20 3:32 AM (Target) Target "upgrade" finished.

8/13/20 3:32 AM (UnknownElement) Task "exec" finished with error.

/apps/niku/downloads/clarity_ppm_install_media_15_8_1/install.xml:1199: Execute failed: java.io.IOException: Cannot run program " /apps/niku/clarity/bin/admin": error=2, No such file or directory

 

Environment

Release : All Supported Clarity releases

Component : CA PPM INTEGRATIONS & INSTALLATIONS

Resolution

This error usually happens because the admin command is not there (the file is not there).

The directory was not correctly set (probably a blank space before the directory or not specified an absolute path):

8/12/20 9:50 PM (SetupUtil) install.target.dir = /apps/niku/clarity

8/12/20 9:50 PM (SetupUtil) -----------------------------------------

8/12/20 9:50 PM (Mkdir) Created dir: /apps/niku/downloads/clarity_ppm_install_media_15_8_1/ /apps/niku/clarity

See how it added the install directory after and it installed it there.

To fix this you have to rollback to prior version and start the upgrade again, make sure when prompted that the install directory is set correctly to absolute path.

If you still see it like this in early logs:
clarity_ppm_install_media_15_8_1/ /apps/niku/clarity

then please abort the script and raise a case with Broadcom Support