cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to SAP gateway failed

Former Member
0 Kudos

I have a PI 7.4 Java only system with the SCS on server cnumw1cq and Java instance on server cnumw1aq. There is a gateway on cnumw1cq, but not server cnumw1aq.

I'm seeing these errors on server cnumw1aq

Error> occurred  >Fri Aug 29 16:46:26,140<    RfcException: [null]

    message: Connect to SAP gateway failed

    Connection parameters: TPNAME=SLD_NUC GWHOST=cnumw1aq GWSERV=sapgw05

ERROR       partner '172.20.111.127:sapgw05' not reached

TIME        Fri Aug 29 16:46:26 2014

RELEASE     741

COMPONENT   NI (network interface)

VERSION     40

RC          -10

MODULE      /bas/741_REL/src/base/ni/nixxi.cpp

LINE        3325

DETAIL      NiPConnect2: 172.20.111.127:3305

SYSTEM CALL connect

ERRNO       111

ERRNO TEXT  Connection refused

COUNTER     20

    Return code: RFC_FAILURE(1)

    error group: 102

    key: RFC_ERROR_COMMUNICATION

There is no gateway on cnumw1aq which is why this error is occurring I assume. Not sure where the config for this is coming from. Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Doyle,

The gateway is running on SCS instance, change is gateway host in SLD_NUC rfc to SCS host, and test rfc again.

Regards

Former Member
0 Kudos

Agreed, but where would those entries be? I dont see them in Destinations. Or anywhere inside SLD config page.

divyanshu_srivastava3
Active Contributor
0 Kudos

Check SLD data supplier and SLD>administration->settings->parameters -> data supplier.

Regards

Answers (3)

Answers (3)

Former Member
0 Kudos

I found where the config lives

SLD UI → Administration → Profile → Section= datasupplier
Parameters=GatewayHost/GatewayService

I changed that to point to the SCS host. Now I get a diff error in sld log:

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Doyle,

I think you can use parameter gw/acl_mode  = 0 to allow the registration.

Regards,

Divyanshu

Former Member
0 Kudos

Thanks!

Reagan
Advisor
Advisor
0 Kudos

Check the JCO RFC's created in NWA.

Regards

RB

gabriella_kiss
Participant
0 Kudos

Hi,

The meaning  of  "'172.20.111.127:sapgw05' not reached /  Connection refused" is, that  in the port

the  sapgw05 service is not running.

Possible reasons:

  -missconfiguration of SLD_NUC (it was already advised to check sld data supplier and JCo configuration)

  -it is configured well, but the there is some issue with gateway. The gateway is not in healthy running state.

To double check Jco configuration problems please check if sld.log contains any failure.

Further check under sld>Adminstration->Details->Data Suppliers which Gateway appears there and

in which state are the Jco RFC threads.

Something similar is displayed:

RFC server threads:
[UP] NUC:localhost_sapgw00_SLD_NUC_772777582
[UP] UC :localhost_sapgw00_SLD_UC_1609207505
[UP] NUC:localhost_sapgw00_SLD_NUC_822790368
[UP] UC :localhost_sapgw00_SLD_UC_810227306

E.g: these RFC threads are in [UP] state.

Gabriella Kiss

Former Member
0 Kudos

Gabriella

Thanks, I think your response is helpful as I finally see some existence of the mis configuration

seems the gateway host is incorrect here, but I dont see where I can change it. I do not have any entries in Jco RFC. Thanks

gabriella_kiss
Participant
0 Kudos

Hello,

1. '172.20.111.127:sapgw05'  is the same as cnumw1aq hostname?

2. To find out, why JCO/RFC server threads are down, you could do:

 

  1. Change the SLD log level to "DEBUG".

  (SLD UI -> Administration -> Log -> Current Log Level: Debug ->

  -> Set Permanently)

  2. Restart the SLD (SLD UI -> Administration -> Stop & Start server)

  3. Wait until the WARNING "Stopping all JCO/RFC servers" appears

  in the SLD log (SLD UI -> Administration -> Log).

  4. Reset SLD log level to the initial value

Than check for errors/attach sld.log.

3.

Maybe you can save the above steps, when you check for the gateway, if there is a reg_info file.

Sometimes this error message is written, when the registartion in the gateway (cnumw1aq) for this TP program  (SLD_UC) is not allowed for this host (in this case the sld host,==>on which host is sld).

When it is so, than reg_info file should be maintained accordingly.

Gabriella

Former Member
0 Kudos

Yes,  172.20.111.127:sapgw05'  is the same as cnumw1aq

I changed the SLD Log and I see the error, pretty much same as I reported before, I dont see anything that gives further info:

#455 08/31/2014 09:31:09.485 [JCO.ServerThread-9] DEBUG com.sap.lcr.sagent.rfc.SAPProxyServer: Exception occurred in JCO server UC:cnumw1aq_sapgw05_SLD_UC_1913142551, thread JCO.ServerThread-10.

Thrown:

com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sun Aug 31 09:31:09 CDT 2014.

This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 128 seconds.

Could not start server: Connect to SAP gateway failed

    Connection parameters: TPNAME=SLD_NUC GWHOST=cnumw1aq GWSERV=sapgw05

Former Member
0 Kudos

Dear

Do you have any entry like below in the D:\WINDOWS\system32\drivers\etc\services?

sapgw00     3300/tcp     # SAP System Gateway Port

Have you given the entries such as Gateway host and Gateway port in your RFC (TCP/IP ) Connection.

The port number should be sapgw<inst.no> or 33<inst.no>.

check SAPOSS connectivity

Regards