cancel
Showing results for 
Search instead for 
Did you mean: 

Installation error: Execution of the command finished with return code 2

j_bayrhammer
Participant
0 Kudos

Hello,

after solving the first error, there is now a second one.

System is in Task Process at step "Install common system files".

At this point an error message appears:

An error occurred while processing option SAP NetWeaver 7.4 Support Release 2 > Oracle > SAP Systems > Application Server ABAP > Standard System > Standard System( Last error reported by the step: Execution of the command "/usr/bin/ksh -c ". /home/sidadm/.profile; env"" finished with return code 2. Output: [YOU HAVE NEW MAIL] Not a terminal /usr/bin/ksh: syntax error at line 103 : `=~' unexpected).

If I execute the command "/usr/bin/ksh -c ". /home/sidadm/.profile; env" as root at command line, there is no error - environment of user sidadm is shown.

Error message in sapinst.log is:

ERROR 2015-07-06 11:15:51.737 (root/sapinst) id=controller.stepExecuted errno=FCO-00011

The step createSystemDirectories with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|onehost|0|NW_System|ind|ind|ind|ind|system|0|createSystemDirectories was executed with status ERROR ( Last error reported by the step: Execution of the command "/usr/bin/ksh -c ". /home/sidadm/.profile; env"" finished with return code 2. Output:

[YOU HAVE NEW MAIL]

Not a terminal

/usr/bin/ksh: syntax error at line 103 : `=~' unexpected).

Which file is used for the "syntax error at line 103"?

Regards,

Julia

Accepted Solutions (1)

Accepted Solutions (1)

divyanshu_srivastava3
Active Contributor

rename the .profile and re-execute this step.

Also ask your UNIX system administrator to check the shell environment for sidadm

Regards,

j_bayrhammer
Participant
0 Kudos

Hello Divyanshu,

thank your for your fast help - that was it!

Do you know how where this error comes from?

Regards,

Julia

divyanshu_srivastava3
Active Contributor
0 Kudos

That is what I can see and understand from logs and suggested.

Regards,

j_bayrhammer
Participant
0 Kudos

Hello Divyanshu,

the problem is in the files shipped by SAP .dbenv.hostname.sh.

Here are used "=~" as bash regex match operators, which can't be interpreted by ksh.

With your solution to rename the profiles the environment for the sidadm and orasid is not correct.

So a better workaround would be to use bash for sidadm and orasid. But this is not a final solution.

Regards,

Julia

divyanshu_srivastava3
Active Contributor
0 Kudos

Nice to hear a better work around.

I asked you to check current shell with UNIX team.

Regards,

j_bayrhammer
Participant
0 Kudos

Hello,

final solution was delivered by SAP.

.dbenv*.sh Files in SWPM10SP08_3-20009697.SAR are buggy. The problem are the calls


#  if [[ $ORACLE_HOME =~ "121" ]]; then

#  elif [[ $ORACLE_HOME =~ "112" ]]; then

These were changed to


  str1=121

  str2=112

  if [ "${ORACLE_HOME#*$str1}" != "$ORACLE_HOME" ]; then

  elif [ "${ORACLE_HOME#*$str2}" != "$ORACLE_HOME" ]; then

With next SWPM Patch this problem is solved.

Regards

Julia

Answers (0)