<?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: DataSource Problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484465#M148912</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/267143"&gt;@David_Lan&lt;/a&gt;&amp;nbsp;I've been writing for almost an hour and the forum didn't post my comment. I'm a bit frustrated; anyway, I'm pushing here a resume and whishig is enough to understand.&lt;/P&gt;
&lt;P&gt;I was hable to reproduce your issue with a standard command line tool (psql for Linux) and by kiling the child created by PGSQL in the server.&lt;/P&gt;
&lt;P&gt;After some tests and researchs, I belive the problem is related to the client TCP keepalive - which I believe is not sent in your case.&lt;/P&gt;
&lt;P&gt;When the connection is closed from the server, the client stays in CLOSE-WAIT and when a further command are sent it tries to send acknowledge data packets over a closed socket.&lt;/P&gt;
&lt;P&gt;Then, when the server responds that the connection is closed (RST), the client restart a new connection (three way handshake) and works as normal.&lt;/P&gt;
&lt;P&gt;I don't know what connector are you using (?) but my suggestion is to reach out the Talend support as they may already have a solution or they may require further implementations - I reviewed the documention&amp;nbsp;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/" target="_blank" rel="noopener"&gt;https://help.qlik.com/talend/en-US/components/8.0/&lt;/A&gt;&amp;nbsp;but still a newbie.&lt;/P&gt;
&lt;P&gt;Some examples of clients that implement keepalive are:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- ODBC:&amp;nbsp;&lt;A href="https://odbc.postgresql.org/docs/config-opt.html" target="_blank"&gt;https://odbc.postgresql.org/docs/config-opt.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- libpq:&amp;nbsp;&lt;A href="https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES" target="_blank"&gt;https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Regars,&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 23:21:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-30T23:21:42Z</dc:date>
    <item>
      <title>DataSource Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484395#M148910</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have a problem with our datasource.&lt;/P&gt;
&lt;P&gt;Every day the server which contain the datasource (postgres database) is rebooted.&lt;/P&gt;
&lt;P&gt;And every day all jobs linked to the datasource doesn't work. Wa have the following error (&lt;SPAN&gt;&lt;SPAN class="ui-provider ed blw blx bly blz bma bmb bmc bmd bme bmf bmg bmh bmi bmj bmk bml bmm bmn bmo bmp bmq bmr bms bmt bmu bmv bmw bmx bmy bmz bna bnb bnc bnd"&gt;FATAL: terminating connection due to administrator command&lt;/SPAN&gt;&lt;/SPAN&gt;).&lt;/P&gt;
&lt;P&gt;I think our job (route component) is keeping using the datasource (which is broken).&lt;/P&gt;
&lt;P&gt;Can you help ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See our xml file for the Datasource Configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484395#M148910</guid>
      <dc:creator>David_Lan</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: DataSource Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484464#M148911</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/267143"&gt;@David_Lan&lt;/a&gt;&amp;nbsp;, I've been able to reproduce your isse with the pgql command line client, and the behavior is somewhat curious to me.&lt;/P&gt;
