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) ~[?:?]
Release : All supported Clarity releases
Incorrect Clarity Upgrade Target Install Directory was entered (typo, or not specified an absolute path)
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