SAP Knowledge Base Article - Preview

3763648 - saphostctrl ACTIVATE_SSL returns "Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales" - SAP ASE for BS

Symptom

  • Using saphostctrl set enable SSL for existing SAP ASE Server for BS, refer to Kba:  2667773 - SYB: saphostctrl - enable SSL for existing systems
  • The standby system enabling SSL has completed, when you enable Primary system using the saphostctrl command, returns below error:
    /usr/sap/hostctrl/exe/saphostctrl -dbname SID dbtype syb -function LiveDatabaseUpdate -updatemethod Execute -updateoption TASK=ACTIVATE_SSL

    Error: Command execution failed. : Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales.
    (fault code: 127)
    Operation ID: xxxxxxxxxx
    ----- Log messages ----
    Info: saphostcontrol: Executing LiveDatabaseUpdate
    Error: sapdbctrl: Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales.
    Error: saphostcontrol: LiveDatabaseUpdate failed (sapdbctrl exit code = 1)

  • Below error is printed in /usr/sap/hostctrl/work/dev_sapdbctrl, it seems that the actual problem is that isql cannot connect to companion ASE using: '<standby ASE's ip address>:4901 ssl on.
    At that time, the Standby ASE server was only using SSL listening.

    Wed Jun  3 02:29:16 2026

    [PID 10450] command /bin/sh -c ". /sybase/SID/SYBASE.sh; /sybase/SID/OCS-16_0/bin/isql -Usapsa -S'<standby ASE's ip address>:4901 -Dmaster -X  -t3  -l3  -b -h-1 -w10000  -i /usr/sap/hostctrl/work/SID/in.10450.7.isql -o /usr/sap/hostctrl/work/SID/out.10450.7.isql": failed with exit code 255.
    [PID 10450] [PID 10450] execution of isql failed.
    [PID 10450] isqlCall: output: line CT-LIBRARY error:
    [PID 10450] isqlCall: output: line   ct_connect(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
    [PID 10450] cannot connect to companion ASE using: '<standby ASE's ip address>:4901, ssl off.
    [PID 10450] ERROR AT sybctrl.cpp:processMessage:324 TIME: 2026 Jun 03 02:29:16 DESCRIPTION: SQL failed with errorcode 30268, state HY000, msg: [SAP][ASE ODBC Driver]Network error. LAST OS-ERROR: (0) : Success
    [PID 10450] ERROR AT sybctrl.cpp:processMessage:324 TIME: 2026 Jun 03 02:29:16 DESCRIPTION: SQL failed with errorcode 30012, state 08001, msg: [SAP][ASE ODBC Driver]Client unable to establish a connection LAST OS-ERROR: (0) : Success
    [PID 10450] connect via odbc to ASE database failed.
    [PID 10450] [SAP][ASE ODBC Driver]Network error.Password:
    [PID 10450]

    Wed Jun  3 02:29:18 2026
    [PID 10450] command /bin/sh -c ". /sybase/SID/SYBASE.sh; /sybase/SID/OCS-16_0/bin/isql -Usapsa -S'<standby ASE's ip address> ssl=\"CN=SID\"' -Dmaster -X  -t3  -l3  -b -h-1 -w10000  -i /usr/sap/hostctrl/work/SID/in.10450.8.isql -o /usr/sap/hostctrl/work/SID/out.10450.8.isql": failed with exit code 255.
    [PID 10450] [PID 10450] execution of isql failed.
    [PID 10450] isqlCall: output: line CT-LIBRARY error:
    [PID 10450] isqlCall: output: line      ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed
    [PID 10450] cannot connect to companion ASE using: '<standby ASE's ip address>:4901, ssl on.
    [PID 10450] ERROR: connect to companion ASE using '<standby ASE's ip address>:4901 failed.
    [PID 10450] ERROR: connect to companion ASE using '<standby ASE's ip address>:4901 failed.
    [PID 10450] checking for active companion ASE (HADR) failed.
    [PID 10450] ERROR AT sybServer.cpp:removeDirectory:1019 TIME: 2026 Jun 03 02:29:18 DESCRIPTION: Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales LAST OS-ERROR: (2) : No such file or directory
    [PID 10450] *** ERROR => 'Database live update' failed: Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales. [sapdbctrl.cp 5115]
  • When you added a non-ssl listener for Standby ASE server, then, execute "saphostctrl TASK=ACTIVATE_SSL" again , a new error was print:
    Error: Command execution failed. : password for ASE sa user not found in SecStore. Required to enable SSL for HADR setup. 
    Set DB_CONNECT/SYB/SAUPDDB_USER and DB_CONNECT/SYB/SAUPDDB_PASSWORD in Secure Storage. 
    Follow SAP note 1797040 to update SecStore with the missing user information. (fault code: 127)


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) 16.0 for Business Suite

Product

SAP Adaptive Server Enterprise all versions ; SAP Replication Server all versions

Keywords

USER=SAUPD, DB_CONNECT/SYB/SAUPDDB_USER, DB_CONNECT/SYB/SAUPDDB_PASSWORD, Secure Storage, saphostctrl, TASK=ACTIVATE_SSL, "Cannot remove directory which does not exist: /usr/sap/hostctrl/exe/locales" , KBA , BC-DB-SYB , Business Suite on Adaptive Server Enterprise , BC-SYB-REP-SAP , Replication with SAP Suite / SAP BW , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.