Showing results for 
Search instead for 
Did you mean: 

Not able to run XSA command line client on a "SAP S/4HANA 2021 Fully-Activated Appliance"

0 Kudos


We have an issue with a "SAP S/4HANA 2021 Fully-Activated Appliance" environment where we can't run the XSA command line client. For context, our self-signed certificate on the instance has expired. According to this article, after the certificate has expired it can't be set using other tools, XSA command reset-certificate has to be used.

When we try to run "XSA reset-certificate" (from the location /hana/shared/HDB/xs), we first got "ERROR: Incomplete HANA environment. The following variables are missing: [SAP_RETRIEVAL_PATH, DIR_EXECUTABLE, DIR_INSTANCE, SAPSYSTEMNAME]". We set the variables manually to the following values (instance number 90):



- DIR_EXECUTABLE=/usr/sap/HDB/HDB90/exe

- SAP_RETRIEVAL_PATH=/usr/sap/HDB/HDB90/vhcalhdbdb

With those variables set we still get an error when running XSA commands: "ERROR: The system PKI could not be loaded: no sapsyspki in java.library.path:[/usr/java/packages/lib/amd64, /usr/lib64, /lib64, /lib, /usr/lib] and in system paths:[/hana/shared/HDB/xs/sapjvm_8/jre/lib/amd64]".

The instance was running before the certificate has expired, the xsa-cockpit app is running (confirmed with xs apps), and we can access SAP HANA XS Advanced Cockpit via browser. Running "xs apps" returns that all services are STARTED with just the hrtt-service being DOWN (error in the logs is "Failure reason: FAILED to materialize droplet: FAILED to extract tar stream (tar exit code: 2): tar: app/vendor/node14.19/bin/node_main/node: Wrote only 2560 of 10240 bytes" and "Cannot mkdir: No space left on device").

What is the likely reason for the issue and how can we resolve it?

Thank you in advance!


Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

it says No space left on device

0 Kudos

Thank you for the response! This is referring to the hrtt-service logs, other services are up and the XSA command line utility is returning the system PKI error. I checked the instance disk space with df command and it has space free. I can't run the XSA du command because of the system PKI could not be loaded error.