cancel
Showing results for 
Search instead for 
Did you mean: 

sapstartsrv: Execute permission denied

Former Member
0 Kudos

Hi All,

We are having ASCS and PAS Instance on one host and DB is on another host. When we are trying to start ASCS instance its failing:

dmxub05:xc1adm 25> startsap oshcrzm5

Checking XC1 Database

-


Database is running

Starting Startup Agent sapstartsrv

-


Startup of Instance Service failed

See /home/xc1adm/startsap_ASCS61.log for details

Starting SAP Instance ASCS61

-


Startup-Log is written to /home/xc1adm/startsap_ASCS61.log

Startup of Instance failed

See /home/xc1adm/startsap_ASCS61.log for details

On checking startsap_ASCS61.log, it shows below error:

dmxub05:xc1adm 26> cat /home/xc1adm/startsap_ASCS61.log

Trace of system startup/check of SAP System XC1 on Mon Dec 6 19:11:01 MST 2010

Called command: /usr/sap/XC1/SYS/exe/run/startsap start

Starting Startup Agent sapstartsrv

-


/usr/sap/XC1/SYS/exe/run/startsap: /usr/sap/XC1/ASCS61/exe/sapstartsrv: Execute permission denied.

Startup of Instance Service failed

Starting SAP Instance ASCS61

-


Startup of Instance failed

Permission and ownership of sapstartsrv is also fine

dmxub05:xc1adm 27> ls -ltr /usr/sap/XC1/ASCS61/exe/sapstartsrv

-rwxrwxrwx 1 xc1adm sapsys 1048576 Dec 5 17:41 /usr/sap/XC1/ASCS61/exe/sapstartsrv

but when i am starting PAS Instance, it is getting started

dmxub05:xc1adm 21> startsap oshcrzm5 DVEBMGS60

Checking XC1 Database

-


Database is running

Starting Startup Agent sapstartsrv

-


Instance Service on host dmxub05 started

Starting SAP Instance DVEBMGS60

-


Startup-Log is written to /home/xc1adm/startsap_DVEBMGS60.log

Instance on host dmxub05 started

Starting SAP-Collector Daemon

-


19:22:14 06.12.2010 LOG: Effective User Id is root

******************************************************************************

  • This is Saposcol Version COLL 20.95 701 - V2.7.1 2008-08-11 HP-UX IA64

  • Usage: saposcol -l: Start OS Collector

  • saposcol -k: Stop OS Collector

  • saposcol -d: OS Collector Dialog Mode

  • saposcol -s: OS Collector Status

  • Starting collector (create new process)

******************************************************************************

saposcol on host dmxub05 started

dmxub05:xc1adm 22> ps -ef | grep dw

xc1adm 14654 14637 0 19:21:46 ? 0:00 dw.sapXC1_DVEBMGS60 pf=/usr/sap/XC1/SYS/profile/XC1_DVEBMGS60_oshcrzm5

xc1adm 14684 14637 0 19:21:48 ? 0:00 dw.sapXC1_DVEBMGS60 pf=/usr/sap/XC1/SYS/profile/XC1_DVEBMGS60_oshcrzm5

xc1adm 14663 14637 0 19:21:46 ? 0:00 dw.sapXC1_DVEBMGS60 pf=/usr/sap/XC1/SYS/profile/XC1_DVEBMGS60_oshcrzm5

xc1adm 14664 14637 0 19:21:46 ? 0:00 dw.sapXC1_DVEBMGS60 pf=/usr/sap/XC1/SYS/profile/XC1_DVEBMGS60_oshcrzm5

Not being able to create the sockets while starting ASCS. But socket are getting created when starting the PAS. Find below:

dmxub05:xc1adm 25> ls -altr .sap*

-rw-rw-rw- 1 xc1adm sapsys 0 Dec 5 12:58 .sapstartsrv60_sapstartsrv.log

-rw-rw-rw- 1 xc1adm sapsys 0 Dec 5 17:41 .sapstartsrv61_sapstartsrv.log

srwx------ 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream56013

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream3260

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream46080

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream46000

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream3360

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapstream65000

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:21 .sapicm8060

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:22 .sapstream46002

srwxrwxrwx 1 xc1adm sapsys 0 Dec 6 19:22 .sapstream46001

Also the entries in sapservices file is also okay

  1. pwd

/usr/sap

  1. ll sapservices

-rwxr-xr-x 1 root sapsys 667 Dec 6 17:15 sapservices

  1. cat sapservices

#!/bin/sh

SHLIB_PATH=/usr/sap/XC1/ASCS61/exe:$SHLIB_PATH; export SHLIB_PATH; /usr/sap/XC1/ASCS61/exe/sapstartsrv pf=/usr/sap/XC1/SYS/profile/START_ASCS61_oshcrzm5 -D -u xc1adm

Kindly help in starting up ASCS Instance.

Regards,

Soumya

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member189546
Active Contributor
0 Kudos

Hello,

Please check the Note 1063897 - sapstartsrv user authentication on HP-UX

regards,

John Feely

Former Member
0 Kudos

Hi All,

The issue got resolved.

On further investigation it was found that there was a mismatch in sapstartsrv and sapstart file under /usr/SAP/XC1/ASCS61/exe/ and /usr/sap/XC1/DVEBMGS60/exe/

  1. cd /usr/SAP/XC1/ASCS61/exe

  2. ll | grep sapstart

-r-xr--r-x 1 xc1adm sapsys 0 Dec 4 20:45 sapstart

-r-xr--r-x 1 xc1adm sapsys 1048576 Dec 4 20:45 sapstartsrv

  1. cd /usr/sap/XC1/DVEBMGS60/exe

  2. ll | grep sapstart

-rwxr-xr-x 1 xc1adm sapsys 1960136 May 5 2010 sapstart

-rwxr-xr-x 1 xc1adm sapsys 17774216 May 28 2010 sapstartsrv

So copied the exe directory from /usr/sap/XC1/DVEBMGS60 and replaced it in usr/SAP/XC1/ASCS61/ and the ASCS Instance got started.

Thanks all for your suggestions.

Regards,

Soumya

Former Member
0 Kudos

whats your owner and permissions for /usr/sap/XC1/SYS/exe/run/startsap

Former Member
0 Kudos

Hi,

Try to start this by giving startsap r3 ASCS61 or startsap r3 ASCS61 oshcrzm5

Former Member
0 Kudos

What is your operating system and version?

What is the output of:

file /usr/sap/XC1/ASCS61/exe/sapstartsrv

Edited by: Joe Bo. on Dec 7, 2010 11:53 AM

file, not which!

Former Member
0 Kudos

Please check the log files in the work directory of the ASCS. There should be more information regarding the problem you face.

Kind regards,