cancel
Showing results for 
Search instead for 
Did you mean: 

JCO_ERROR_SERVER_STARTUP - Error with sender RFC channel

JaySchwendemann
Active Contributor
0 Kudos

Hi all,

we have the following situation:

We use SAP PI for a RFC -> SAP PI -> SOAP scenario.

Once in a while our Basis needs to shut down the sender SAP system. It seems that the sender RFC channel looses registration on Gateway after some time. We get the following errors:

TimeMessage
05.05.13 15:15:18Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 15:15:18 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 15:15:18 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     118 
05.05.13 14:15:18Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 14:15:18 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 14:15:18 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     117 
05.05.13 13:15:17Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 13:15:17 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 13:15:17 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     116 
05.05.13 12:15:16Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 12:15:16 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 12:15:16 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     115 
05.05.13 11:15:15Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 11:15:15 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 11:15:15 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     111 
05.05.13 10:15:14Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 10:15:14 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 10:15:14 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nibuf.cpp LINE        4607 DETAIL      NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO       55 ERRNO TEXT  A connect operation on a socket is not complete. COUNTER     107 
05.05.13 09:14:13Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 09:14:13 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 3600 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 09:14:13 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2833 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       79 ERRNO TEXT  A remote host refused an attempted connect operation. COUNTER     49
05.05.13 08:40:03Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 08:40:03 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 2048 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 08:40:03 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2833 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       79 ERRNO TEXT  A remote host refused an attempted connect operation. COUNTER     48
05.05.13 08:22:57Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 08:22:57 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1024 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 08:22:57 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2833 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       79 ERRNO TEXT  A remote host refused an attempted connect operation. COUNTER     47
05.05.13 08:14:25Verarbeitungsfehler verursacht durch: com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun May 05 08:14:25 CEST 2013. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 512 seconds. Could not start server: Connect to SAP gateway failed    Connection parameters: TPNAME=SAPXI_PRA GWHOST=x.x.x.x GWSERV=sapgw00 ERROR       partner 'x.x.x.x:sapgw00' not reached TIME        Sun May  5 08:14:25 201 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2833 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       79 ERRNO TEXT  A remote host refused an attempted connect operation. COUNTER     46

* I replaced the ip of our gateway host with x.x.x.x

As you can see, PI tries to reconnect, first within a short time frame of 512 seconds (last line), then with 1024 seconds, 2048 seconds and then every 3600 seconds. As our sender SAP system was down a long time, at some point, SAP PI stopped trying (last try was 20130505 15:15:18).

At this point, as soon as the sending SAP system will come available again, the scenario is broken and will not work as communication channel is in erroneous status.

Q1: I know I can fix this by stopping and starting the communication channel when sending SAP system is up, but is there any way to make this more robust like automatically registering on startup of the sender system?

Q2: If not, I probably could specify a longer retry period / higher retry count. How / where would I have to specify this?

Thanks and kind regards

Jens

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Hi Jens - Please check the below SAP note which address your problem

Note 1510793 - RFC Sender Adapter:Global setting of maximum reconnect delay

May be if it is a planned downtime then you can schedule the RFC channel to stop for that duration.

Regards,

Hareesh

JaySchwendemann
Active Contributor
0 Kudos

Great catch. Thanks a heap.

Cheers

Jens

Former Member
0 Kudos

Hi Jens

I face the same error in a newly setup AEX 7.40 environment (single stack), where during the weekend all SAP systems are restarted.

In the old 7.11 environment the reconnect works and the rfc sender channel could reconnect to the SAP sender backend once this is available again.

But in the 7.40 environment the rfc sender channel remains in the errornous state.

The current workaround is to manually stop/start the rfc channe.

I went through the notes 730870, 1510793 and for my understanding the default beaviour should be an automatic retry where the retry delay increases to the max of 3600 seconds (1 hour).

But despite the sender backend system is available again the rfc channel remains in error state. In PI devleoper trace I only see initial error message (monday morning) and no additional errors for the automatic retries.


sender channel settings:

  • gateway runs on PI (localhost)
  • sender backend systems used for RFC metadata


Are there any additional parameters or prerequisites to setup automatic reconnection to gateway?

If I am not completely wrong in dual stack environments ABAP is used for gateway as in single stack newly Java is used. Could this be a reason for the different behaviour?


Any help appreciated.


Best regards

Jochen


Former Member
0 Kudos

Hi guys

issue is solved by changing java parameter of RFC adapter initialRfcClientConnectCheck = false

as mentioned in note 730870 question 20.

hopefully helpful to others

best regards

Jochen

Answers (0)