Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception into getAddressForSSHD #360

Closed
schipiga opened this issue Dec 13, 2015 · 3 comments
Closed

Exception into getAddressForSSHD #360

schipiga opened this issue Dec 13, 2015 · 3 comments

Comments

@schipiga
Copy link

Hello!

I'm trying to use Jenkins Docker plugin, but provisining breaks with exception:

Dec 13, 2015 2:27:04 PM SEVERE com.nirima.jenkins.plugins.docker.DockerCloud$1 call

Error in provisioning; template='DockerTemplate{configVersion=2, labelString='docker-image', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@939fe2a, remoteFsMapping='', remoteFs='/home/user/jenkins', instanceCap=1, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@461ab00d, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image=my_ubuntu_image}, removeVolumes=false, pullStrategy=PULL_NEVER}' for cloud='docker'
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)

Jenkins v1.641
Docker v1.9.1
Plugin v0.16

Please, help

@Thomas-Clark
Copy link

If you're running your containers on a different host, do you have ports exposed? Check the output of "docker ps" on your Docker host when a slave is running.

@schipiga
Copy link
Author

Hello @Thomas-Clark,

I found the core of problem. It's related with API changing in docker v1.9. The patch from pr #320 fixed my issue.

@KostyaSha
Copy link
Member

@sergeychipiga #320 (comment)
Duplicates #320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants