Symptom
- System replication stops working after update of cluster resource agent to SAPHanaSR-0.162.2
- Primary site does not respond with very high CPU utilization by nameserver
- Find the error messages below in nameserver trace
YYYY-MM-DD HH:MI:SS e ha_dr_provider PythonProxyImpl.cpp(01180) : SAPHanaSR/SAPHanaSR:srConnectionChanged() failed with python error: global name 'FileNotFoundError' is not defined File "/usr/share/SAPHanaSR/SAPHanaSR.py", line 82, in srConnectionChanged except FileNotFoundError:
or similarly
YYYY-MM-DD HH:MI:SS i ha_dr_provider PythonProxyImpl.cpp(01096) : calling HA/DR provider SAPHanaSR.hookDRConnectionChanged(hostname=xxxx, port=30001, volume=1, service_name=nameserver, database=SYSTEMDB, status=12, database_status=12, system_status=11, timestamp=2024-02-17T09:44:55.853765-06:00, is_in_sync=0, reason=Starting, siteName=xxxx)
YYYY-MM-DD HH:MI:SS i ha_dr_SAPHanaSR SAPHanaSR.py(00044) : SAPHanaSR.srConnectionChanged method called with Dict={'status': 12, 'is_in_sync': False, 'timestamp': '2024-02-17T09:44:55.853765-06:00', 'database': 'SYSTEMDB', 'siteName': 'xxxx', 'service_name': 'nameserver', 'hostname': 'xxxx', 'volume': 1, 'system_status': 11, 'reason': 'Starting', 'database_status': 12, 'port': '30001'}
YYYY-MM-DD HH:MI:SS i ha_dr_SAPHanaSR SAPHanaSR.py(00054) : SAPHanaSR SAPHanaSR.srConnectionChanged mySystemStatus=11 mySID=XXX myInSync=False myReason=Starting
YYYY-MM-DD HH:MI:SS i ha_dr_SAPHanaSR SAPHanaSR.py(00074) : SAPHanaSR.srConnectionChanged() CALLING CRM: <sudo /usr/sbin/crm_attribute -n hana_xxx_site_srHook_xxxx -v SFAIL -t crm_config -s SAPHanaSR> rc=256
YYYY-MM-DD HH:MI:SS i ha_dr_SAPHanaSR SAPHanaSR.py(00090) : SAPHanaSR.srConnectionChanged() sending attribute to the cluster failed - using local file as fallback
YYYY-MM-DD HH:MI:SS e ha_dr_provider PythonProxyImpl.cpp(01156) : SAPHanaSR/SAPHanaSR:srConnectionChanged() failed with python error: 'encoding' is an invalid keyword argument for this function
SAPHanaSR.py(95): with open(fallback_stage_file_name, "w", encoding='utf-8') as fallbackFileObject:
YYYY-MM-DD HH:MI:SS e sr_nameserver DRClient.cpp(01090) : Could not send drConnectionChangedAndBlock event to HA/DR Provider. Retry in 5 seconds.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Read more...
Environment
- SAP HANA Platform Edition 2.0
- SUSE Linux Enterprise Server 15
Product
Keywords
replication not working, Cluster Resource Agent, SAPHanaSR, 0.162.2, srConnectionChanged, Python 2, Python 3 , KBA , HAN-DB-HA , SAP HANA High Availability (System Replication, DR, etc.) , HAN-DB , SAP HANA Database , BC-OP-LNX-SUSE , SUSE Linux , 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.
SAP Knowledge Base Article - Preview