Skip to content

[JENKINS-72926] SSH disconnects unless I remove slave_setup.ini #145

@jenkins-infra-bot

Description

@jenkins-infra-bot

Mostly just recording this in case anyone else has similar issues.

Symptom:

Closing SSH Session to: xxx
FATAL: Failed to launch Agent
Closing SSH Connection to
FATAL: SSH Agent launch failed on: user@​xxx:22
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to system-tasks-xxx-30fd0b5e-4d02-4502-8668-79ed7c5c5ad8
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787)
        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
        at hudson.remoting.Channel.call(Channel.java:1003)
        at hudson.FilePath.act(FilePath.java:1230)
        at hudson.FilePath.act(FilePath.java:1219)
        at hudson.FilePath.readToString(FilePath.java:2493)
        at org.jenkinsci.plugins.slave_setup.Components.createConfigStream(Components.java:356)
        at org.jenkinsci.plugins.slave_setup.Components.Initialize(Components.java:68)
        at org.jenkinsci.plugins.slave_setup.Components.(Components.java:55)
        at org.jenkinsci.plugins.slave_setup.ComputerListenerImpl.preOnline(ComputerListenerImpl.java:42)
        at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:720)
        at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:441)
        at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launchAgent(SshComputerLauncher.java:308)
        at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launch(SshComputerLauncher.java:118)
        at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297)
        at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
        at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
 

Workaround:

remove slave_setup.ini

Versions:

Jenkins: 2.440.1

slave-setup: 1.16


Originally reported by mikeycarter, imported from: SSH disconnects unless I remove slave_setup.ini
  • status: Open
  • priority: Minor
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251216-225446
Raw content of original issue

Mostly just recording this in case anyone else has similar issues.

Symptom:

Closing SSH Session to: xxx
FATAL: Failed to launch Agent
Closing SSH Connection to
FATAL: SSH Agent launch failed on: user@xxx:22
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to system-tasks-xxx-30fd0b5e-4d02-4502-8668-79ed7c5c5ad8
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787)
        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
        at hudson.remoting.Channel.call(Channel.java:1003)
        at hudson.FilePath.act(FilePath.java:1230)
        at hudson.FilePath.act(FilePath.java:1219)
        at hudson.FilePath.readToString(FilePath.java:2493)
        at org.jenkinsci.plugins.slave_setup.Components.createConfigStream(Components.java:356)
        at org.jenkinsci.plugins.slave_setup.Components.Initialize(Components.java:68)
        at org.jenkinsci.plugins.slave_setup.Components.<init>(Components.java:55)
        at org.jenkinsci.plugins.slave_setup.ComputerListenerImpl.preOnline(ComputerListenerImpl.java:42)
        at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:720)
        at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:441)
        at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launchAgent(SshComputerLauncher.java:308)
        at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launch(SshComputerLauncher.java:118)
        at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:297)
        at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
        at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
 

Workaround:

remove slave_setup.ini

Versions:

Jenkins: 2.440.1

slave-setup: 1.16

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions