cancel
Showing results for 
Search instead for 
Did you mean: 

SPS3 installer failed with 'SAPCAR: Permission denied'

Vitaliy-R
Developer Advocate
Developer Advocate
0 Kudos

When running unified installer (Rev 20):

hana-rep:/HANA/repository/HANA1.0-SPS03/51041779/DATA_UNITS/HANA_IM_LINUX__X86_64 # ./setup.sh /tmp/hanainst/ /tmp/setuphana.slmodel

I am getting the following error:

[20111123105848] [  65% completed] Working on:       'SUM' ...  --> STARTED
[20111123105848] [  66% completed] Working on:        'SUM4HANA' ...  --> RUNNING.../
Error when fixing issue The content reference SUM4HANA is not deployed
 Return Code:1                                                                                ERROR

Could not finish execution.
Finished with status ERROR. Message is: Could not finish execution.
Installer failed.

and when looking into log:

hana-rep:/tmp/hanainst/log # tail install.log
2011/11/23 10:58:48 [INFO] [  61% completed] Working on:      'HDB Client' ... |
2011/11/23 10:58:48 [INFO] [  61% completed] Working on:      'Sum4Hana Installer' ... |
2011/11/23 10:58:48 [INFO] [  62% completed] Working on:       'HNA' ... |
2011/11/23 10:58:48 [INFO] [  63% completed] Working on:        'SYS' ... |
2011/11/23 10:58:48 [INFO] [  64% completed] Working on:        'SYS' ... |
2011/11/23 10:58:48 [INFO] [  64% completed] Working on:       'HNA' ... |
2011/11/23 10:58:48 [INFO] [  65% completed] Working on:       'SUM' ... |
2011/11/23 10:58:48 [INFO] [  66% completed] Working on:        'SUM4HANA' ... |
2011/11/23 10:58:52 [ERROR] /HANA/repository/HANA1.0-SPS03/51041779/DATA_UNITS/HANA_IM_LINUX__X86_64/SAPCAR: Permission denied.|
2011/11/23 10:58:52 [ERROR] Finished with status ERROR. Message is: Could not finish execution.|

I checked the SAPCAR:

hana-rep:/HANA/repository/HANA1.0-SPS03/51041779/DATA_UNITS/HANA_IM_LINUX__X86_64 # ll /HANA/repository/HANA1.0-SPS03/51041779/DATA_UNITS/HANA_IM_LINUX__X86_64/SAPCAR
-r-xr--r-- 1 root root 4264120 Oct 31 20:26 /HANA/repository/HANA1.0-SPS03/51041779/DATA_UNITS/HANA_IM_LINUX__X86_64/SAPCAR

It looks good for me, as I am 'root' and have permissions to execute it.

Any ideas?

Thanks,

-Vitaliy

Accepted Solutions (0)

Answers (1)

Answers (1)

Vitaliy-R
Developer Advocate
Developer Advocate
0 Kudos

I looked into glf file in logs, and it seems that <sid>adm is installing SUM:

EXTRACT_USER="hnaadm"
USE_LST_FILE="0"
EXTRACT_LST_FILE="-A $TMP_DIR/$LST_FILE"

if [ $USE_LST_FILE -eq 0 ]
then
   su - $EXTRACT_USER -c "$SAPCAR_DIRECTORY/$SAPCAR_EXECUTABLE -xvf $FILE_TO_EXTRACT -R $TARGET_DIRECTORY"
   rc=$?

I changed the permissions on SAPCAR for everyone to execute and re-starting setup.sh after clearing work directory.

Vitaliy-R
Developer Advocate
Developer Advocate
0 Kudos

Yep, it was the issue with the SAPCAR pemission for <sid>adm user, beause files where copied through Windows system and then permissions were manually set on files and directories just for 'root'. Should not happen in normal operations.

Former Member
0 Kudos

Hi Vitaliy, how you can clearing work directory? I delete all files and folder on it and still can't continue the installation!