Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43716

Job fails because the ssh agent cannot be killed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-agent-plugin
    • None
    • Jenkins 1.651.1
      Node = Fedora 20
      SSH-agent plugin: 1.14

      I have a job that starts a ssh-agent:
      [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-iJL2AkutZ8Xm/agent.27447
      SSH_AGENT_PID=27449
      [ssh-agent] Started.
      Sometimes, the process of the ssh-agent dies during the job execution (the job runs during a couple of hours).

      When terminating the job, Jenkins tries to kill the ssh-agent, but this fails
      $ ssh-agent -k
      kill: No such process
      ERROR: Failed to run ssh-agent -k
      This makes the job fail.

       

            Unassigned Unassigned
            terrapin Jan Hollevoet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: