cancel
Showing results for 
Search instead for 
Did you mean: 

gw/cpic_timout value changed but still default value of 20 sec. is considered

Former Member
0 Kudos

Hello Experts,

We are seeing errors as below in our system:

Error 1006 occurs when you execute an external command cp/ls/mv on tcpic (xpgid=0, convid=.)

Error 1005 occurs when you execute an external command cp/ls/mv on tcpic (xpgid=0, convid=.)


As the external command is doing either copy / list / move and failing i thought we need to increase the gateway time out value to get the work done as there would be multiple operations done on the FS on the same time.


So, decided to increase the parameter gw/cpic_timout value from 20 sec. to 120 seconds (Did not restart as it is a dynamic parameter)

Still, we are seeing issue and the logs says the same value of 20 seconds even though we increased to 120 seocnds:

M  *  LOCATIONSAP-Gateway on host <hostname>/ sapgw00
M  *  ERROR   timeout during allocate

M  *

M  *  TIME    <Time>
M  *  RELEASE 720

M  *  COMPONENT   SAP-Gateway

M  *  VERSION 2
M  *  RC      242
M  *  MODULE  gwr3cpic.c
M  *  LINE    6284
M  *  DETAIL  no connect of TP sapxpg from host <hostname>after 20 sec
M  *  COUNTER 538978

Any leads on why this parameter is not effective? (We are on SAPKB70026, Kernel 720 version with 800 patch level). Oracle 11.2.0.4 on Linux

Please suggest

Thanks,

Subbu Panguluri

Accepted Solutions (0)

Answers (3)

Answers (3)

raquel_gomez
Employee
Employee
0 Kudos

Hi Subbu,

As mentioned by Isaias, check if there's an RFC Destination (transaction SM59) involved.

For TP sapxg, it normally relates to RFC Destination SAPXPG_DBDEST_<dbhost>.
On Thecnical Settings, CPI-C Timeout can be set to "Defautl Gateway Value" or "Specify Timeout" in seconds.

A timeout of 20 secs specified could overwritten defined GW parameters.

Regards,
Raquel

Former Member
0 Kudos

Thank you Raquel.

RFC "SAPXPG_DBDEST_<dbhost>" is having "Default Gateway Value" selected under section CPI-C Timeout (In Technical Settings tab)

I have a big confusion on this RFC "SAPXPG_DBDEST_<dbhost>".

As seen below, it has Target Host as 10.0.1.1 and i see in SMGW connections are happening and getting successful.

FYI - In /etc/hosts, i do not see this host 10.0.1.1  entered.

and ping on this ip address is not successful.

I am confused how come few OS level transactions like "ls / cp / mv" are successful?

As few are successful, i am not even able to propose to get the ip address changed to DB hostname.

I see below error message in dev_rd:

*** ERROR => GwIConnectHandle: conversation 60616287 not found

(lu=<App. HostName>  , tp=sapxpg  , host=localhost) [gwxxrd.c     7006].

In the respective work process, i see below RFC error, but it is not clear which RFC it is trying to use?

L  SXPG:   Start status of external program: unknown contents

L  SXPG:   Conversation ID:

L  SXPG:   Error: 1,005 , Message: RFC destination %_TCPIP_%3 does not exist.

Any suggestions please?

Thanks,

Subbu

feng_shi
Active Participant
0 Kudos

Hi,

Firstly, please review the following wiki page which I summarized before,I believe you will get a better understanding of external command executation.

https://wiki.scn.sap.com/wiki/x/9gpmG

Second, normally, the RFC destination SAPXPG_DBDEST_<DB-HOST> will be invoided if you try to execute DB related commands on APP server where the DB related commands are located in standalone DB host.  Here, in this case, the external command are copy / list / move, so, I don't think this issue is related to RFC destination SAPXPG_DBDEST_<DB-HOST> and I believe the RFC test for destination SAPXPG_DBDEST_<DB-HOST> is ok.


*** ERROR => GwIConnectHandle: conversation 60616287 not found

(lu=<App. HostName>  , tp=sapxpg  , host=localhost) [gwxxrd.c     7006].

For this error, the connection setup to the external program does not succeed( "timeout during allocate" error), then the connection was terminated accordingly, therefore, you got "ERROR => GwIConnectHandle: conversation 60616287 not found" error. this is just a sequence error of RFC setup timeout, but not the root cause.

