<?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: non-retryable error - invalid socket for PostgreSQL in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/non-retryable-error-invalid-socket-for-PostgreSQL/m-p/2439400#M10494</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/221644"&gt;@chris_s&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;We might set the error handling to attempt given number of retry or&amp;nbsp;&amp;nbsp;&lt;A title="infinite retry" href="https://help.qlik.com/en-US/replicate/November2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_envErrorsStab.htm#ar_tasks_custom_1624443382_1694889:~:text=To%20retry%20the%20task%20an%20infinite%20number%20of%20times%2C%20specify%20%22%2D1%22%20(the%20global%20error%20handling%20default)." target="_blank" rel="noopener"&gt;infinite retry&lt;/A&gt; as below example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1712672121397.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163751i6EE39C7737F01474/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1712672121397.png" alt="john_wang_0-1712672121397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However I strongly suggest to solve the "&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;invalid socket&lt;/FONT&gt;" rather than rely on the retry as the error and retry may introduce latency issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are many factors may lead the same "&lt;FONT face="courier new,courier"&gt;invalid socket&lt;/FONT&gt;" error, eg connection error, PostgreSQL server crash, firewall killed connections,&amp;nbsp;server closed the connection unexpectedly, timeout occurs, or even data error etc. Please set &lt;FONT face="courier new,courier"&gt;TARGET_LOAD&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;Verbose&lt;/FONT&gt;, recreate the error and check the task log file to understand the root cause. Maybe you also need to &lt;A title="decrypt the task log" href="https://community.qlik.com/t5/Official-Support-Articles/How-to-Decrypt-Qlik-Replicate-Verbose-Task-Log-Files/ta-p/1862114" target="_blank" rel="noopener"&gt;decrypt the task log&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 14:26:22 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2024-04-09T14:26:22Z</dc:date>
    <item>
      <title>non-retryable error - invalid socket for PostgreSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/non-retryable-error-invalid-socket-for-PostgreSQL/m-p/2439380#M10493</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;We have a Task which is replicating data from a LogStream into a&amp;nbsp;&lt;SPAN&gt;PostgreSQL. After a couple of Minutes or even after an hour the task fails with the following error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="txtView161" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20161"&gt;&lt;SPAN class="rColor"&gt;00256316: 2024-04-09T13:28:57 [TARGET_LOAD ]E: Command failed to load data with exit error code 1, Command output: invalid socket [1020417] (csv_target.c:1012) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView162" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20162"&gt;&lt;SPAN class="rColor"&gt;00256316: 2024-04-09T13:28:57 [TARGET_LOAD ]E: Failed to wait for previous run [1020417] (csv_target.c:1123) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView163" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20163"&gt;&lt;SPAN class="rColor"&gt;00256316: 2024-04-09T13:28:57 [TARGET_LOAD ]E: Failed to start load process for file '22' [1020417] (csv_target.c:1793) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView164" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects" tabindex="20164"&gt;&lt;SPAN class="rColor"&gt;00256316: 2024-04-09T13:28:57 [TARGET_LOAD ]E: Failed to load file '22' [1020417] (csv_target.c:1892) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="txtView165" class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects textRecordSelected" tabindex="20165"&gt;&lt;SPAN class="rColor"&gt;00256303: 2024-04-09T13:28:57 [TASK_MANAGER ]E: Table error occurred. Based on error behavior policy, task will stop. [1021705] (replicationtask.c:3166)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects textRecordSelected" tabindex="20165"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects textRecordSelected" tabindex="20165"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;We expect that the underlying Infrstructure is not 100% available, but I would expect that there would be some kind of retry mechanism.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;We configured the following Error Handlers:&amp;nbsp;Environmental Errors Handling Policy, Data Errors Handling Policy and&amp;nbsp;Table Errors Handling Policy&lt;/P&gt;
&lt;P&gt;Is it possible to configure a retry for this kind of error (invalid socket)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Christoph&lt;/P&gt;
&lt;DIV class="tvRow ng-binding ng-scope ng-isolate-scope fontEffects textRecordSelected" tabindex="20165"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/non-retryable-error-invalid-socket-for-PostgreSQL/m-p/2439380#M10493</guid>
      <dc:creator>chris_s</dc:creator>
      <dc:date>2024-04-09T13:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: non-retryable error - invalid socket for PostgreSQL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/non-retryable-error-invalid-socket-for-PostgreSQL/m-p/2439400#M10494</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/221644"&gt;@chris_s&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;We might set the error handling to attempt given number of retry or&amp;nbsp;&amp;nbsp;&lt;A title="infinite retry" href="https://help.qlik.com/en-US/replicate/November2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_envErrorsStab.htm#ar_tasks_custom_1624443382_1694889:~:text=To%20retry%20the%20task%20an%20infinite%20number%20of%20times%2C%20specify%20%22%2D1%22%20(the%20global%20error%20handling%20default)." target="_blank" rel="noopener"&gt;infinite retry&lt;/A&gt; as below example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1712672121397.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163751i6EE39C7737F01474/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1712672121397.png" alt="john_wang_0-1712672121397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However I strongly suggest to solve the "&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;invalid socket&lt;/FONT&gt;" rather than rely on the retry as the error and retry may introduce latency issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are many factors may lead the same "&lt;FONT face="courier new,courier"&gt;invalid socket&lt;/FONT&gt;" error, eg connection error, PostgreSQL server crash, firewall killed connections,&amp;nbsp;server closed the connection unexpectedly, timeout occurs, or even data error etc. Please set &lt;FONT face="courier new,courier"&gt;TARGET_LOAD&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;Verbose&lt;/FONT&gt;, recreate the error and check the task log file to understand the root cause. Maybe you also need to &lt;A title="decrypt the task log" href="https://community.qlik.com/t5/Official-Support-Articles/How-to-Decrypt-Qlik-Replicate-Verbose-Task-Log-Files/ta-p/1862114" target="_blank" rel="noopener"&gt;decrypt the task log&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/non-retryable-error-invalid-socket-for-PostgreSQL/m-p/2439400#M10494</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-09T14:26:22Z</dc:date>
    </item>
  </channel>
</rss>

