Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
VG1620249430
Contributor
Contributor

tssh losing connection to main job

Hi,

I am working on an ETL process which uses tssh components, to execute a shell script on a remote server. Once the execution on the remote server completes, it continues the process on the host server.

The talend job seems to work fine if the process on the remote server takes a few minutes, but it hangs up if the process on the remote server takes longer ( more than 1 hour in this case ). The process on host server doesn't continue even after the process on the remote server has completed. It doesn't throw any error but the java process seems to be running indefinitely without any real progress.

I tried the following without any success -

  1. I initially connected the tssh component to a tsystem component using onComponentOk trigger, without any timeout settings.
  2. I added an exit command in the tssh component, after the call to execute the shell script, to try and close the connection.
  3. I added timeout settings to the tssh component and connected tssh to tsytem using Runif trigger while checking the exit_code. ((Integer)globalMap.get("tSSH_1_EXIT_CODE")) == 0

The process seems to be frozen if the tssh takes too long. Any help would be greatly appreciated.

Thank you

Labels (2)
1 Reply
VG1620249430
Contributor
Contributor
Author

Fixed the issue by making the process on the remote server run in the background and added another tssh component which loops through to keep checking for a file indicating end of process on ssh.

 

Also modified keepalive settings on the client/server config files to prevent ssh sessions from freezing.