Note 948636 should explain the reason on why gw/cpic_timeout doesn't work.

Regarding of this issue,

Did you alway get "Error 1006 occurs when you execute an external command" error when try to execute any external command ?

or

Error 1006 occurs sporadic ?

I think the "Error 1006 occurs when you execute an external command" error occurs sporadic, right ?

if yes, please refer to 1891781 - error occurs when you execute an external command,

implement following sap notes, then the issue will be fixed.

    1569335 - Sporadic timeout when executing external commands

    1743472 - Sporadic timeout when executing external commands (2)

    1927940 - Further improvement in retry mechanism

    1896935 - Improvement to retry mechanism from SAP Note 1569335

    1963297 - Improvement to SAP Note 1927940

Thanks and best regards,

Shi Feng

Former Member
0 Kudos

Thank you very much Shi Feng

Appreciate your response.

I am going through your wiki page - Thanks

Regarding Note "Note 948636" - It explained if the gateway has timed out after a long time compared to gw/cpic_timeout value set in system.

Here in our case, timeout value is set to 120 seconds, but still gateway time out is happening @ 20 seconds - Please suggest?

We are seeing below errors related to external commands:

Error 1005 when executing external command ..... and also

Error 1006 when executing external command .............

We are on SAPKB70026, I will review the notes mentioned

Meantime, please suggest on above questions.

Thanks,

Subbu

feng_shi
Active Participant
0 Kudos

Dear Subbu,

Where did you change the gw/cpic_timeout parameter ?

please change this parameter on each instance and check again.

By the way, I don't think increasing gw/cpic_timeout parameter is helpful here because 20 seconds is long enough actually.

Thanks and best regards,

Shi Feng

Former Member
0 Kudos

Thank you.

Yes Shi Feng - parameter was changed in RZ11 by checking option to get affected for all application servers.

Sure, 20 seconds would be enough but surprised that the parameter didnt work.

So, would like to check if any wrong configuration in our system or any Notes to be implemented for code corrections

Once again thanks for your help

Thanks,

Subbu

feng_shi
Active Participant
0 Kudos

Dear Subbu,

Actually, I've done a test again.

Dynamic changing gw/cpic_timeout parameter is working for me.

Maybe 20 seconds is not coming from local gateway...

when the error "Error 1006 occurs when you execute an external command" will occur exactly ?

is there any RFC destination involved ?

Best regards,

Shi Feng

Former Member
0 Kudos

Thank you Shi Feng for asssiting.

I am not sure if there is any RFC involved as i could see the errors on cp / ls and mv commands to files on OS level only:

We are frequently noticing 1005 RC on BTC work process, 1006 rc on UPDand DIA wp.

Once we have observed 100  rc for BTC work process

Update work process with error "Error 1006 when executing external command cp on %_TCPIP_%1 (xpgid=0,convid=.)"

Below is the work process log which says "Timeout during connection setup"

M  *****************************************************************************

M  *

M  *  LOCATION    SAP-Gateway on host <Local Hostname> / sapgw00

M  *  ERROR       timeout during allocate

M  *

M  *  TIME        xxxxx

M  *  RELEASE     720

M  *  COMPONENT   SAP-Gateway

M  *  VERSION     2

M  *  RC          242

M  *  MODULE      gwr3cpic.c

M  *  LINE        6284

M  *  DETAIL      no connect of TP sapxpg from host <Local hostname> after 20 sec

M  *  COUNTER     561175

M  *

M  *****************************************************************************

M

A  RFC 3730  CONVID 49736982

A   * CMRC=20 DATA=1 STATUS=1 SAPRC=456 ThSAPCMRCV

A  RFC> ABAP Programm: SAPLSSXP (Transaction: )

A  RFC> User: XXXXX (Client: XXX)

A  RFC> Destination: %_TCPIP_%2 (handle: 3, DtConId: 56D96E7530ED327DE10000002B52DDB4, DtConCnt: 1, ConvId: 49736982,{56D96E76-30ED

-327D-E100-00002B52DDB4})

A  RFC> Called function module: SAPXPG_START_XPG_LONG

A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists)

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8CCAA2BAF9B8E59}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3732

CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists)

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8CCAA2BAF9B8E59}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1972

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8CCAA2BAF9B8E59}_{conn-id=00000000000000000000000000000000}_0

L  SXPG: ------------- start -------------------

L  SXPG: XXXXXXXXX

L  SXPG:   Start status of external program: unknown contents

L  SXPG:   Conversation ID:

L  SXPG:   Error: 1,006 , Message:

L        timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists

L  SXPG:   Contents of protocol:

L  SXPG:     No protocol messages reported

L  SXPG: ------------- end -------------------

Update work process with error "Error 1005 when executing external command mv on %_TCPIP_%2 (xpgid=0,convid=.)"

Below is the work process log which says "RFC destination %_TCPIP_%2 does not exist"

M  *****************************************************************************

M  *

M  *  LOCATION    SAP-Gateway on host <Local Hostname> / sapgw00

M  *  ERROR       timeout during allocate

M  *

M  *  TIME        xxxxxx

M  *  RELEASE     720

M  *  COMPONENT   SAP-Gateway

M  *  VERSION     2

M  *  RC          242

M  *  MODULE      gwr3cpic.c

M  *  LINE        6284

M  *  DETAIL      no connect of TP sapxpg from host <Local Hostname> after 20 sec

M  *  COUNTER     558099

M  *

M  *****************************************************************************

M

A  RFC 3730  CONVID 26193080

A   * CMRC=20 DATA=1 STATUS=1 SAPRC=456 ThSAPCMRCV

A  RFC> ABAP Programm: SAPLSSXP (Transaction: )

A  RFC> User: xxxxx (Client: XXX)

A  RFC> Destination: %_TCPIP_%2 (handle: 2, DtConId: 56D9278FB48749F7E10000002B52DDB4, DtConCnt: 1, ConvId: 26193080,{56D92790-B487

-49F7-E100-00002B52DDB4})

A  RFC> Called function module: SAPXPG_START_XPG_LONG

A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists)

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8C5D7DC5D578AA3}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3732

CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists)

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8C5D7DC5D578AA3}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1972

[abrfcio.c    9196]

A  {root-id=005056AD6B4F1EE5B8C5D7DC5D578AA3}_{conn-id=00000000000000000000000000000000}_0

A  TH VERBOSE LEVEL FULL

A  ** RABAX: end RX_GET_MESSAGE

L  SXPG: ------------- start -------------------

L  SXPG: 2016/03/04 17:34:38 546142

L  SXPG:   Start status of external program: unknown contents

L  SXPG:   Conversation ID:

L  SXPG:   Error: 1,005 , Message: RFC destination %_TCPIP_%2 does not exist.

L  SXPG:   Contents of protocol:

L  SXPG:     No protocol messages reported

L  SXPG: ------------- end -------------------

Any guess what to be checked?

Thanks,

Subbu

feng_shi
Active Participant
0 Kudos

Hi Subbu,

Please implement following sap notes, then the issue will be fixed.

    1743472 - Sporadic timeout when executing external commands (2)

    1927940 - Further improvement in retry mechanism

    1896935 - Improvement to retry mechanism from SAP Note 1569335

    1963297 - Improvement to SAP Note 1927940

Thanks and best regards,

Shi Feng

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Subbu,

Is there an SM59 destination involved?

The "technical settings" tab of the destination provides an option to overwrite the gateway default value for the specific destination.

You can confirm whether the destination involved is set to use the gateway value or its own specific value.

Regards,

Isaías

Former Member
0 Kudos

Thank you Isaías

I checked all the available RFCs in our system and noticed under "Technical Settings" tab i see:

"Default Gateway Value" selected under section CPI-C Timeout.

Hopefully this means, value of 120 seconds should be considered, please advice

Thanks,

Subbu

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Subbu,

Yes, "default gateway value" means the value set at the parameter "gw/cpic_timeout".

Regards,

Isaías

Former Member
0 Kudos

Hallo,

have you checked the trace in SMGW?

Are you using reginfo/secinfo which might block the connection altogether?

Regards

Thomas.

Former Member
0 Kudos

Thank you Thomas.

We are not using reginfo/secinfo files.

I understand that if connections are rejected, none of the operations should succeed. However in our case the issue is intermittent?

Any other areas to check please?

Thanks,

Subbu