SAP Knowledge Base Article - Preview

2915259 - SM51 server switching is not possible

Symptom

  • Server switch is not possible in SM51.


You might get the error message "Communication error with server <instance name>: Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT', communication rc: CM_PRODUCT_SPECIFIC_ERROR (cmRc=20)" or still keep in current instance when trying to switch to another instance.

Testing "Internal connections" RFC to another instance fails with a similar error to:

  1. Error Details Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT', communication r
    Error Details ERROR: internal error (this retcode should be handled by caller of NI-layer)
    Error Details LOCATION: SAP-Gateway on host <source address>
    Error Details DETAIL: NiISSLStartOnClientConn: parameter invalid (pHdl->mType != NI_CONNECTED)Error Details COMPONENT: NI (network interface)

    While in the gateway trace file (dev_rd), we can see connectivity errors like below examples:

    ----------- Example 1:

    ***LOG Q0I=> NiPConnect2: [target host]:[dynamic port]: connect (10060: WSAETIMEDOUT: Connection timed out) [D:/depot/bas/753_REL/src/base/ni/nixxi.cpp 3449]
    *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl <xxx>/sock <xxx>
        (SI_ECONN_REFUSE/10060; I4; ST;  [target host]:[dynamic port]) [nixxi.cpp    3449]
    *** WARNING => NiISSLStartOnClientConn: parameter invalid (pHdl->mType != NI_CONNECTED) [nixxi.cpp    10797]
    *** ERROR => GwSSLConnectPending: NiBufSSLStartOnClientConn failed (NIEINVAL) [gwxxssl.c    450]
    GwTraceHdlInfo: hdl 170

    (Note: From the pure network perspective, connection error code 10060, implies that the connection to the target address has a timeout error because this is blocked by the firewall)


    ----------- Example 2:

    *  LOCATION    SAP-Gateway on host <source address>
    *  ERROR       timeout during allocate
    NiIConnect: state of hdl <xx> NI_CONN_WAIT
    GwSSLConnect: GwConnect(<target host,dynamic port>) (rc=NIECONN_PENDING)
    GwIConnectWithRemGw: timeout during GwIAsyncConn


    ----------- Example 3:

    ***LOG Q0I=> NiPConnect2: [IP address of remote instance]:[Port number]: connect (111: Connection refused) [/bas/753_REL/src/base/ni/nixxi.cpp 3454]
    *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 241/sock 48
        (SI_ECONN_REFUSE/111; I4; ST; [IP address of remote instance]:[Port number] [nixxi.cpp 3454]
    *** WARNING => NiISSLStartOnClientConn: parameter invalid (pHdl->mType != NI_CONNECTED) [nixxi.cpp 10809]
    *** ERROR => GwSSLConnectPending: NiBufSSLStartOnClientConn failed (NIEINVAL) [gwxxssl.c 450]

  2. Logon Connection Error
    Error Details Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT', communication r
    Error Details ERROR: hostname 'NiHLGetNodeAddr' unknown
    Error Details LOCATION: SAP-Gateway on host <source hostname / sapgw<instance name>
    Error Details DETAIL: hostname empty

    When running "niping -v -H <target hostname> from the source host you get:

    Lookup of hostname: <target hostname>     (NiHostToAddr)

    > IP-Addr.: <target IP address>
    Lookup of IP-Addr.: <target IP address> (NiAddrToHost)
    > Hostname:

  3. No error message, but instance still keeps in current instance(for example instance A), switching to another instance B is not working, following trace can be seen in Gateway trace of instance A:

    GwPrintMyHostAddr: my host addresses are :
    NiHLGetHostName: found address <local IP address> in cache (valid-address/name)
    NiIGetHostName: addr <local IP address> = hostname <hostname of instance A>
      1 : [IP address of instance A] <hostname of instance A> (HOSTNAME)
    NiHLGetHostName: found address 127.0.0.1 in cache (valid-address/name)
    NiHLGetHostName: retrying to get hostname for '127.0.0.1'
    NiHLGetHostName: got hostname for address '127.0.0.1' from operating system
    NiIGetHostName: addr 127.0.0.1 = hostname 'localhost'
      2 : [127.0.0.1] localhost (LOCALHOST)
    NiHLGetHostName: found address <IP address of instance B> in cache (valid-address/name)
    ...
      3 : [IP address of instance B] <hostname of instance B> (ALTERNATIVE)
    NiHLGetHostName: found address <IP address of instance B> in cache (valid-address/name)
    NiIGetHostName: addr IP address of instance B = hostname <hostname of instance B>
      


Read more...

Environment

  • SAP NetWeaver ABAP based product
  • SAP_BASIS Release 7.40 SP8/higher and minimal kernel version 742

Product

SAP NetWeaver all versions

Keywords

RFC, logon, remote, gateway error, GW_TIMEOUT, Time limit exceeded during connection setup, SSL, transaction termination 14, SM51, CM_PRODUCT_SPECIFIC_ERROR, RFC connection test failed , KBA , BC-CST-GW , Gateway/CPIC , BC-MID-RFC , RFC , BC-CST , Client/Server Technology , BC-SEC , Security - Read KBA 2985997 for subcomponents , 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.