<?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>article Connection Closed During API Script Run for Enterprise Manager in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Connection-Closed-During-API-Script-Run-for-Enterprise-Manager/ta-p/1935683</link>
    <description>&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow " data-aura-rendered-by="184:3524;a"&gt;Error: {"error_code":"AEM_RUN_EXCEPTION","error_message":"Replication task \"TASK_NAME\" on server \"SERVER_NAME\" encountered an error when requested to run. message: SYS-E-HTTPFAIL, The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.."}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Enterprise Manager" id="qlikEnterpriseManager"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;DIV class="test-id__field-label-container slds-form-element__label" data-aura-rendered-by="209:3524;a"&gt;
&lt;DIV class="tooltip-trigger uiTooltip" tabindex="0" aria-describedby="tt-for-775:3524;a" data-aura-rendered-by="778:3524;a" data-aura-class="uiTooltip"&gt;&lt;SPAN class="tooltip-invisible" data-aura-rendered-by="780:3524;a"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="slds-form-element__control slds-grid itemBody" data-aura-rendered-by="212:3524;a"&gt;
&lt;DIV class="slds-rich-text-editor__output uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge" dir="ltr" data-aura-rendered-by="204:3524;a" data-aura-class="uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge"&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;1. Disable Automatic Cleanup of the task logs on the Replicate server. You will need to write a script that will purge older task logs from the ..\data\logs directory.&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;2. Adjust the log file cleanup schedule so it runs less often: You need to do the following from a command window running 'as administrator':&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;repctl -d [data directory] exportrepository include_server_settings=true&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;Look for the scheduler section and the LogFileCleanLogs job. Change the line "schedule" line, the number after the '0-59/' is the frequency: in this example I have changed it to run every 60 minutes from the default of 2. "schedule": "0-59/60 * * * *",&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;To import:&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;repctl -d [data directory] importrepository json_file=Replication_Definition&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;Then you will need to restart the Replicate service.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;H3&gt;Cause&lt;/H3&gt;
&lt;P&gt;Conflict between the log file cleanup job which runs every 5 minutes and the Enterprise Manager API script.&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 16:50:13 GMT</pubDate>
    <dc:creator>Dana_Baldwin</dc:creator>
    <dc:date>2022-05-25T16:50:13Z</dc:date>
    <item>
      <title>Connection Closed During API Script Run for Enterprise Manager</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Connection-Closed-During-API-Script-Run-for-Enterprise-Manager/ta-p/1935683</link>
      <description>&lt;P&gt;&lt;SPAN class="test-id__field-value slds-form-element__static slds-grow " data-aura-rendered-by="184:3524;a"&gt;Error: {"error_code":"AEM_RUN_EXCEPTION","error_message":"Replication task \"TASK_NAME\" on server \"SERVER_NAME\" encountered an error when requested to run. message: SYS-E-HTTPFAIL, The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.."}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Enterprise Manager" id="qlikEnterpriseManager"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;DIV class="test-id__field-label-container slds-form-element__label" data-aura-rendered-by="209:3524;a"&gt;
&lt;DIV class="tooltip-trigger uiTooltip" tabindex="0" aria-describedby="tt-for-775:3524;a" data-aura-rendered-by="778:3524;a" data-aura-class="uiTooltip"&gt;&lt;SPAN class="tooltip-invisible" data-aura-rendered-by="780:3524;a"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="slds-form-element__control slds-grid itemBody" data-aura-rendered-by="212:3524;a"&gt;
&lt;DIV class="slds-rich-text-editor__output uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge" dir="ltr" data-aura-rendered-by="204:3524;a" data-aura-class="uiOutputRichText forceOutputRichText forceKnowledgeOutputRichTextForKnowledge"&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;1. Disable Automatic Cleanup of the task logs on the Replicate server. You will need to write a script that will purge older task logs from the ..\data\logs directory.&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;2. Adjust the log file cleanup schedule so it runs less often: You need to do the following from a command window running 'as administrator':&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;repctl -d [data directory] exportrepository include_server_settings=true&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;Look for the scheduler section and the LogFileCleanLogs job. Change the line "schedule" line, the number after the '0-59/' is the frequency: in this example I have changed it to run every 60 minutes from the default of 2. "schedule": "0-59/60 * * * *",&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;To import:&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;repctl -d [data directory] importrepository json_file=Replication_Definition&lt;/P&gt;
&lt;P data-aura-rendered-by="205:3524;a"&gt;Then you will need to restart the Replicate service.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;H3&gt;Cause&lt;/H3&gt;
&lt;P&gt;Conflict between the log file cleanup job which runs every 5 minutes and the Enterprise Manager API script.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Connection-Closed-During-API-Script-Run-for-Enterprise-Manager/ta-p/1935683</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2022-05-25T16:50:13Z</dc:date>
    </item>
  </channel>
</rss>

