jenkinsci / jenkinsci/ssh-agent-plugin

[JENKINS-53387] ssh-add - Text file busy

Open
#240 2 comments 0 reactions 0 assignees View on GitHub
component:ssh-agent-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
63
Forks
81
Avg merge
5h 36m
Merged PRs (30d)
9

Description

Random error `Text file busy` when using ssh-agent

 

[Pipeline] {

[Pipeline] withCredentials
[Pipeline] {
[Pipeline] sshagent
[ssh-agent] Using credentials APP_SSH_KEY
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-QWEfM28796/agent.28796
SSH_AGENT_PID=28800
$ ssh-add /jenkins/workspace/myjob@​tmp/private_key_1395343975081553490.key
Identity added: /jenkins/workspace/myjob@​tmp/private_key_1395343975081553490.key (/jenkins/workspace/myjob@​tmp/private_key_1395343975081553490.key)
$ ssh-add /jenkins/workspace/myjob@​tmp/private_key_503513565487944952.key
ssh_askpass: exec(/jenkins/workspace/myjob@​tmp/askpass_1445148365080710750.sh): Text file busy [Pipeline] // sshagent [Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Failed to run ssh-add

Finished: FAILURE

---
Originally reported by phgr100x, imported from: ssh-add - Text file busy


  • status: Open
  • priority: Major
  • component(s): ssh-agent-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20260604-211335

Raw content of original issue

Random error `Text file busy` when using ssh-agent

 



[Pipeline] {

[Pipeline] withCredentials
[Pipeline] {
[Pipeline] sshagent
[ssh-agent] Using credentials APP_SSH_KEY
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-QWEfM28796/agent.28796
SSH_AGENT_PID=28800
$ ssh-add /jenkins/workspace/myjob@tmp/private_key_1395343975081553490.key
Identity added: /jenkins/workspace/myjob@tmp/private_key_1395343975081553490.key (/jenkins/workspace/myjob@tmp/private_key_1395343975081553490.key)
$ ssh-add /jenkins/workspace/myjob@tmp/private_key_503513565487944952.key
ssh_askpass: exec(/jenkins/workspace/myjob@tmp/askpass_1445148365080710750.sh): Text file busy [Pipeline] // sshagent [Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Failed to run ssh-add


Finished: FAILURE

environment

```
Jenkins 2.121.3

ss-agent-plugin 1.15
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.