cancel
Showing results for 
Search instead for 
Did you mean: 

Error Installation at phase 3 - Install common system files

Former Member
0 Kudos

Hi,

I read alot of topics about the same error.

I followed all of them but the error persist.

Please somybody give some ideas how to solve this problem.

I am try to install PI NW701 with oracle using CentOS 5.4 X64.

I read SAP Note 1048303 - Red Hat Enterprise Linux 5.x:Installation and upgrade and followed all steps.

But the installation always stops in phase 3 - Install common system files .

If i try to install just Central Service ABAP the same problem appears.

Sapinst.log :

ERROR 2010-12-07 11:23:50.153

MUT-03010 Execution of the command "/tmp/sapinst_instdir/NW701/PI/ORA/CENTRAL/installsapinit.sh" finished with status TST_ERROR.

Sapinstdev.log :

ERROR 2010-12-07 11:23:50.346 [sixxcstepexecute.cpp:950]

FCO-00011 The step installSAPInit with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_System|ind|ind|ind|ind|6|0|installSAPInit was executed with status ERROR ( Last error reported by the step :Execution of the command "/tmp/sapinst_instdir/NW701/PI/ORA/CENTRAL/installsapinit.sh" finished with status TST_ERROR.).

InstallSapint.log:

Error in execvpS(/tmp/sapinst_instdir/NW701/PI/ORA/CENTRAL/installsapinit.sh errno: 2, error text: No such file or directory

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

Redhat/CentOS have a daemon, that cleans up /tmp from time to time. If your import was running longer your /tmp may have been cleaned up already.

I'd always use a dedicated installation directory rather than /tmp.

Markus

Former Member
0 Kudos

How can i set a dedicated installation directory rather than /tmp ???

markus_doehr2
Active Contributor
0 Kudos

> How can i set a dedicated installation directory rather than /tmp ???

I always do a

mkdir /install
cd /install
/<PATH-TO-SAPINST>/sapinst

now all files will be put under /install and will be kept there.

Markus

Former Member
0 Kudos

You can set the environment variables TMP or TEMP before you start sapinst to specify the directory where you want to save the sapinst logs to.

I also suggest you set the permissions to that directory path via chmod -R 777 <sapinst-path>.

Kind regards,

Former Member
0 Kudos

I did just like you guys said but the problem persist :

Error in execvpS(/install/installsapinit.sh errno: 2, error text: No such file or directory

INFO 2010-12-07 13:56:04.249 [syuxcpath.cpp:351]

CSyPath::createFile()

Creating file /install/sapinst_syslib_priv.log.

ERROR 2010-12-07 13:56:04.545

FCO-00011 The step installSAPInit with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_System|ind|ind|ind|ind|6|0|installSAPInit was executed with status ERROR .

2010-12-07, 13:56:04

Error in execvpS(/install/installsapinit.sh errno: 2, error text: No such file or directory

See the file permission :

[IMG]http://i54.photobucket.com/albums/g117/dudamota/Screenshot-1.png[/IMG]

markus_doehr2
Active Contributor
0 Kudos

> Error in execvpS(/install/installsapinit.sh errno: 2, error text: No such file or directory

Interesting...

> See the file permission :

>

> [IMG]http://i54.photobucket.com/albums/g117/dudamota/Screenshot-1.png[/IMG]

Why not use a simple "ls -lisa" to see the permissions

Can you execute /install/installsapinit.sh as user root on command line?

Markus

Former Member
0 Kudos

Yes...

From the /install

If i type ./sapinst :

Usage: ./sapinit {start|stop|status|restart}

If i type ./sapinit restart :

/usr/sap/sapservices: line 2: /usr/sap/BID/DVEBMGS00/exe/sapstartsrv: No such file or directory

If i type ./sapinit status :

No process running.

Please guys help me, i realy need to finish this installation.

About installsapinit

[root@BW install]# ./installsapinit.sh

bash: ./installsapinit.sh: /bin/sh^M: bad interpreter: No such file or directory

Edited by: Eduardo Moreira Mota on Dec 7, 2010 5:28 PM

markus_doehr2
Active Contributor
0 Kudos

> [root@BW install]# ./installsapinit.sh

> bash: ./installsapinit.sh: /bin/sh^M: bad interpreter: No such file or directory

ah! This file seems to be saved from Windows (CTRL + LF).

Try the following:

cd /install
mv installsapinit.sh installsapinit.sh.win
dos2unix installsapinit.sh.win > installsapinit.sh
chmod 755 installsapinit.sh

Then restart sapinst and repeat the phase.

Markus

Former Member
0 Kudos

Markus,

I thought you had found the solution.

The dvd files Instalation Master were copied from the windows.

I typed the commands you said and restart the installation.

But still the same problem

markus_doehr2
Active Contributor
0 Kudos

> I thought you had found the solution.

> The dvd files Instalation Master were copied from the windows.

> I typed the commands you said and restart the installation.

> But still the same problem

Please execute installsapinit.sh again to see if the same error is there.

Markus

Former Member
0 Kudos

Markus,

I ran the command installsapinit.sh and no error appeared.

The message below is NOT showing anymore :

> bash: ./installsapinit.sh: /bin/sh^M: bad interpreter: No such file or directory

Then i tried to run the installation again after that and still suck on phase 3.

Edited by: Eduardo Moreira Mota on Dec 7, 2010 6:30 PM

markus_doehr2
Active Contributor
0 Kudos

> The message below is NOT showing anymore :

> > bash: ./installsapinit.sh: /bin/sh^M: bad interpreter: No such file or directory

What's the output of

cat /install/installsapinit.sh

Markus

Former Member
0 Kudos

There is no output for the command :

cat /install/installsapinit.sh

But for cat /install/installsapinit.sh.win is :

#!/bin/sh

#

  1. On SunOS, /bin/sh is sth that can't cope with us - call more compliant

  2. sh if exists

#echo "[$#:$*]"

#[ "`uname`" = "SunOS" ] && [ -z "$changed_shell" ] && \

  1. [ -x /usr/xpg4/bin/sh ] && {

  2. changed_shell=1; export changed_shell;

  3. exec /usr/xpg4/bin/sh $0 $*;

  4. }

ARGUMENTS=$*

#

  1. - TARGET_DIR directory where the script are copied.

  2. - RUNLEVEL_DIR default runlevel directory.

  3. - PLATFORM_INSTALL install function platform dependent.

#

ERR_OK=0

  1. errors

ERR_copy_failed=1

ERR_no_suid=2

ERR_platform_install=3

ERR_no_sapinit=4

ERR_installing_sapinit=5

ERR_no_targetdir=6

ERR_unsupported_shell=7

#############################################################

SAPINIT=sapinit

SAPINIT_SRC=./$

  1. do_exit
  2. set_platform
#############################################################
  1. We do not want an automatic install:
  2. not supported by 700
  3. Change to a UNIX95 compatible shell
  1. not supported by 700
  2. not supported by 700
  3. not supported by 700
  4. system unrecognized!
  5. prepare_install()
  6. - prepare the sapinit installation / update
  7. normally copy the sapinit to the TARGET_DIR and
  8. make a backup of the old sapinit in TARGET_DIR.
# do_exit() { exit_code=$1; exit $exit_code; } ############################################################# # # set_platform() { case `uname` in AIX|BOS) TARGET_DIR=/etc/rc.d/init.d/ PLATFORM_INSTALL=aix_install CHECK_ROOT=aix_checkroot ;; HP*) TARGET_DIR=/sbin/init.d PLATFORM_INSTALL=hpux_install CHECK_ROOT=hpux_checkroot ;; OS/390*) exit $ERR_OK ;; OSF*) ;; Sun*) TARGET_DIR=/etc/init.d PLATFORM_INSTALL=sun_install CHECK_ROOT=sun_checkroot # # if [ -z "$changed_shell" ]; then if [ -x /usr/xpg4/bin/sh ]; then changed_shell=1; export changed_shell; exec /usr/xpg4/bin/sh $0 $ARGUMENTS else do_exit ${ERR_unsupported_shell} fi fi ;; SIN|Reliant) ;; ULT*) ;; dmux*) ;; Linux*) TARGET_DIR=/etc/init.d PLATFORM_INSTALL=linux_install CHECK_ROOT=linux_checkroot ;; *) ;; esac; } ############################################################# # # # prepare_install() { [ ! -d ${TARGET_DIR} ] && mkdir -p $ [ ! -d $ ] && do_exit $ if [ -e $/$ ]; then

  1. move to sapinit.old

mv -f $/$ $/$.old fi cp -p $ $ || do_exit $ chmod 777 $/$

}

#############################################################

#

  1. AIX

#

aix_checkroot() {

[ `id -u` != "0" ] && return 0

return 1

}

aix_install() {

RL2_DIR=${TARGET_DIR}/../rc2.d

ln -sf $/$ $/S$ ln -sf $/$ $/K$

}

#############################################################

#

  1. SUN

#

sun_checkroot() {

[ `/usr/xpg4/bin/id -u` != "0" ] && return 0

return 1

}

sun_install() {

RL3_DIR=${TARGET_DIR}/../rc3.d

RL2_DIR=$/../rc2.d RL1_DIR=$/../rc1.d

  1. "ln -f -s dst link" still complains if link exists, unlink before

[ -r $/S90$ ] && unlink $/S90$ ln -s $/$ $/S90$ [ -r $/S90$ ] && unlink $/K10$ ln -s $/$ $/K10$ [ -r $/S90$ ] && unlink $/K10$ ln -s $/$ $/K10$

  1. HP-UX
} ############################################################# # # hpux_checkroot() { [ `id -u` != "0" ] && return 0 return 1 } hpux_install() { RL3_DIR=${TARGET_DIR}/../rc3.d RL2_DIR=$/../rc2.d RL1_DIR=$/../rc1.d ln -sf $/$ $/S900$ ln -sf $/$ $/K100$ ln -sf $/$ $/K100$
  1. Linux
  2. this because chkconfig fro SuSE always return 0 ....
} ############################################################# # # linux_checkroot() { [ `id -u` != "0" ] && return 0 return 1 } linux_install () { # # SUSE=`cat /etc/*-release | grep -i SUSE` if [ "${SUSE}" ]; then chkconfig --add $
2>&1 >/dev/null

[ -z "`chkconfig $ 2>&1 | sed -e "s/sapinit//g" | grep "on"`" ] && do_exit $ else chkconfig --add $ 2>&1 >/dev/null || do_exit $

fi

}

#############################################################

#

  1. install()

#

install () {

[ -z "${PLATFORM_INSTALL}" ] && do_exit $ $ } checkroot() { [ -z "${CHECK_ROOT}" ] && do_exit $

$

}

#############################################################

#

  1. MAIN routine.

#

#

  1. Check for root

#

set_platform

checkroot && do_exit $

prepare_install

install

do_exit $

markus_doehr2
Active Contributor
0 Kudos

> cat /install/installsapinit.sh

so the file is empty?

> But for cat /install/installsapinit.sh.win is :

>

>

> #!/bin/sh

Can you execute that one now?

Markus

Former Member
0 Kudos

The file cat /install/installsapinit.sh is empty after restart de installation.

The file cat /install/installsapinit.sh.win shows #!/bin/sh after restart de installation.

markus_doehr2
Active Contributor
0 Kudos

> The file cat /install/installsapinit.sh.win shows #!/bin/sh after restart de installation.

And can you execute it properly? if yes, rename it back to installsapinit.sh and restart sapinst.

If that fails I suggest you open an OSS call, it's very difficult to help and debug without remote access.

Markus

Former Member
0 Kudos

Markus,

My computer is ready for remote acess through VNC.

If you want to i can give my internet ip adress and you can see for yourself.

Can you do that ??

markus_doehr2
Active Contributor
0 Kudos

> My computer is ready for remote acess through VNC.

> If you want to i can give my internet ip adress and you can see for yourself.

> Can you do that ??

I can't, the internal firewalls here prevent direct NAT'ted outside access - and even if, it's better to open a remote connection to the system and let the SAP support assist you.

What you can also do to omit that step (you can install the service later) is

- stop sapinst

- open keydb.xml in an editor

- search for ERROR (next to a CDDATA)

- replace with "OK"

- restart sapinst and continue old installation

Markus

Former Member
0 Kudos

Markus,

Thanks a lot for help me.

The installation now is proceding.

Let`s see later if everything is going to be right because that step.

Thank`s again.

Former Member
0 Kudos

Hi,

I did the installation again but now i copied the Installation Master CD from the internet using the linux system.

Before i copied the file using windows system.

So i think that was the problem.

The installation finished well.

Former Member
0 Kudos

If you are on Unix this try to posses enough AUthorization at root elevl or your Shell profile being loaded to your id using which you run the Installer.

like

sudo su - root

and not sudo su root,.. "-" matters

Answers (1)

Answers (1)

Former Member
0 Kudos

Have you checked that both the file and directory path /tmp/sapinst_instdir/NW701/PI/ORA/CENTRAL/installsapinit.sh exist?

You might also check whether that path has permissions 777. Sometimes sapinst runs into problems if the tmp-Dirs don't have that permission set.

Also check whether /tmp has sufficient space left.

Kind regards,

Former Member
0 Kudos

Yes... The files was there in the /tmp/sapinst_dir..... sapinit and installsapinit ... I tried before change the ownership of this files to SIDADM and try to restart the installation with no success.

So i have to set the 777 permission to the TMP directory ???

Yes.. the /TMP has enough espace left.