jenkinsci / jenkinsci/ssh-agent-plugin

[JENKINS-55256] ssh-agent in pipeline leaves defunct processes on swarm client

Open
#242 10 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

We run build nodes via Docker and the Swarm Plugin. After a while defunct processes start to pile up on the nodes:

 


1000 9386 9371 1 Dec18 ? 00:10:49 java -jar /usr/share/jenkins/swarm-client-3.15-jar-with-dependencies.jar -fsroot /var/jenkins-node_home -master https://jenkins.cosmos.local -username XXX -password XXX -executors 10 -mode exclusive -labels linux basic build -name basic-node-dc -disableSslVerification -description Basic node

[root@​XXX:/root]# ps -ef | grep defu 

1000 2489 9386 0 Dec18 ? 00:00:00 [ssh-agent]  

1000 2514 9386 0 Dec18 ? 00:00:00 [ssh-agent]  

1000 2544 9386 0 Dec18 ? 00:00:00 [ssh-agent]  

1000 2618 9386 0 Dec18 ? 00:00:00 [ssh-agent]  

...


 

We run ssh-agent often through many scripted pipelines so it is hard to trace it down to a specific Pipeline, but this behavior shouldn't occur to begin with.

 

---
Originally reported by pmr, imported from: ssh-agent in pipeline leaves defunct processes on swarm client


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

Raw content of original issue

We run build nodes via Docker and the Swarm Plugin. After a while defunct processes start to pile up on the nodes:

 


1000 9386 9371 1 Dec18 ? 00:10:49 java -jar /usr/share/jenkins/swarm-client-3.15-jar-with-dependencies.jar -fsroot /var/jenkins-node_home -master https://jenkins.cosmos.local -username XXX -password XXX -executors 10 -mode exclusive -labels linux basic build -name basic-node-dc -disableSslVerification -description Basic node

[root@XXX:/root]# ps -ef | grep defu 
1000 2489 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
1000 2514 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
1000 2544 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
1000 2618 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 

...


 

We run ssh-agent often through many scripted pipelines so it is hard to trace it down to a specific Pipeline, but this behavior shouldn't occur to begin with.

 

  • environment: Jenkins ver. 2.150.1, SSH Agent Plugin 1.17, Self-Organizing Swarm Plug-in Modules 3.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.