Skip to Content
avatar image
Former Member

tRFC error 'Error when opening RFC connection (CPIC-CALL:

Hi All,

We are facing ine issue in daily P2P load from SRM system to BW system. Many tRFCs are getting stuck red with message "Error when opening RFC connection". In SM21; we can see below error logs:

RD                                       Q0    I   Operating system call recv failed (error no. 104 )

RD                                       Q0    R Call of function GwRead failed, RC: -006

DIA  016 100 ALEREMOTE                E0  0 New System Log File Started with Number 18

DIA  016 100 ALEREMOTE                R4  9 Communication error, CPIC return code 017, SAP return code 239

DIA  016 100 ALEREMOTE                R6  4 > CPI-C function: CMINIT(SAP)

When I checked the RFC connection from SRM to BW system. It is behaving strangely. In 3,4 connections tests. It works fine. Then fails for next two with SAP gateway communication error. The local gateway is running. But sometimes it gives same error in SM58 that Local gateway not running. Below is the gateway trace

Fri Sep  7 04:14:41 2012
***LOG Q0I=> NiIRead: P=3.156.17.106:3300; L=3.156.9.64:36425: recv (104: Connection reset by peer) [nixxi.cpp 5087]
*** ERROR => NiIRead: SiRecv failed for hdl 129/sock 59
    (SI_ECONN_BROKEN/104; I4; ST; P=3.156.17.106:3300; L=3.156.9.64:36425) [nixxi.cpp    5087]

*****************************************************************************
*
*  LOCATION    SAP-Gateway on host ushaplp923la.nbcuni.ge.com / sapgw00
*  ERROR       read from SAP gateway failed
*
*  TIME        Fri Sep  7 04:14:41 2012
*  RELEASE     720
*  COMPONENT   SAP-Gateway
*  VERSION     2
*  RC          239
*  MODULE      gwdp.c
*  LINE        4686
*  DETAIL      connection to gateway on host 3.156.17.106 / 3300 broken
*  COUNTER     8954
*
*****************************************************************************

***LOG Q0R=> GwReadFromRemGw, GwRead ( GwRead-006) [gwdp.c       4713]

The temporary behaviour of problem is strange. The RFC starts working fine always once teh load is finished. No more errors in SM21 as well.

Could you please help me on this issue.

Thank You

