After upgrade, CSA shows database needs update and versions appear as mismatch, error message "Cannot run program "y/bin/admin"" in install.log

book

Article ID: 144281

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

After upgrade, CSA starts but application server will not start.

If we look in CSA, it's showing that the database needs update and versions appear as mismatch. 

Error message in the install.log:

1/16/20 1:23 PM (Target) Target "upgrade" finished.
1/16/20 1:23 PM (UnknownElement) Task "exec" finished with error.
/app/157_app/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)

Environment

Release : All supported Clarity releases

Component : CA PPM INTEGRATIONS & INSTALLATIONS

Resolution

From the error message:

/app/157_app/install.xml:1199: Execute failed: java.io.IOException: Cannot run program "y/bin/admin": error=2, No such file or directory

As you can see it was looking for y/bin/admin, so this is most likely that you entered this y previously when prompted for install.target.dir

 

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/157_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.

 

You see it looks like it just created a local 'y' folder to install in.

 

We would recommend to rollback both files and database. Once done, start again and make sure you leave the Upgrade Target directory to be the same as the Install directory (probably /app/niku/clarity)