Clarity - Upgrade Fails with error "Cannot run program" error=2, No such file or directory
search cancel

Clarity - Upgrade Fails with error "Cannot run program" error=2, No such file or directory

book

Article ID: 144281

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Clarity upgrade fails with error message Cannot run program No such file or directory. Because the upgrade is not completed successfully, CSA may show database needs update and versions appear as mismatch, and application would not start.


Error message examples in the install.log:

Example 1:

1/16/20 1:23 PM (Target) Target "upgrade" finished.
1/16/20 1:23 PM (UnknownElement) Task "exec" finished with error.
/app/15app/install.xml:1199: Execute failed: java.io.IOException: Cannot run program "y/bin/admin": error=2, No such file or directory
 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
 at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
 at jdk.internal.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)

 

Example 2:

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

 

Example 3:

5/06/24 6:35 PM (UnknownElement) Task "exec" finished with error.
org.apache.tools.ant.BuildException: Execute failed: java.io.IOException: Cannot run program "x/bin/admin": error=2, No such file or directory
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) ~[ant.jar:?]
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495) ~[ant.jar:?]
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) ~[ant.jar:1.9.4]
    at jdk.internal.reflect.GeneratedMethodAccessor125.invoke(Unknown Source) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

Environment

Release : All supported Clarity releases

Cause

Incorrect Clarity Upgrade Target Install Directory was entered (typo, or not specified an absolute path)

Resolution

  1. Review the install.log to determine what is the value entered for install.target.dir
  2. Restart the upgrade and ensure you enter a correct path for Clarity Upgrade Target Install Directory (should typically match with the current Clarity Install directory)

Example of mistypes: 

Typo 1:

1/16/20 11:45 AM (ReadLine) Type 'y' to proceed : 
1/16/20 11:46 AM (SetupUtil) 
1/16/20 11:46 AM (SetupUtil) Clarity Upgrade Target Install Directory [/app/niku/clarity] : 
1/16/20 11:46 AM (SetupUtil) -----------------------------------------
1/16/20 11:46 AM (SetupUtil) You chose the following:
1/16/20 11:46 AM (SetupUtil) 
1/16/20 11:46 AM (SetupUtil) install.target.dir = y
1/16/20 11:46 AM (SetupUtil) -----------------------------------------
1/16/20 11:46 AM (Mkdir) Created dir: /app/15_app/y
1/16/20 11:46 AM (Project) Trying to override old definition of task java
1/16/20 11:46 AM (Target) Target "_proceed-upgrade" started.

Typo 2:

5/06/24 5:09 PM (SetupUtil) You chose the following:
5/06/24 5:09 PM (SetupUtil) 
5/06/24 5:09 PM (SetupUtil) install.target.dir = x
5/06/24 5:09 PM (SetupUtil) -----------------------------------------
5/06/24 5:09 PM (Mkdir) Created dir: /opt/cappm/CLARITY_PPM_1613/x

Not 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