Varun

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Sep 07, 2012 at 03:13 PM

    Hello Varun,

    Can you add service file entry at windows on both servers

    example : sapms<SID>   36xx/txp

    and try again.

    Thanks

    Yogesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Paul Power

      Hi All,

      We struggled a lot while going back to again and again to netwrok team and they kept on confirming that everything within network is fine; there is some problem within SAP.

      So we did not go through all steps of Paul Power's suggestion note # 500235 and left with few initial steps.

      While going through that note again; we ran section 3B of the note bothways. Earlier we had run niping with server on SRM and client on BI system. This time we ran it reverse and everytime it got failed. Which was not the case with normal ping.

      So it confirmed us a netwrok issue. Though network team could not resolve that. But we worked into that direction with them further and got to know that the IP address series of SRM(LINUX) system is different from all other systems (On Sun OS). But it had an additional IP address series same as other systems lying unused. We used that IP in niping and it worked fine. Later we added IP to RFCs and it resolved the problem.

      We will add it further to DNS to make RFC load balanced once again.

      Thanks all for providing your inputs on this issue and helping us resolve.

      Regards

      Varun

  • avatar image
    Former Member
    Sep 10, 2012 at 04:48 PM

    We also faced the simlar issue some days back. it was due to max no of gateways exceeded , so we increase the value. Just try this it may work.

    Thanks,
    Shashi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 07, 2012 at 01:45 PM

    Try to check Note 1519484 - How to analyze network disconnections shown in system log (BC transaction SM21)

    This behavior may be due to many reasons: network, firewall activity, OS settings, etc. This issue required more investigation. At first read carfully note above

    Regards

    Roman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 10, 2012 at 04:34 PM

    Hi Varun,

    As per your earlier statements it seems the RFC connection behaves abnormally when the load is running. And also you said the SM59 -->  RFC destination --> connection test fails intermittently.

    Maybe a throughput issue, in your BW system SM21 do you find any error message related to CPIC or gw ?

    What are the parameter values for max gw or CPIC ?

    Transaction SMGW -> Goto -> Parameters in both the systems .

    Thanks,

    Samik

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Samik,

      Yes; we find gateway error in corresponding BW system which points to network error.

      ALEREMOTE                R4  9 Communication error, CPIC return code 020, SAP return code 223

      ALEREMOTE                R5  A > Conversation ID: 75652025

      ALEREMOTE                R6  4 > CPI-C function: CMSEND(SAP)

      GW parameters in BW System:

      gw/max_sleep 20 gw/max_conn 2000 gw/conn_disconnect 900 gw/conn_pending 60 gw/gw_disconnect 1800 gw/req_stack_size 30 gw/max_sockets 2048 gw/cpic_timeout 20 gw/accept_timeout 60 gw/frag_timeout 120 gw/deallocate_timeout 600 gw/reg_timeout 60 gw/reg_lb_level 1 gw/reg_lb_default 20 gw/sec_info /usr/sap/UBP/D00/data/secinfo gw/reg_info /usr/sap/UBP/D00/data/reginfo gw/reg_no_conn_info 1 gw/prxy_info /usr/sap/UBP/D00/data/prxyinfo gw/startup /usr/sap/UBP/D00/data/gwstartup gw/stat 0 gw/max_sys 2000 gw/max_overflow_size 25000000 gw/max_overflow_usage 20 gw/keepalive 300 gw/reg_keepalive 300 gw/compatibility 0 gw/monitor 1 gw/netstat_once 1 gw/close_routes 120 gw/timeout 0 gw/use_udp 0 gw/internal_timeout 0 gw/nitrace 0 gw/local_addr 0.0.0.0 gw/accept_remote_trace_level 1 gw/export_trace_level 0 gw/external_trace_level 0 gw/resolve_timeout 2000 is/use_uds 1 rdisp/max_gateways 100 rdisp/max_comm_entries 2000 rdisp/sna_gateway usushapsp693 rdisp/sna_gw_service sapgw00 gw/rem_start SSH_SHELL gw/remsh /usr/bin/ssh gw/ssh /usr/bin/ssh exe/gwrd /usr/sap/UBP/SYS/exe/run/gwrd snc/enable 1 snc/gssapi_lib /usr/sap/UBP/SYS/exe/run/libsapcrypto.so snc/permit_insecure_start 1 Attributes Release 720 Release no 7200 internal version 2 start time Sun Aug 19 11:29:40 2012 build time Mar 20 2012 04:27:31 build with Unicode TRUE build with Threads FALSE gateway hostname ushapsp701lc.nbcuni.ge.com gateway service sapgw00 overflow_size_limit 5000000 overflow_use 0 trace level 1 trace level external programs 0 PID Gateway Reader 9196

      GW parameters in SRM system:

      gw/max_sleep 20 gw/max_conn 2000 gw/conn_disconnect 900 gw/conn_pending 60 gw/gw_disconnect 1800 gw/req_stack_size 30 gw/max_sockets 2048 gw/cpic_timeout 20 gw/accept_timeout 60 gw/frag_timeout 120 gw/deallocate_timeout 600 gw/reg_timeout 60 gw/reg_lb_level 1 gw/reg_lb_default 20 gw/sec_info /usr/sap/UPP/D00/data/secinfo gw/reg_info /usr/sap/UPP/D00/data/reginfo gw/reg_no_conn_info 1 gw/prxy_info /usr/sap/UPP/D00/data/prxyinfo gw/startup /usr/sap/UPP/D00/data/gwstartup gw/stat 0 gw/max_sys 2000 gw/max_overflow_size 25000000 gw/max_overflow_usage 20 gw/keepalive 300 gw/reg_keepalive 300 gw/compatibility 0 gw/monitor 1 gw/netstat_once 1 gw/close_routes 120 gw/timeout 0 gw/use_udp 0 gw/internal_timeout 0 gw/nitrace 0 gw/local_addr 0.0.0.0 gw/accept_remote_trace_level 1 gw/export_trace_level 0 gw/external_trace_level 0 gw/resolve_timeout 2000 is/use_uds 1 rdisp/max_gateways 1000 rdisp/max_comm_entries 2000 gw/rem_start SSH_SHELL gw/remsh /usr/bin/rsh gw/ssh /usr/bin/ssh exe/gwrd /usr/sap/UPP/D00/exe/gwrd snc/enable 0 snc/permit_insecure_start 0 Attributes Release 720 Release no 7200 internal version 2 start time Tue Aug 21 05:24:51 2012 build time Mar 20 2012 00:49:23 build with Unicode TRUE build with Threads FALSE gateway hostname ushaplp923ld.nbcuni.ge.com gateway service sapgw00 overflow_size_limit 5000000 overflow_use 0 trace level 1 trace level external programs 0 PID Gateway Reader 25291

      SRM system is on LINUX and BW is on Sun OS> We are not getting any max number of gateway connetions like issue

      Thanks,

      Varun

  • avatar image
    Former Member
    Sep 29, 2015 at 01:11 PM

    Hi,

    I was getting the same error today as well, then instead of using the hostname for the system i was adding, i used the IP address. The next time i tried, it was successful. Hope this is helpful.

    regards,

    Vimbai

    Add comment
    10|10000 characters needed characters exceeded