Symptom
When you try to enable system replication via command "hdbnsutil -sr_enable", it failed with the error similar as below.
error: system replication port could not be opened;port=40402 opened=0 secure port=40406 opened=0,detail=exception 1: no.2111000 (TrexNet/Responder.cpp:847) TID: 14760
Generic TrexNet runtime error; $INFO$=not all listeners could be started
And you notice similar information in nameserver trace as below.
[49106]{-1}[-1/-1] 2024-04-20 16:32:12.889215 e Stream NetworkAddress.cpp(01064) : socket info for 127.0.0.1/40406_tcp: [ 380: 0100007F:9DD6 0100007F:76E8 01 00000000:00000000 02:0000075D 00000000 32004 0 796497 2 0000000000000000 20 4 0 10 25 ]
[49106]{-1}[-1/-1] 2024-04-20 16:32:12.921847 e Stream NetworkChannel.cpp(00609) : [b2542afea0580139,127.0.0.1:40406,-,TRN,0] Cannot bind to a local address: tcp port 40406 on 127.0.0.1 => socket[796497], user ""sapadm:32004", process "/hana/shared/SAP/exe/linuxx86_64/HDB_2.00.074.00.1698716871_25851b010aad7f7fe786ba6a47278e501485b3de/hdbxsengine:19884", port blocked due to state TCP_ESTABLISHED
[49106]{-1}[-1/-1] 2024-04-20 16:32:12.921975 e commlib commlibImpl.cpp(00984) : ERROR/Exception: comm::listen to Host: 127.0.0.1, port: 40406, Error: exception 1: no.2110008 (Basis/IO/Stream/impl/NetworkChannel.cpp:1159) TID: 49106
Error address in use: $msg$, rc=98: Address already in use; $[1]$=NetworkChannelBase::bindLocal. bind failed; $Context$=[b2542afea0580139,127.0.0.1:40406,-,TRN,0]; $channel$={<NetworkChannelBase>={this=140542949152520, fd=115, refCnt=1, local=127.0.0.1/40406_tcp, remote=(invalid), state=New, pending=[----]}}; $[2]$=tcp port 40406 on 127.0.0.1 => socket[796497], user ""sapadm:32004", process "/hana/shared/SAP/exe/linuxx86_64/HDB_2.00.074.00.1698716871_25851b010aad7f7fe786ba6a47278e501485b3de/hdbxsengine:19884", port blocked due to state TCP_ESTABLISHED
"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 1.0
- SAP HANA PLATFORM 2.0
Product
Keywords
port, ip_local_reserved_ports, not all listeners could be started, port blocked , KBA , HAN-DB-HA , SAP HANA High Availability (System Replication, DR, etc.) , 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