SAP Knowledge Base Article - Preview

3392944 - setuphadr failed with C.utf8 locale - SAP SRS HADR


  • setuphadr executed on companion site fails during the configuration phase of the Replication Server
  • The setuphadr log reports that rs_init failed to initialize. The reported rs_init log file does not exist.

(setuphadr log file)

2023-10-11 20:19:47 Setup Replication
2023-10-11 20:19:47     Setup replication from "Site1" to "Site2"...
2023-10-11 20:19:47 (SQL command) sap_setup_replication dr, Site1, Site2
2023-10-11 20:19:49 (SQL command) sap_setup_replication dr, Site1, Site2 End
TASKNAME                  TYPE                          VALUE                                                                                                
------------------------- ----------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Status                    Start Time                    Wed Oct 11 20:19:47 ICT 2023                                                                         
Status                    Elapsed Time                  00:00:02                                                                                             
SetupReplicationTask      Task Name                     Setup replication                                                                                    
SetupReplicationTask      Task State                    Error                                                                                                
SetupReplicationTask      Short Description             Setup replication between two SAP ASE servers.                                                       
SetupReplicationTask      Long Description              Configuring remote replication server.                                                               
SetupReplicationTask      Current Task Number           1                                                                                                    
SetupReplicationTask      Total Number of Tasks         7                                                                                                    
SetupReplicationTask      Task Start                    Wed Oct 11 20:19:47 ICT 2023                                                                         
SetupReplicationTask      Task End                      Wed Oct 11 20:19:49 ICT 2023                                                                         
SetupReplicationTask      Hostname                                                                                          
ConfigureRemoteRSInstanceTask Name                     Replication Server Initialization                                                                     
ConfigureRemoteRSInstanceTask State                    Error                                                                                                 
ConfigureRemoteRSInstanceShort Description             Executes the initialization utility named rs_init to create and configure a Replication Server.       
ConfigureRemoteRSInstanceLong Description              Executing the rs_init utility                                                                         
ConfigureRemoteRSInstanceFailing Command               [/sybase/XXX/DM/REP-16_0/install/, -c, utf8, -r, /sybase/XXX/DM/DSP_REP_Site1/init/work/, -log, /sybase/XXX/DM/DSP_REP_Site1/init/work/rs_initLog.001]
ConfigureRemoteRSInstanceFailing Command Return Code   139                                                                                                   
ConfigureRemoteRSInstanceFailing Command Error MessageThe task was unable to read rs_init utility log file: '/sybase/XXX/DM/DSP_REP_Site1/init/work/'.
ConfigureRemoteRSInstanceFailing Exception             Message: 'The file '/sybase/XXX/DM/DSP_REP_Site1/init/work/rs_initLog.001' does not exist, or is not valid.' Cause: ''.
ConfigureRemoteRSInstanceAdditional Info               More information can be found in the log file from the utility. File name '/sybase/XXX/DM/DSP_REP_Site1/init/work/rs_initLog.001'
ConfigureRemoteRSInstanceCurrent Task Number           5                                                                                                     
ConfigureRemoteRSInstanceTotal Number of Tasks         19                                                                                                    
ConfigureRemoteRSInstanceTask Start                    Wed Oct 11 20:19:49 ICT 2023                                                                          
ConfigureRemoteRSInstanceTask End                      Wed Oct 11 20:19:49 ICT 2023                                                                          

2023-10-11 20:19:52 Error: Setup Replication...Fail


The context allocation routine failed when it tried to load localization files!!
One or more following problems may caused the failure

Your Sybase home directory is /sybase/XXX/DM. Check the environment variable SYBASE if it is not the one you want!
Using locale name "C.utf8" defined in environment variable LC_ALL
Locale name "C.utf8" doesn't exist in your /sybase/XXX/DM/locales/locales.dat file



  • SAP Adaptive Server Enterprise(ASE) 16.0
  • SAP Replication Server(SRS) 16.0


SAP Adaptive Server Enterprise 16.0 ; SAP Replication Server 16.0


hadr, standby, COMP , KBA , BC-SYB-REP-SAP , Replication with SAP Suite / SAP BW , BC-SYB-REP , Sybase Replication Server (standalone) , 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.