question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH launcher failing for unknown reason

See original GitHub issue

Hi,

When a build job is triggered, a container is provisioned as expected. However, the build job still waiting for the node to be online.

Feb 12, 2016 10:34:00 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud provision Asked to provision 1 slave(s) for: docker-utopic Feb 12, 2016 10:34:00 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud provision Will provision 'test/utopic-amd64', for label: 'docker-utopic', in cloud: 'docker_cloud' Feb 12, 2016 10:34:00 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave Not Provisioning 'test/utopic-amd64'; Server 'docker_cloud' full with '1' container(s)

As we can see, the plugin isn’t provisioning because one container has already been started.

Feb 12, 2016 10:34:00 AM WARNING hudson.slaves.NodeProvisioner$2 run Provisioned slave Image of test/utopic-amd64 failed to launch java.lang.NullPointerException at com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher.getAddressForSSHD(DockerComputerSSHLauncher.java:126) at com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher.waitUp(DockerComputerSSHLauncher.java:79) at com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:393) at com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:57) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:242) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:239) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

If I attach the container, I see ssh running as expected. And if I try to login with ssh localhost, it works as expected. Looks like the ssh credentials are properly set up.

Any ideas what’s going on?

  • Jenkins v1.642.1
  • Docker 1.10.1
  • Docker plugin 0.16.0

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
changsijaycommented, Aug 10, 2016

I see the log message in jenkins.log(I am running docker v1.12)

WARNING: Provisioned agent Image of evarga/jenkins-slave failed to launch
com.github.dockerjava.api.BadRequestException: {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}

and I see the issue was mentioned in docker-java https://github.com/docker-java/docker-java/issues/615

0reactions
ndeloofcommented, Oct 10, 2017

This should be fixed now, please reopen if you still see this issue with latest release

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the SSH "Connection Refused" Error - Kinsta
Your server's SSH daemon may be down for a wide variety of reasons, including unexpected traffic spikes, resource outages, or even a Distributed ......
Read more >
How to Fix the SSH “Connection Refused” Error - YouTube
Are you getting the 'Connection refused' error over SSH ? ‍♂️ Learn why that's happening and how to troubleshoot SSH connectivity errors.
Read more >
Tips to fix your SSH authentication issues - ARDC Support
Solution: Restarting the instance's network services should cause “sshd” to start. If you cannot login via the Console to do this, then a...
Read more >
Troubleshooting SSH errors - Compute Engine - Google Cloud
The troubleshooting tool performs the following tests to check for the cause of failed SSH connections: User permissions tests: Checks if you have...
Read more >
Unable to do RDP/SSH session from my computer. but with ...
java.lang.Thread.run(Unknown Source). Cause: Error type: ConnectException. Error message: Connection timed out: connect. Stack trace:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found