Skip to Content
0
Dec 23, 2021 at 01:26 AM

NiRawConnect failed in plugin_fopen () cannot be resolved.

435 Views

FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen () cannot be resolved.

I tried the following and all got the same result.

Is there a solution?

Is it possible that the host name is incorrect?

sapcontrol -prot NI_HTTP -nr 00 -function Start
sapcontrol -prot NI_HTTP -nr 00 -host sapci -function Start
→ FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()<br>
sapcontrol -prot NI_HTTP -nr 00 -function GetInstanceProperties -debug

[Thr 140208756782912] NiIGetHostName: addr 127.0.0.1 = hostname 'localhost'
[Thr 140208756782912] NiPConnect: SiConnect failed for hdl 1/sock 4
[Thr 140208756782912]     (SI_ECONN_REFUSE/2; UD; ST; /tmp/.sapstream50013)
[Thr 140208756782912] NiIInitSocket: set default settings for new hdl 1/sock 4 (I4; ST)
[Thr 140208756782912] BufSize: Min 0 Rcv 87380 Snd 16384
[Thr 140208756782912] NiIBlockMode: set blockmode for hdl 1 FALSE
[Thr 140208756782912] NiThrInit enter
[Thr 140208756782912] NiIConnectSocket: hdl 1 is connecting to 127.0.0.1:50013 (timeout=-1)
[Thr 140208756782912] SiPeekPendConn: connection of sock 4 broken (111-Connection refused)
[Thr 140208756782912] NiHLGetHostName: found address 127.0.0.1 in cache (valid-address/name)
[Thr 140208756782912] NiIGetHostName: addr 127.0.0.1 = hostname 'localhost'
[Thr 140208756782912] Thu Dec 23 10:14:39 2021
[Thr 140208756782912] ***LOG Q0I=> NiPConnect2: 127.0.0.1:50013: connect (111: Connection refused) [/bas/781_REL/src/base/ni/nixxi.cpp 3493]
[Thr 140208756782912] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 4
    (SI_ECONN_REFUSE/111; I4; ST; 127.0.0.1:50013) [nixxi.cpp    3493]
[Thr 140208756782912] NiICloseHandle: closing initial hdl 1

23.12.2021 10:14:39
GetInstanceProperties
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()<br>

after kill process sapstartsrv

apci:ecdadm 95> ps aux | grep sapstartsrv
sapadm      1528  0.0  0.9 548440 72936 ?        Ssl  10:02   0:00 /usr/sap/hostctrl/exe/sapstartsrv pf=/usr/sap/hostctrl/exe/host_profile -D
ecdadm      3859  0.9  1.0 689812 82940 ?        Ssl  10:19   0:00 /usr/sap/ECD/D12/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_D12_sapci -D -u ecdadm
ecdadm      3874  0.2  1.0 689884 84228 ?        Ssl  10:19   0:00 /usr/sap/ECD/ASCS10/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_ASCS10_sapci -D -u ecdadm
ecdadm      3983  0.0  0.0  12108  1072 pts/0    S+   10:20   0:00 grep --color=auto sapstartsrv

kill -9 3859 3874

then

/usr/sap/ECD/D12/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_D12_sapci -D -u ecdadm
/usr/sap/ECD/ASCS10/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_ASCS10_sapci -D -u ecdadm

then I tried bottom
/usr/sap/ECD/D12/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_D12_sapci -D -u ecdadm
/usr/sap/ECD/ASCS10/exe/sapstartsrv pf=/usr/sap/ECD/SYS/profile/ECD_ASCS10_sapci -D -u ecdadm


then

sapcontrol -prot NI_HTTP -nr 00 -host sapci -function GetInstanceProperties -debug

sapci:ecdadm 94> sapcontrol -prot NI_HTTP -nr 00 -host sapci -function GetInstanceProperties -debug
[Thr 140013559863104] Thu Dec 23 10:19:53 2021
[Thr 140013559863104] NiIInit: max number of open files per process: 65536
[Thr 140013559863104] NiIInit: allocated nitab (no items: 2048, item size: 288, total: 589824)
[Thr 140013559863104] NiIInit: allocated nitab_free FtGetAdmSize = 32824
[Thr 140013559863104] NiIHSBufInit: initialize hostname buffer (IPv4)
[Thr 140013559863104] NiHLInit: alloc host buf (100 entries)
[Thr 140013559863104] NiSrvLInit: alloc serv bufs (100 entries)
[Thr 140013559863104] NiIInit: default selset type is SI_SEL_TYPE_EPOLL
[Thr 140013559863104] NiISapServNameCheck: sapctrl00 not supported (len 9)
[Thr 140013559863104] NiPGetServInfoError: func NiPGetServByName; sys getaddrinfo; log 0; isErr 1; errorNo -8
[Thr 140013559863104] NiSrvLGetServNo: service name 'sapctrl00' not found by operating system
[Thr 140013559863104] NiInit3: NI already initialized (init=1;cur=2048)
[Thr 140013559863104] NiHLGetNodeAddr: get addr for hostname 'sapci' (mode=0)
[Thr 140013559863104] addrinfo of 'sapci':
[Thr 140013559863104] 0: 10.0.1.143:0 'sapci.local' RAW (2-2-3-0-16)
[Thr 140013559863104] NiHLGetNodeAddr: got address for hostname 'sapci' from operating system
[Thr 140013559863104] NiIGetNodeAddr: hostname 'sapci' = addr 10.0.1.143
[Thr 140013559863104] NiIGetServNo: servicename '50013' = port 50013
[Thr 140013559863104] NiICreateHandle: hdl 1 state NI_INITIAL_CON
[Thr 140013559863104] NiIInitSocket: set default settings for new hdl 1/sock 4 (UD; ST)
[Thr 140013559863104] NiIBlockMode: set blockmode for hdl 1 FALSE
[Thr 140013559863104] NiITraceByteOrder: CPU byte order: little endian, reverse network, low val .. high val
[Thr 140013559863104] NiIConnectSocket: hdl 1 is connecting to /tmp/.sapstream50013 (timeout=-1)
[Thr 140013559863104] NiPConnect: SiConnect failed for hdl 1/sock 4
[Thr 140013559863104]     (SI_ECONN_REFUSE/2; UD; ST; /tmp/.sapstream50013)
[Thr 140013559863104] NiIInitSocket: set default settings for new hdl 1/sock 4 (I4; ST)
[Thr 140013559863104] BufSize: Min 0 Rcv 87380 Snd 16384
[Thr 140013559863104] NiIBlockMode: set blockmode for hdl 1 FALSE
[Thr 140013559863104] NiThrInit enter
[Thr 140013559863104] NiIConnectSocket: hdl 1 is connecting to 10.0.1.143:50013 (timeout=-1)
[Thr 140013559863104] SiPeekPendConn: connection of sock 4 broken (111-Connection refused)
[Thr 140013559863104] ***LOG Q0I=> NiPConnect2: 10.0.1.143:50013: connect (111: Connection refused) [/bas/781_REL/src/base/ni/nixxi.cpp 3493]
[Thr 140013559863104] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 4
    (SI_ECONN_REFUSE/111; I4; ST; 10.0.1.143:50013) [nixxi.cpp    3493]
[Thr 140013559863104] NiICloseHandle: closing initial hdl 1