SAP Knowledge Base Article - Preview

3638844 - replication agent startup failure during replication setup in sap ase 16.0 environment

Symptom

  • Errors observed during the "Setup Replication" task while configuring the replication setup for the database of the Solution Manager JAVA system.
  • The Replication Agent for the database 'master' could not start due to improper shutdown.
  • Error messages in logs:
  • "Failed to start the Replication Agent thread for database 'master'."
  • "A Rep Agent Thread for database 'master' (dbid=1) is being stopped."
  • "Replication Agent Thread terminated abnormally with error (major 92, minor 61)."
  • "ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed."
  • "Failed to connect to Replication Server. Please check the Replication Server, username, and password specified to sp_config_rep_agent."

 

setuphadr log:
###
...
2025-06-26 15:25:41     Setting up replication on 'standby' host for local database 'master'..........Fail
TASKNAME                                TYPE                        VALUE                                                                                                                                                                  
--------------------------------------- --------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Status                                  Start Time                  Thu Jun 26 15:10:54 IST 2025                                                                                                                                           
...                                                                                                                                       
AddASEDatabaseForDisasterRecovery       Task State                  Error                                                                                                                                                                  
AddASEDatabaseForDisasterRecovery       Short Description           Add an ASE database to the Replication System for Disaster Recovery support.                                                                                           
AddASEDatabaseForDisasterRecovery       Long Description            Adding database 'master' to the remote replication server on host 'psolsjp.iscodom.com'.                                                                               
...                                                                                                                             
AddRemoteASEDatabaseForDisasterRecoveryTask State                  Error                                                                                                                                                                  
AddRemoteASEDatabaseForDisasterRecoveryShort Description           Executes the initialization utility named rs_init to create and configure a Replication Server.                                                                        
AddRemoteASEDatabaseForDisasterRecoveryLong Description            Executing the rs_init utility                                                                                                                                          
AddRemoteASEDatabaseForDisasterRecoveryFailing Command             [/sybase/<SID>/DM/REP-16_0/install/rs_init.sh, -c, utf8, -r, /sybase/.../init/work/tmp_res.rs, -log, /sybase/<SID>/DM/<SID>_REP_PDS/init/work/rs_initLog.001]
AddRemoteASEDatabaseForDisasterRecoveryFailing Command Return Code1                                                                                                                                                                      
AddRemoteASEDatabaseForDisasterRecoveryAdditional Info             More information can be found in the log file from the utility. File name '/sybase/.../init/work/rs_initLog.001'                                        
###

RMA log:
###
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - State - Error
2025-06-26 15:26:01 [ERROR] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Failing Command returned code - 1
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Action - Setting up replication on 'PDS' host for local database 'master'.
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Action - Adding database 'master' to the replication server on host 'hostname'.
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Action - Checking number of rows in table rs_lastcommit for database 'rs_lastcommit'.
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Action - Executing the rs_init utility
2025-06-26 15:26:01 [INFO ] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Time task ended - Thu Jun 26 15:24:49 IST 2025
2025-06-26 15:26:01 [ERROR] [Setup replication:296][RMA] - [AddRemoteASEDatabaseForDi] - Task Remote Database Replication Setup - Failed performing command - [/sybase/<SID>/DM/REP-16_0/install/rs_init.sh, -c, utf8, -r, /sybase/<SID>/DM/SJP_REP_PDS/init/work/tmp_res.rs, -log, /sybase/<SID>/DM/<SID>_REP_PDS/init/work/rs_initLog.001]
###

rsrsinit log
###
...
2025/06/26 15:24:49 Running task: start the Replication Agent.
2025/06/26 15:24:49 Sending the following SQL command to the server: 'exec
                    sp_start_rep_agent "master" '.
2025/06/26 15:24:49 SQL Server message: msg 9431, level 16, state 0
2025/06/26 15:24:49 WARNING: "A Rep Agent Thread for database 'master' (dbid=1)
                    is being stopped.
                    " 
2025/06/26 15:24:49 SQL Server message: msg 18421, level 16, state 1
2025/06/26 15:24:49 WARNING: "Failed to start the Replication Agent thread for
                    database 'master'." 
2025/06/26 15:24:49 Unable to execute query 'exec sp_start_rep_agent "master" '
                    against server 'PDS'.
2025/06/26 15:24:49 Task failed: start the Replication Agent. Terminating
                    configuration.
2025/06/26 15:24:49 Configuration failed.
2025/06/26 15:24:49 Exiting.

###


Read more...

Environment

Sybase Replication Server 16.0

Product

SAP Adaptive Server Enterprise all versions

Keywords

replication agent, replication setup, sap ase 16.0, replication failure, sp_start_rep_agent, sp_stop_rep_agent, replication thread error, communication error, replication server, replication agent startup failure, replication troubleshooting, ase replication logs, replication agent improper shutdown, replication configuration error , KBA , BC-SYB-REP , Sybase Replication Server (standalone) , 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.