cancel
Showing results for 
Search instead for 
Did you mean: 

SAP gateway connection failed

Former Member
0 Kudos

Hi All,

Due to restructure in DMZ in our network, IP addr of our R3 server is changed from 172.20.x.x to 192.168.x.x. and the original IP is NATted for connections. We can able to access SAPGUI, but RFCs from this server to other systems is not working. We are not able to remote logon from RFC to this R3 system from other servers, because of same issue.

RFC Error:

Error Details LOCATION: SAP-Gateway on host <sapr3> / sapgw01

Error Details DETAIL: no connect of TP sapdp00 from host <sapbw> after 20 sec

As per the note, Note 148832 - IP address conversion with a firewall, we have added the BW system entry in gw/alternative_hostnames, still its not working.

Because of this issue we are not able to access this R3 server from BW

as source system check failing with error

The following errors occurred in source system RSAR 374

Result of the destination check. Error when opening destination connection RSAR 375

*devrd file:*_

gateway runs with dp version 241000(ext=110000) (@(#) DPLIB-INT-VERSION-241000-UC)

gateway (version=700.2008.06.23)

gw/local_addr : 0.0.0.0

Bind service sapgw01 (socket) to port 3301

GwPrintMyHostAddr: my host addresses are :

1 : [192.168.x.x] <sapr3> (HOSTNAME)

2 : [127.0.0.1] localhost (LOCALHOST)

3 : [172.20.x.x] alternative (ALTERNATIVE)

4 : [172.20.y.y] <sapbw> (ALTERNATIVE)

Full qualified hostname = <sapr3>

DpSysAdmExtCreate: ABAP is active

DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active

Thu Dec 3 10:59:47 2009

      • ERROR => GwRqDpSendTo: no comm_adm entry found (gw=<sapbw> / sapdp00, rq=203, idx=12, conv=27032592, uid=1143, mode=0 [gwdp

*****************************************************************************

  • LOCATION SAP-Gateway on host <sapr3> / sapgw01

  • ERROR COMM_TBL table error

  • TIME Thu Dec 3 10:59:47 2009

  • RELEASE 700

  • COMPONENT SAP-Gateway

  • VERSION 2

  • RC 235

  • MODULE gwdp.c

  • LINE 6065

  • COUNTER 715

*****************************************************************************

Thu Dec 3 12:30:15 2009

      • ERROR => GwHdlRqFromSapWp: no comm_adm entry found [gwdp.c 1427]

      • ERROR => (rq/idx/conv/tid/uid/mode/wp=10/0/37803973/21/1300/0/1) [gwdp.c 1436]

Please let us know what to do to resolve the RFC error

Thanks,

Ramesh

Accepted Solutions (1)

Accepted Solutions (1)

nelis
Active Contributor
0 Kudos

      • ERROR => GwRqDpSendTo: no comm_adm entry found

This may be a program error, check [Note 1358616 - Core dump in gwrd|https://service.sap.com/sap/support/notes/1358616] and see if it applies to your kernel version.

--

Nelis

Answers (2)

Answers (2)

Former Member
0 Kudos

[http://help.sap.com/saphelp_nw04/helpdata/en/d2/296d4353d446758671cb065d6f3b6a/content.htm]

check above it seems

235

COMM_TABLE_ERROR

Error in the administration structure that the gateway shares with the SAP System (communication table).

check your comm table entrys ...

Former Member
0 Kudos

Hi Madhu and all,

Thanks for the reply. we have resolved the issue. On checking network traffic, we came to know that connection is opened one side only. After opening connection from R3 to other servers, RFCs are working fine. We are able to connect from bw to R3.

Thanks,

Ramesh R

anjali_dhingra
Explorer
0 Kudos

Hi Ramesh,

We have exactly same issue after doing migration to a new Datacenter.

Can you explain a bit more what do yo mean opening connection from R3 to other servers?

Which connection is it?

Thanks in Advance!!

Anjali

Former Member
0 Kudos

Hi Ramesh,

Did you check note 1298386 GW: Termination with signal 11 in function GwRqDpSendTo

Cheers......,

Raghu

nelis
Active Contributor
0 Kudos

Did you check note 1298386 GW: Termination with signal 11 in function GwRqDpSendTo

That note applies to kernel 6.40 not to 7.00

gateway (version=700.2008.06.23)

--

Nelis

Former Member
0 Kudos

Hi All,

Thanks for the replies. Checked the notes. our sapr3 kernel is already on 221 version which is now in DMZ. Problem started after sapr3 server is moved to DMZ. I guess it is not working because of this NATted ip addr issue. Please let us know what values need to be added in gw/alternative_hostnames. I have added NATted IP and sapbw ip. Is there any other settings required.

Thanks,

Ramesh R

Former Member
0 Kudos

Following will list increased trace :

NiSelISelectInt: 1 handles selected (0 buffered)

main: NiSelNext (ni_hdl=10, read=1, write=0, connect=0, hdl_info=0x100b50b40)

request from R3_WORKPROCESS

NiIRead: hdl 10 received data (rcd=28,pac=2,MESG_IO)

GwReadSapWpRq: request: request from sap wp 1

-IN- tid 32 uid 1283 mode 0

-IN- appc_ca_blk 7 len 1697 rq_id 0

-IN- wait_f_answ 1 cmd 0

GwReadSapWpRq2: wp 1 waits for data

Adresse Offset Appc-Data to Gateway

-


0xffffffff73966230 000000 06ca0200 0503ffff 00000100 00000000 |................|

0xffffffff73966240 000016 40ffffff ff000000 00000000 00008704 |@...............|

0xffffffff73966250 000032 00000000 00000000 00000000 00000000 |................|

0xffffffff73966260 000048 54443143 4c4e5430 3137322e 32302e34 |TD1CLNT0172.20.4|

0xffffffff73966270 000064 73617064 70303020 49020000 0004ffff |sapdp00 I.......|

-


DpGetCpicCommIdx: found index 4 via appc_hdr

found comm entry 4 (tid/uid/mode/conv_id/a_r: 32/1283/0/ /0)

GwInitLocCommAdmEntry: init gw_comm_adm entry 4

GwListRemove: elem 4 not in comm_write_list

GwListRemove: elem 4 not in comm_wait_list

GwInitLocCommAdmEntry: 0 waiting writes to rem gw

GwSearch: connect to myself

GwFoundSysAddr: found addr

GwFoundWaitingAddr: found addr

GwSendToRemGw: request for myself (len=1697)

GwGetMemory: allocated 0x100ceb140 (len=1885)

GwGetMemory: act_overflow_size = 1885 (+ 1885)

REL APPC ca_blk 7

GwSendToRemGw: comp req = adr/total/alloc/hdr/param_hdr/data 0x100ceb140/1885/1885/80/295/1322

IN:

---

ReqType : CPIC SysIdx : 0 ReqLen : 1402 ReqId : 8752

CommIdx : 4 ConnIdx : -1 ReqVer : 6 Trace : 0

conn : -1 wp_no : -1 ReqBlk : -1

RqType : SAP_INIT Prot : INT UID : 1283 Mode : 0

User : SapRc : 0 AppcRc : 0 ConvId :

Vector : F_V_SEND_DATA

Info : SYNC_CPIC_FUNCTION WITH_HOSTADDR WITH_GW_SAP_PARAMS_HDR R3_CPIC_LOGIN_WITH_TERM

Info2 : WITH_LONG_LU_NAME

Info3 : GW_EXTENDED_INIT_OPTIONS

Addr (IPv4) : 172.20.48.162

LU : 172.20.4 TP : sapdp00 CType : I Cli Info: R3_CLIENT

Sec Usr : SecUsrLn: 0 Sec Type: 0

Send Length : 1322

long TP : sapdp00

long LU : 172.20.48.162

-


Address

Offset

CPIC-Data

-


x00ceb200

000000

d9c6c3f0 f0f0f0f0 f0f0f0f0 01010008

................

x00ceb210

000016

01020101 01010000 01010103 00040000

................

x00ceb220

000032

020b0103 0106000b 04010002 01030200

................

x00ceb230

000048

00002301 06010500 b5312d31 332d322d

..#......1-13-2-

-


GwUpdConvStatistik: conv_no/tcp_conv_no/sna_conv_no: 2/2/0

GwGetConnEntry: found conn 6 in free list

GwListRemove: remove elem 6 from conn_free_list

GwListRemove: 498 elems in conn_free_list

GwListInsert: insert elem 6 into conn_inuse_list (at end)

GwListInsert: 2 elems in conn_inuse_list

GwIHandleRq: new conn_tbl index: 6

GwIHandleRq: increment conv_no of client 0: 2

GwIHandleRq: own_index: 0

GwIHandleRq: set act rq type SAP_INIT

R3INIT(6, cpic_vector=1)

R3INIT: sys index = 0

GwMkTimeStamp: create conversation id 31510798

GwFiCreateConvId: created 31510798

R3INIT: generated Partner-Host-Addr: 172.20.48.162

R3INIT: received extended init options

timeout = -2

keepalive_timeout = -2

export_trace = 2

start_type = 0

net_protocol = 0

local_addr = ::

R3INIT: use extended init options

timeout = 20

keepalive_timeout = 300

export_trace = 0

start_type = 1

start cmd = /bin/rsh

net_protocol = 0

local_addr = ::

GwBufInit: initialize buffer info for conn 6

R3ALLC(31510798, cpic_vector=1, ..)

I am the client (0)

GwISearchSystem: check new tp >sapgw00<

GwFoundSysAddr: found addr

GwListInsert: insert elem 6 into conn_search_list (at begin)

GwListInsert: 1 elems in conn_search_list

GwISendConnReq: TP: >sapdp00<

GwISendConnReq: try to connect to service sapgw00

GwGetFreeSysid: sys 178 free

GwIAllocMemForLU_TP: 468 bytes for sys 178 allocated

GwListRemove: remove elem 178 from sys_free_list

GwListRemove: 289 elems in sys_free_list

GwListInsert: insert elem 178 into sys_inuse_list (at begin)

GwListInsert: 11 elems in sys_inuse_list

GwISendConnReq: server_idx/act_sys: 178/11

GwInsertSysAddr: inserted sys addr = 172.20.48.162 (1)

GwListInsert: insert elem 178 into sys_r3_list (at begin)

GwListInsert: 2 elems in sys_r3_list

NiHsLGetHostName: found address 172.20.48.162 in cache

NiIGetHostName: addr 172.20.48.162 = hostname '<sapbw>'

GwIAsyncConn: connect to gateway <sapbw> / sapgw00

NiHsLGetNodeAddr: found hostname '<sapbw>' in cache

NiIGetNodeAddr: hostname '<sapbw>' = addr 172.20.48.162

NiHsLGetServNo: found service name 'sapgw00' in cache

NiIGetServNo: servicename 'sapgw00' = port 0C.E4/3300

NiICreateHandle: hdl 28 state NI_INITIAL

NiIInitSocket: set default settings for new hdl 28 / sock 40 (I4; ST)

NiIBlockMode: set blockmode for hdl 28 FALSE

NiIConnectSocket: connection of hdl 28 to 172.20.48.162:3300 in progress (timeout=0)

NiIConnect: hdl 28 took local address 192.168.16.25:53031

NiIConnect: state of hdl 28 NI_CONN_WAIT

GwIConnectWithRemGw: timeout during GwIAsyncConn

GwSaveExtInfo: 0x100cec250 for ext info (496 bytes)

GwSelSet: set RW- (0x100b51050) for hdl 28

GwReadReqIndex: (process_id: -1)

GwReadReqIndex: no filled request-index-block

GwCheckClient: check clients

GwCheckClient: actual time stamp is 343038983

GwCheckClient: start_of_waiting stamp = 342822381

GwCheckClient: 1 clients still waiting for answers

GwCheckPollValue()

GwCheckPollValue: waiting client(s) (GW_COMM_CLIENTS_WAITING)

                    • GWRD LOOP **********

I'm in GwReceive

Fri Dec 4 12:02:42 2009

NiSelISelectInt: 0 handles selected (0 buffered)

GwIRegSchedule()

GwICheckConv()

GwICheckConv: check conn 6

R3ALLC(31510798, cpic_vector=1, ..)

GwISearchSystem: connection to server 172.20.48.162 / sapdp00 in state CONN_PENDING

GwCheckCounter: check counter

GwCheckPollValue()

GwCheckPollValue: waiting client(s) (GW_COMM_CLIENTS_WAITING)

GwReadReqIndex: (process_id: -1)

GwReadReqIndex: no filled request-index-block

GwCheckClient: check clients

GwCheckClient: actual time stamp is 343543140

GwCheckClient: start_of_waiting stamp = 342822381

LOCK APPC ca_blk 7

GwCheckClient: timeout, rq/uid/mode/conv ID/comm_idx: 203/1282/0/17621698/13

GwSendRcToDp: send appc_rc/sap_rc 10001/221 to dp

GwIsAWaitingSWP: wp 0 waiting

GwSapWpWakeUp: send answer to sap wp 0

GwSapWpWakeUp: make wp 0 owner of appc_ca_blk 7

-OUT- tid -1 uid -1 mode 255

-OUT- appc_ca_blk 7 len 80 rq_id 12639

-OUT- wait_f_answ 0 cmd 0

NiIWrite: hdl 9 sent data (wrt=28,pac=1,MESG_IO)

GwListRemove: remove elem 13 from comm_wait_list

GwListRemove: 0 elems in comm_wait_list

GwCheckClient: no more clients waiting for answers

nelis
Active Contributor
0 Kudos

3 : http://172.20.x.x alternative (ALTERNATIVE)

4 : http://172.20.y.y <sapbw> (ALTERNATIVE)

From what I understand of the parameter gw/alternative_hostnames is that you need to insert the alternative hostnames/ip's of the actual system running the gateway not other systems connecting to it which is most likely why it is failing. See above.

So on your host sapr3 insert only the nat ip address and the actual host ip address of that system. Since your sapbw host is not in the DMZ it will not require an alternative.

Remove the sapbw alternative from your sapr3 host and lets see what happens.

--

Nelis

Former Member
0 Kudos

Hi Nelis,

I have removed sapbw entry from alternative list, but still not able to connect.

Log file:

Fri Dec 4 18:45:22 2009

CCMS: Checking Downtime Configuration of Monitoring Segment.

Bind service sapgw01 (socket) to port 3301

GwPrintMyHostAddr: my host addresses are :

1 : [192.168.x.x] <sapr3> (HOSTNAME)

2 : [127.0.0.1] localhost (LOCALHOST)

3 : [172.20.x.x] alternative (ALTERNATIVE)

Full qualified hostname = <sapr3>

DpSysAdmExtCreate: ABAP is active

DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active

Fri Dec 4 18:45:34 2009

GwDpInit: attached to gw_adm at 0xffffffff7465db88

....

Fri Dec 4 18:47:30 2009

      • ERROR => GwRqDpSendTo: no comm_adm entry found (gw=<sapbw> / sapdp00, rq=203, idx=6, conv=42036334, uid=56, mode=0 [gwdp.c

*****************************************************************************

*

  • LOCATION SAP-Gateway on host sapretail / sapgw01

  • ERROR COMM_TBL table error

*

  • TIME Fri Dec 4 18:47:30 2009

  • RELEASE 700

  • COMPONENT SAP-Gateway

  • VERSION 2

  • RC 235

  • MODULE gwdp.c

  • LINE 6079

  • COUNTER 14

*******************************************************************

Thanks,

Ramesh R

nelis
Active Contributor
0 Kudos

LOCATION SAP-Gateway on host sapretail / sapgw01

Where are you getting the above information from, off which host ?

From what you posted I see data from 3 hosts which is confusing: sapr3, sapbw and sapretail.

For troubleshooting purposes stick to sapr3 and sapbw. Do you not perhaps have the old ip address of sapr3 in the host file for sapbw system ? You might need to go one level lower and analyse the network data between the two systems using a packet sniffer of some sort, that may be a better idea.

--

Nelis