on 2020 Oct 23 12:43 PM
Hi,
We run docker image "store/saplabs/hanaexpressxsa:2.00.045.00.20200121.1" and tried to create a Space within the XSA, but it fails.
hxeadm@hxehost:/usr/sap/HXE/HDB90> xs create-space dev
Creating space dev in org HANAExpress as XSA_ADMIN...
FAILED: Failed to determine mdcdispatcher XSA mode availability: Failed to determine hdbmdcdispatcher XSA mode availability: Failed to start mdc process: hdbmdcdispatcher executable exited with code 1
Any idea how to fix this?
Request clarification before answering.
Ok, got it to work.
user@hxehost: docker exec -u 0 -it container bash
😕 # whoami
root
😕 # su hxeadm
hxeadm@hxehost:/usr/sap/HXE/HDB90> xs create-space test2
Creating space test2 in org HANAExpress as XSA_ADMIN... OK
this are the root commands you need to set before you can create the space by hxeadm. this is the permission which is required: -r-sr-x--- 1 root sapsys
😕 SPS 04
=========
chown root:sapsys /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.045.00.1575639312_af3aabc5a5cdb94ecbc7c07d0997d0bd4ae0046b/mdc/hdbmdcdispatcher
chmod 4550 /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.045.00.1575639312_af3aabc5a5cdb94ecbc7c07d0997d0bd4ae0046b/mdc/hdbmdcdispatcher
expected output:
-r-sr-x--- 1 root sapsys 11767728 Dec 6 2019 /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.045.00.1575639312_af3aabc5a5cdb94ecbc7c07d0997d0bd4ae0046b/mdc/hdbmdcdispatcher
:/ SPS 05
=========
chown root:sapsys /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.054.00.1611906357_989e98fd1334a1b6e36785c8bd7e9ab5239960f1/mdc/hdbmdcdispatcher
chmod 4550 /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.054.00.1611906357_989e98fd1334a1b6e36785c8bd7e9ab5239960f1/mdc/hdbmdcdispatcher
ls -la /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.054.00.1611906357_989e98fd1334a1b6e36785c8bd7e9ab5239960f1/mdc/hdbmdcdispatcher
-->
expected output:
-r-sr-x--- 1 root sapsys 14529256 Jan 29 2021 /hana/shared/HXE/exe/linuxx86_64/HDB_2.00.054.00.1611906357_989e98fd1334a1b6e36785c8bd7e9ab5239960f1/mdc/hdbmdcdispatcher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
These seem to be two different issues.
From Dirk, I understand that when executing the following command as root user
xs create-space <name>
the error is returned
The file permissions of the hdbmdcdispatcher executable are not as expected. Got "550", expected "4550". You can fix this by executing "chmod 4550 <path>/hdbmdcdispatcher" as root user
Instead of performing this "fix", I would expect the xs command to run succesfull when executed as the <sid>adm user.
However, from the original question, I understand that the command is executed as hxeadm
hxeadm@hxehost:/usr/sap/HXE/HDB90> xs create-space dev
This returns error
Failed to start mdc process: hdbmdcdispatcher executable exited with code 1
Can you configure the system has enough memory?
====
Concerning chmod; this sets file permissions. The difference is the setuid bit which allows you to run a command with the permissions of the owner.
https://chmodcommand.com/chmod-4550/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.