<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780486#M1585395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you call it with import parameter "TERMINATIONWAIT' = 'X'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without that the command is started asynchronously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 120 second time limit might be a system profile parameter! Do you call the fm via RFC or without RFC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Mar 23, 2011 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 13:08:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-23T13:08:07Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780485#M1585394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are calling external commands in a batch job using the SAP supplied function module SXPG_COMMAND_EXECUTE.  However, if the external command takes longer than 2 minutes (120 seconds) to execute the call to the external command is terminated (from the SAP perspective) with the message Recv failed:Connection reset by peer.  The termination is precisely at 120 seconds.  The external command, however, continues to run as an u201Corphanu201D task and finishes normally.  However, due to the connection termination, SAP is no longer aware of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas where the termination is occurring and/or where the wait limit of 120 seconds is set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 12:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780485#M1585394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T12:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780486#M1585395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you call it with import parameter "TERMINATIONWAIT' = 'X'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without that the command is started asynchronously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 120 second time limit might be a system profile parameter! Do you call the fm via RFC or without RFC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Mar 23, 2011 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 13:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780486#M1585395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780487#M1585396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname                   = 'ZTEST_BATCH'
      additional_parameters         = param1
      operatingsystem               = castserveropsys
      targetsystem                  = target
      stdout                        = 'X'
      stderr                        = 'X'
      terminationwait               = 'X'
    IMPORTING
      status                        = funcstatus
    TABLES
      exec_protocol                 = iserveroutput[]
    EXCEPTIONS
      no_permission                 = 1
      command_not_found             = 2
      parameters_too_long           = 3
      security_risk                 = 4
      wrong_check_call_interface    = 5
      program_start_error           = 6
      program_termination_error     = 7
      x_error                       = 8
      parameter_expected            = 9
      too_many_parameters           = 10
      illegal_command               = 11
      wrong_asynchronous_parameters = 12
      cant_enq_tbtco_entry          = 13
      jobcount_generation_error     = 14
      OTHERS                        = 15.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 13:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780487#M1585396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780488#M1585397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Latest update on this issue that we continue to have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First to answer question from Klaus....Yes, we are calling the SXPG_COMMAND_EXECUTE with the  parameter "TERMINATIONWAIT' = 'X'...we have duplicated the issue by simply testing the SXPG_COMMAND_EXECUTE in transaction SE37 and calling a command that sleeps for x seconds.  Sleeping for 120 seconds...the command runs successfully...Sleeping for 121 seconds the command failes with the "&lt;STRONG&gt;Recv failed:Connection reset by peer&lt;/STRONG&gt;" error.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New information on this issue:  The issue only occurs when we use RSH (remote shell).  So if I call the SLEEP command via the RSH...it fails after 120 seconds, however if I call the SLEEP command locally (without RSH) the Function Module runs successfully without error.  Also, running the RSH directly from the Windows command prompt is successful.  So the issue is specific to calling the RSH command from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darryl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 17:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780488#M1585397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-24T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780489#M1585398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can start report RSPARAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a new basis release 700 or newer you can filter the parameter name for "*timeout", in older releases you can search for "timeout". Maybe one parameter is matching your problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it can also be a parameter "&lt;STRONG&gt;disconnect&lt;/STRONG&gt;" or another starting with "gw" like "gw/close_routes". Please have a look at them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 05:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-recv-failed-connection-reset-by-peer/m-p/7780489#M1585398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T05:57:28Z</dc:date>
    </item>
  </channel>
</rss>

