-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.401.1
I have a Jenkins instance which spins up workers in Fargate. However, the following occurs when I try to run sshagent:
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine)
SSH_AUTH_SOCK=/tmp/ssh-BX6ulrCb6Ksu/agent.163
SSH_AGENT_PID=166
Running ssh-add (command line suppressed)
ERROR: Timeout after 1 minutes
[ssh-agent] Started.[Pipeline]
ERROR: Timeout after 1 minutes
[ssh-agent] Stopped.[Pipeline] // sshagent
Any idea why it might be timing out? I imagine were it failing to add the provided key, it would not be a time out, rather an explicit error no?
I have since moved to using EC2 runners but it still happens. I think I'm bumping into the problem described here:
So, I tried to solve it by mounting /tmp in container to /tmp in host. However, though the ssh socket files are now reflected in the host's /tmp, the same problem persists.