AWS Backup for SAP HANA - Error in registeration process

0

Hi all,

we have a problem setting up backup on AWS. We want to use the AWS Backup service and have followed this documentation. https://docs.aws.amazon.com/sap/latest/sap-hana/aws-backint-agent-backup.html#backint-backup-prerequisites

Now we are at the point: Register your SAP HANA database with AWS Systems Manager for SAP.

During registration we get the following error:

"Operation": { "Id": "xxxxx", "Type": "REGISTER_APPLICATION", "Status": "ERROR", "StatusMessage": "An internal error occurred.", "ResourceType": "APPLICATION", "ResourceId": "HANAREGISTRATIONTEST6", "StartTime": "2023-07-24T14:57:57.487000+00:00", "EndTime": "2023-07-24T14:58:27.523000+00:00", "LastUpdatedTime": "2023-07-24T14:58:27.523000+00:00" } }

We have checked the prerequisite points listed in the doc and could not find any discrepancies.

Does anyone have any idea how to solve the error?

Thank you very much, Katz

profile picture
katz
질문됨 10달 전693회 조회
2개 답변
0

Hi Katz,

Have a look at https://boto3.amazonaws.com/v1/documentation/api/1.26.101/reference/services/ssm-sap/client/register_application.html

it gives 3 prereqs:

The SAP application you want to register with AWS Systems Manager for SAP is 
running on Amazon EC2.

AWS Systems Manager Agent must be setup on an Amazon EC2 instance along
 with the required IAM permissions.

Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets 
Manager to manage SAP applications and components.

Do you satisfy them all ? #1 is obvious. #2 & #3 are the real ones. On #3, make sure to use the EC2 execution role that you assigned to your EC2 instances for it to work.

Best

Didier

profile pictureAWS
전문가
답변함 10달 전
  • Hello Didier, thank you for the feedback. I have checked all permissions and also assigned the administrator permission to the EC2 instance. (For test) But unfortunately the error still persists. I also testet the "get-secret-value" command on my EC2 Instance. It works.

    This is the Output:

    aws secretsmanager get-secret-value \

    --secret-id XXXXXX
    

    { "ARN": "arn:aws:secretsmanager:eu-central-1:1111111:secret:TEST-jz0okG", "Name": "TEST", "VersionId": "03370794-40c0-47df-b436-cf0f7723232a", "SecretString": "{"username":"XXXX","password":"XXXX"}", "VersionStages": [ "AWSCURRENT" ], "CreatedDate": "2023-07-24T16:11:52.082000+02:00" }

    Kind regards, Katz

0

Please take a look at SSM discovery log under /usr/bin/ssm-sap/logs/discovery.log The discovery log contains additional information on registration status which will be helpful to troubleshooting further.

Step-1: Prerequisites for SSM for SAP: https://docs.aws.amazon.com/ssm-sap/latest/userguide/get-started.html

Step-2: Discovery and Registration SAP HANA Database using ssm-sap CLI: https://docs.aws.amazon.com/ssm-sap/latest/userguide/register-database.html

Step-3: Setup AWS Backup for SAP HANA on Amazon EC2 https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-saphana.html

profile pictureAWS
답변함 하루 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인