You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in one of our tasks, the drone-ssh command is never returned which is causing the task to hang and eventually timeout.
From the log output, we can see the scripts passed to the drone-ssh command have been successfully executed. But it's just not returning and ending the drone-ssh command.
Could you please help identify where the issue might be? I'm using latest tag.
I'd done some further tests today and it turns out even if I am running the drone-ssh binary on its own, the session won't close.
Here's what I tested.
Then I am able to execute the script.sh on the remote host. I can see from the console it reaches to the end of the script. However, it was at this point the session won't return and the drone-ssh process looking like hanging and doing nothing.
I did another test, which in the first terminal window the drone-ssh runs to the end of the remote script. I opened another terminal window and executed same command.
Then after a couple of seconds, the drone-ssh process in the first window successfully returned and runs to a complete state.
But then the second window would run to the end and kept hanging there.
We are using drone-ssh in our tekton pipeline for remote execution of some commands on our servers. As advised by the tekton community: https://hub.tekton.dev/tekton/task/remote-ssh-commands.
However, in one of our tasks, the
drone-ssh
command is never returned which is causing the task to hang and eventually timeout.From the log output, we can see the scripts passed to the
drone-ssh
command have been successfully executed. But it's just not returning and ending the drone-ssh command.Could you please help identify where the issue might be? I'm using
latest
tag.Same issue has been reported to tekton as well: tektoncd/catalog#1277
Task configuration in the pipeline:
Task definition, as shown in the tekton catalog source here: https://github.com/tektoncd/catalog/blob/main/task/remote-ssh-commands/0.1/remote-ssh-commands.yaml
The text was updated successfully, but these errors were encountered: