Skip to content

[JENKINS-71537] ssh-add is timing out in a Fargate worker #268

@jenkins-infra-bot

Description

@jenkins-infra-bot

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]

{[Pipeline] sh[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?


Originally reported by cestioco, imported from: ssh-add is timing out in a Fargate worker
  • status: Open
  • priority: Minor
  • component(s): ssh-agent-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20260604-211335
Raw content of original issue

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]

{[Pipeline] sh[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?

  • environment: Jenkins 2.401.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions