<?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 tssh timeout + process blocked in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326357#M95853</link>
    <description>Hello,&lt;BR /&gt;I have a problem with the component tssh. I'm using this component to send a file to an API. (I don't use the tRest component because we can't indicate a file to upload. We only can use the content of a variable. That's too long to put the whole file  content in a variable).&lt;BR /&gt;So I used my tssh with only one command line simple :&lt;BR /&gt;"curl -d @"+((String)globalMap.get("CurrentFile"))+".tmp "+context.api_url&lt;BR /&gt;(After the tssh component I use a row on a tjavaFlex. The outputs of tssh are the global variable)&lt;BR /&gt;I try with and without timeOut on the component. In the two cases, it's arrived that the process java freeze while the curl was ended. This case seems arrived when the response of the api is superior at 5 minutes. I saw the curl process disappeared but my process java blocked.&lt;BR /&gt;So I have two problem :&lt;BR /&gt;- The timeOut of tssh component seem didn't work&lt;BR /&gt;- The tssh looses the connection with his child process and seem wait a signal to wake up&lt;BR /&gt;How can I resolve this problems ?&lt;BR /&gt;(I use TOS 5.0.1 in java)&lt;BR /&gt;Thank you,&lt;BR /&gt;Carole</description>
    <pubDate>Thu, 26 Apr 2012 09:13:34 GMT</pubDate>
    <dc:creator>param75</dc:creator>
    <dc:date>2012-04-26T09:13:34Z</dc:date>
    <item>
      <title>tssh timeout + process blocked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326357#M95853</link>
      <description>Hello,&lt;BR /&gt;I have a problem with the component tssh. I'm using this component to send a file to an API. (I don't use the tRest component because we can't indicate a file to upload. We only can use the content of a variable. That's too long to put the whole file  content in a variable).&lt;BR /&gt;So I used my tssh with only one command line simple :&lt;BR /&gt;"curl -d @"+((String)globalMap.get("CurrentFile"))+".tmp "+context.api_url&lt;BR /&gt;(After the tssh component I use a row on a tjavaFlex. The outputs of tssh are the global variable)&lt;BR /&gt;I try with and without timeOut on the component. In the two cases, it's arrived that the process java freeze while the curl was ended. This case seems arrived when the response of the api is superior at 5 minutes. I saw the curl process disappeared but my process java blocked.&lt;BR /&gt;So I have two problem :&lt;BR /&gt;- The timeOut of tssh component seem didn't work&lt;BR /&gt;- The tssh looses the connection with his child process and seem wait a signal to wake up&lt;BR /&gt;How can I resolve this problems ?&lt;BR /&gt;(I use TOS 5.0.1 in java)&lt;BR /&gt;Thank you,&lt;BR /&gt;Carole</description>
      <pubDate>Thu, 26 Apr 2012 09:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326357#M95853</guid>
      <dc:creator>param75</dc:creator>
      <dc:date>2012-04-26T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: tssh timeout + process blocked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326358#M95854</link>
      <description>Hi Carole 
&lt;BR /&gt;The code related to timeout in Talend job is 
&lt;BR /&gt; 
&lt;PRE&gt;conn_tSSH_1.connect(null, 0, 61 * 1000);&lt;/PRE&gt; 
&lt;BR /&gt;The method is ch.ethz.ssh2.Connection.connect(ServerHostKeyVerifier verifier, int connectTimeout, int 
&lt;BR /&gt; kexTimeout). 
&lt;BR /&gt;According to the document of ch.ethz.ssh2, it says that 
&lt;BR /&gt; 
&lt;PRE&gt;kexTimeout - Timeout for complete connection establishment (non-negative, in milliseconds). Zero means no timeout. The timeout counts from the moment you invoke the connect() method and is cancelled as soon as the first key-exchange round has finished. It is possible that the timeout event will be fired during the invocation of the verifier callback, but it will only have an effect after the verifier returns.&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#FF0000"&gt;It is possible that the timeout event will be fired during the invocation of the verifier callback, but it will only have an effect after the verifier returns.&lt;/FONT&gt; 
&lt;BR /&gt;So that may be the reason why timeout doesn't work. There is no returns. 
&lt;BR /&gt;You'd better check the api url you use. 
&lt;BR /&gt;Maybe just test the command which you typed in tSSH by linux terminal. 
&lt;BR /&gt;Does anybody encounter this issue before? 
&lt;BR /&gt;I test timeout in TOS 5.0.1. It doesn't work, yet. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 26 Apr 2012 15:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326358#M95854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-26T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: tssh timeout + process blocked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326359#M95855</link>
      <description>Hi Pedro,&lt;BR /&gt;Thank you for your answer. &lt;BR /&gt;Do you know how do I handle the case where the precessus not responding ? How to get into error if there is no return of commands executed after x minutes?&lt;BR /&gt;Kind regards,&lt;BR /&gt;Carole</description>
      <pubDate>Fri, 27 Apr 2012 11:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326359#M95855</guid>
      <dc:creator>param75</dc:creator>
      <dc:date>2012-04-27T11:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: tssh timeout + process blocked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326360#M95856</link>
      <description>Hi Carole&lt;BR /&gt;To tell the truth, I don't know.&lt;BR /&gt;Though timeout doesn't work, I can get returns every time.&lt;BR /&gt;As I mentioned above, try this command in Linux terminal...&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 27 Apr 2012 11:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326360#M95856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-27T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: tssh timeout + process blocked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326361#M95857</link>
      <description>I think I have fix the problem adding an exit command.</description>
      <pubDate>Tue, 27 Nov 2012 17:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tssh-timeout-process-blocked/m-p/2326361#M95857</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-27T17:04:49Z</dc:date>
    </item>
  </channel>
</rss>

