Automic Workload Automation

 View Only

 UNIX Agent does not start - U02000300 Error during handling Private Key

Support Technique Highway's profile image
Support Technique Highway posted May 03, 2022 12:03 PM
Hi everybody,

As said in the object of this thread, I'm facing an issue when trying to start an UNIX Agent on a client (server SAP).
I'm working on a sandbox system with the perspective to upgrade from v12.2.6 to v21.0.2.
My AE system is on CentOS Linux release 7.9.2009
My SAP server is on SUSE Linux Enterprise Server 12 (4.12.14-95.93-default).

Here is the logs for my UNIX Agent during the startup:

20220503/175720.644 - U02000072 Connection to system 'QR2' initiated.
20220503/175720.644 - U02000379 Initiating connection to server 'QR2' using WebSocket URI: 'sqr2h1aut02:8443/agent'.
20220503/175720.657 - U02000377 Certificate loaded from file '/etc/ssl/ca-bundle.pem'.
20220503/175720.657 - U02000378 Loading certificates from directory: '/opt/automic/Certificates'.
20220503/175720.657 - U02000377 Certificate loaded from file '/opt/automic/Certificates/Root_CA_PX9.pem'.
20220503/175720.657 - U02000377 Certificate loaded from file '/opt/automic/Certificates/sqr2h1aut02.pem'.
20220503/175720.657 - U02000398 Loading certificates from the directory 'security' that is specified in the parameter'AgentSecurityFolder'.\
20220503/175720.658 - U02000377 Certificate loaded from file 'security/ST1SCS.pem'.
20220503/175720.658 - U02000377 Certificate loaded from file 'security/ST1SCS.cert'.
20220503/175720.658 - U02000377 Certificate loaded from file 'security/ST1SCS_ca.pem'.
20220503/175720.669 - U02000004 Connection to Server 'QR2#CP007' successfully created.
20220503/175720.670 - U02000308 Agent certificate file 'security/ST1SCS.cert' was loaded, expiration date '20230430/203506'.
20220503/175720.670 - U02000308 Agent certificate file 'security/ST1SCS_ca.pem' was loaded, expiration date '20420410/172246'.
20220503/175720.670 - U02000314 Initial challenge has been requested.
20220503/175720.672 - U02000401 Received JCP server list: 'https://sqr2h1aut028443/'
20220503/175720.673 - U02000300 Error during handling Private Key: 'LOAD/PEM_read_PrivateKey(security/ST1SCS.pem)'.
20220503/175720.674 - U02003073 Agent Prozess 'AGENT,PID=29569' shutdown has been initiated.
20220503/175720.718 - U02000041 Shutdown Agent 'ST1SCS'.

FYI, on the same SAP server, a SAP agent is running without any problem. It is using the same certificates with the same path.
Consequently, I can't figure out why there is an issue with handling Private key...

Has anyone already faced this kind of issue? Any help would be appreciated.

Best regards,
Thibaut

Christoph Rekers's profile image
Christoph Rekers
Hi Thibaut,

have you tried deleting the agents security/ST1SCS*-files, than "Disconnect Agent Connection" and after that starting the agent again?


Cheers
Christoph
Support Technique Highway's profile image
Support Technique Highway
Hi Christoph,

I have not the possibility to choose the option "Disconnect Agent Connection" for this Agent.
In fact, my agent is seen by AWI with its old version 12.2.6, so I can only choose the available options related to this version.
I've just tried to remove the Agent from AWI, and just relaunch it from SM Dialog. The Agent is added on the AWI Agents list, but it still does not work (still the same error message).

Any help would be appreciated
Support Technique Highway's profile image
Support Technique Highway
Hi All,

I finally found the root cause => some configurations were not correctly adjusted.
This issue is directly related to an automation process that we are trying to develop.
By the way, in order to start my agents (SAP & UNIX), it seems I need to use the option "Reset Agent public key" in the AWI.
Is there a possibility to use this functionnality in command line...?

Thanks for your help