on 12-07-2010 1:52 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
> 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
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
> [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
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
There is no output for the command :
cat /install/installsapinit.sh
But for cat /install/installsapinit.sh.win is :
#!/bin/sh
#
On SunOS, /bin/sh is sth that can't cope with us - call more compliant
sh if exists
#echo "[$#:$*]"
#[ "`uname`" = "SunOS" ] && [ -z "$changed_shell" ] && \
[ -x /usr/xpg4/bin/sh ] && {
changed_shell=1; export changed_shell;
exec /usr/xpg4/bin/sh $0 $*;
}
ARGUMENTS=$*
#
- TARGET_DIR directory where the script are copied.
- RUNLEVEL_DIR default runlevel directory.
- PLATFORM_INSTALL install function platform dependent.
#
ERR_OK=0
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=./$
#############################################################
#
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
move to sapinit.old
mv -f $/$ $/$.old fi cp -p $ $ || do_exit $ chmod 777 $/$
}
#############################################################
#
AIX
#
aix_checkroot() {
[ `id -u` != "0" ] && return 0
return 1
}
aix_install() {
RL2_DIR=${TARGET_DIR}/../rc2.d
ln -sf $/$ $/S$ ln -sf $/$ $/K$
}
#############################################################
#
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
"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$
}
#############################################################
#
#
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$
}
#############################################################
#
#
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
}
#############################################################
#
install()
#
install () {
[ -z "${PLATFORM_INSTALL}" ] && do_exit $ $ } checkroot() { [ -z "${CHECK_ROOT}" ] && do_exit $
$
}
#############################################################
#
MAIN routine.
#
#
Check for root
#
set_platform
checkroot && do_exit $
prepare_install
install
do_exit $
> 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
> 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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.