&lt;P&gt;To reproduce the issue:&lt;/P&gt;
&lt;P&gt;1) Login into a remote PGSQL server with a client throught TCP.&lt;/P&gt;
&lt;P&gt;2) Get the client session PID with "SELECT * FROM pg_stat_activity WHERE usename = 'user' and client_addr = '192.168.1.74';".&lt;/P&gt;
&lt;PRE&gt; datid | datname | pid | leader_pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | xact_start | query_start | state_change | wait_event_type | wait_event | state | backend_xid | backend_xmin | query_id | query | backend_type&lt;BR /&gt;-------+---------+------+------------+----------+---------+------------------+--------------+-----------------+-------------+-------------------------------+------------+-------------+-------------------------------+-----------------+------------+-------+-------------+--------------+----------+-------+----------------&lt;BR /&gt;16388 | user | 4113 | | 16389 | user | psql | 192.168.1.74 | | 42420 | 2024-09-30 21:28:09.056584+00 | | | 2024-09-30 21:28:09.071925+00 | Client | ClientRead | idle | | | | | client backend&lt;BR /&gt;(1 row)&lt;/PRE&gt;
&lt;P&gt;3) kill the the client process (kill -15 16389)&lt;/P&gt;
&lt;P&gt;Now, connections are in the following state:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Client (192.168.1.74):&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;tcp CLOSE-WAIT 164 0 192.168.1.74:42420 192.168.1.73:5432 users:(("psql",pid=3849,fd=3)) timer:(keepalive,113min,0)&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Server (192.168.1.73):&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;tcp FIN-WAIT-2 0 0 192.168.1.73:5432 192.168.1.74:42420 timer:(timewait,19sec,0)&lt;/PRE&gt;
&lt;P&gt;When the timer exceed, the server finally close the connection from his end (OS settings).&lt;/P&gt;
&lt;P&gt;But the &lt;STRONG&gt;Client (192.168.1.74)&amp;nbsp;&lt;/STRONG&gt;is still in "CLOSE-WAIT" state.&lt;/P&gt;
&lt;P&gt;Now, the first command sent from the client in the closed socket will thrown the below error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;user=&amp;gt; \l
FATAL:  terminating connection due to administrator command&lt;/LI-CODE&gt;
&lt;P&gt;What's curios is what's happen at TCP level.&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;Client (192.168.1.74)&lt;/STRONG&gt;&amp;nbsp;tries to send data to the &lt;STRONG&gt;Server (192.168.1.73)&lt;/STRONG&gt;&amp;nbsp;throguth the socket he thinks is still open and the Server responds with RSTs:&lt;/P&gt;
&lt;PRE&gt;21:44:49.380009 IP (tos 0x0, ttl 64, id 38012, offset 0, flags [DF], proto TCP (6), length 542)&lt;BR /&gt;192.168.1.74.42420 &amp;gt; 192.168.1.73.5432: Flags [P.], cksum 0x85f4 (incorrect -&amp;gt; 0x89c0), seq 3828743076:3828743566, ack 2994375439, win 487, options [nop,nop,TS val 1756669886 ecr 1199618454], length 490&lt;BR /&gt;&lt;BR /&gt;21:44:49.380010 IP (tos 0x0, ttl 64, id 38013, offset 0, flags [DF], proto TCP (6), length 76)&lt;BR /&gt;192.168.1.74.42420 &amp;gt; 192.168.1.73.5432: Flags [P.], cksum 0x8422 (incorrect -&amp;gt; 0xc54b), seq 490:514, ack 1, win 487, options [nop,nop,TS val 1756669886 ecr 1199618454], length 24&lt;BR /&gt;&lt;BR /&gt;21:44:49.380049 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)&lt;BR /&gt;192.168.1.73.5432 &amp;gt; 192.168.1.74.42420: Flags [R], cksum 0x3386 (correct), seq 2994375439, win 0, length 0&lt;BR /&gt;&lt;BR /&gt;21:44:49.380061 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)&lt;BR /&gt;192.168.1.73.5432 &amp;gt; 192.168.1.74.42420: Flags [R], cksum 0x3386 (correct), seq 2994375439, win 0, length 0&lt;BR /&gt;&lt;BR /&gt;21:44:49.380208 IP (tos 0x0, ttl 64, id 38014, offset 0, flags [DF], proto TCP (6), length 52)&lt;BR /&gt;192.168.1.74.42420 &amp;gt; 192.168.1.73.5432: Flags [F.], cksum 0x840a (incorrect -&amp;gt; 0x0513), seq 514, ack 1, win 487, options [nop,nop,TS val 1756669887 ecr 1199618454], length 0&lt;BR /&gt;&lt;BR /&gt;21:44:49.380222 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40)&lt;BR /&gt;192.168.1.73.5432 &amp;gt; 192.168.1.74.42420: Flags [R], cksum 0x3386 (correct), seq 2994375439, win 0, length 0&lt;/PRE&gt;
&lt;P&gt;When the client understands that the connection is closed (no ACK for data) it create a new connection with the three way handshake:&lt;/P&gt;
&lt;PRE&gt;21:44:49.380415 IP (tos 0x0, ttl 64, id 51247, offset 0, flags [DF], proto TCP (6), length 60)&lt;BR /&gt;192.168.1.74.53684 &amp;gt; 192.168.1.73.5432: Flags [S], cksum 0x8412 (incorrect -&amp;gt; 0x3044), seq 1365069865, win 64240, options [mss 1460,sackOK,TS val 1756669887 ecr 0,nop,wscale 7], length 0&lt;BR /&gt;&lt;BR /&gt;21:44:49.380439 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)&lt;BR /&gt;192.168.1.73.5432 &amp;gt; 192.168.1.74.53684: Flags [S.], cksum 0x8412 (incorrect -&amp;gt; 0xaa4a), seq 1504104132, ack 1365069866, win 65160, options [mss 1460,sackOK,TS val 1200231003 ecr 1756669887,nop,wscale 7], length 0&lt;BR /&gt;&lt;BR /&gt;21:44:49.380686 IP (tos 0x0, ttl 64, id 51248, offset 0, flags [DF], proto TCP (6), length 52)&lt;BR /&gt;192.168.1.74.53684 &amp;gt; 192.168.1.73.5432: Flags [.], cksum 0x840a (incorrect -&amp;gt; 0xd5a9), ack 1, win 502, options [nop,nop,TS val 1756669887 ecr 1200231003], length 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;At this point, socket is idle again.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Client (192.168.1.74):&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;tcp ESTAB 0 0 192.168.1.74:53684 192.168.1.73:5432 users:(("psql",pid=3849,fd=3)) timer:(keepalive,107min,0)&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Server (192.168.1.73):&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;tcp ESTAB 0 0 192.168.1.73:5432 192.168.1.74:53684 users:(("postgres",pid=6177,fd=10)) timer:(keepalive,105min,0)&lt;/PRE&gt;
&lt;P&gt;I believe in this case should be the client to implement some kind of keepalived.&lt;/P&gt;
&lt;P&gt;Take the example of libpq:&amp;nbsp;&lt;A href="https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES," target="_blank"&gt;https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES&lt;/A&gt; and also psqlODBC:&lt;A href="https://odbc.postgresql.org/docs/config-opt.html" target="_blank"&gt;&amp;nbsp;https://odbc.postgresql.org/docs/config-opt.html&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What component are you using to connect to PGSQL?&lt;/P&gt;
&lt;P&gt;My suggestion is to reach out the Talend's support as they may require implementations or they already have a solution - I checked the&amp;nbsp;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/" target="_blank"&gt;https://help.qlik.com/talend/en-US/components/8.0/&lt;/A&gt;&amp;nbsp;but still a newbie and not able.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 22:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484464#M148911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T22:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: DataSource Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484465#M148912</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/267143"&gt;@David_Lan&lt;/a&gt;&amp;nbsp;I've been writing for almost an hour and the forum didn't post my comment. I'm a bit frustrated; anyway, I'm pushing here a resume and whishig is enough to understand.&lt;/P&gt;
&lt;P&gt;I was hable to reproduce your issue with a standard command line tool (psql for Linux) and by kiling the child created by PGSQL in the server.&lt;/P&gt;
&lt;P&gt;After some tests and researchs, I belive the problem is related to the client TCP keepalive - which I believe is not sent in your case.&lt;/P&gt;
&lt;P&gt;When the connection is closed from the server, the client stays in CLOSE-WAIT and when a further command are sent it tries to send acknowledge data packets over a closed socket.&lt;/P&gt;
&lt;P&gt;Then, when the server responds that the connection is closed (RST), the client restart a new connection (three way handshake) and works as normal.&lt;/P&gt;
&lt;P&gt;I don't know what connector are you using (?) but my suggestion is to reach out the Talend support as they may already have a solution or they may require further implementations - I reviewed the documention&amp;nbsp;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/" target="_blank" rel="noopener"&gt;https://help.qlik.com/talend/en-US/components/8.0/&lt;/A&gt;&amp;nbsp;but still a newbie.&lt;/P&gt;
&lt;P&gt;Some examples of clients that implement keepalive are:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- ODBC:&amp;nbsp;&lt;A href="https://odbc.postgresql.org/docs/config-opt.html" target="_blank"&gt;https://odbc.postgresql.org/docs/config-opt.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- libpq:&amp;nbsp;&lt;A href="https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES" target="_blank"&gt;https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Regars,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 23:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484465#M148912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T23:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: DataSource Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484466#M148913</link>
      <description>&lt;P&gt;Tomorrow I will try to re-organize and re-upload the dumps I collected.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 23:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DataSource-Problem/m-p/2484466#M148913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T23:24:02Z</dc:date>
    </item>
  </channel>
</rss>

