Code Monkey home page Code Monkey logo

Comments (5)

hawky-4s- avatar hawky-4s- commented on July 25, 2024

I have the same issue, running Docker-Plugin 0.7 on an Ubuntu 14.04 with Jenkins package installed. Docker host is configured as http://127.0.0.1:2375.
The job starts and docker-plugin tries to download the requested image (it is not on host yet), then this appears in the jenkins log:

Jul 28, 2014 4:37:41 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
INFO: Excess workload after pending Spot instances: 1
Jul 28, 2014 4:37:41 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Images found: []
Jul 28, 2014 4:37:41 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Pulling image camunda/camunda-ci-docker-mysql since one was not found.  This may take awhile...
Jul 28, 2014 4:37:41 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Finished pulling image camunda/camunda-ci-docker-mysql
Jul 28, 2014 4:37:41 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
WARNING: Failed to count the # of live instances on Docker
javax.ws.rs.NotFoundException: HTTP 404 Not Found
        at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:917)
        at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:822)
        at org.glassfish.jersey.client.JerseyInvocation.access$600(JerseyInvocation.java:90)
        at org.glassfish.jersey.client.JerseyInvocation$3.call(JerseyInvocation.java:693)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422)
        at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:689)
        at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:405)
        at org.glassfish.jersey.client.proxy.WebResourceFactory.invoke(WebResourceFactory.java:318)
        at com.sun.proxy.$Proxy76.inspectImage(Unknown Source)
        at com.nirima.docker.client.DockerClient$Image.inspect(DockerClient.java:466)
        at com.nirima.jenkins.plugins.docker.DockerCloud.countCurrentDockerSlaves(DockerCloud.java:264)
        at com.nirima.jenkins.plugins.docker.DockerCloud.addProvisionedSlave(DockerCloud.java:284)
        at com.nirima.jenkins.plugins.docker.DockerCloud.provision(DockerCloud.java:154)
        at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:281)
        at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
        at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:368)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)

Jul 28, 2014 4:37:51 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
INFO: Excess workload after pending Spot instances: 1
Jul 28, 2014 4:37:51 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Images found: []
Jul 28, 2014 4:37:51 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Pulling image camunda/camunda-ci-docker-mysql since one was not found.  This may take awhile...
Jul 28, 2014 4:37:51 PM com.nirima.jenkins.plugins.docker.DockerCloud countCurrentDockerSlaves
INFO: Finished pulling image camunda/camunda-ci-docker-mysql
Jul 28, 2014 4:37:51 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
WARNING: Failed to count the # of live instances on Docker
javax.ws.rs.NotFoundException: HTTP 404 Not Found
        at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:917)
        at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:822)
        at org.glassfish.jersey.client.JerseyInvocation.access$600(JerseyInvocation.java:90)
        at org.glassfish.jersey.client.JerseyInvocation$3.call(JerseyInvocation.java:693)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422)
        at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:689)
        at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:405)
        at org.glassfish.jersey.client.proxy.WebResourceFactory.invoke(WebResourceFactory.java:318)
        at com.sun.proxy.$Proxy76.inspectImage(Unknown Source)
        at com.nirima.docker.client.DockerClient$Image.inspect(DockerClient.java:466)
        at com.nirima.jenkins.plugins.docker.DockerCloud.countCurrentDockerSlaves(DockerCloud.java:264)
        at com.nirima.jenkins.plugins.docker.DockerCloud.addProvisionedSlave(DockerCloud.java:284)
        at com.nirima.jenkins.plugins.docker.DockerCloud.provision(DockerCloud.java:154)
        at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:281)
        at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
        at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:368)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)

Test connection in Jenkins works.

from docker-plugin.

hawky-4s- avatar hawky-4s- commented on July 25, 2024

Nvm, I had a typo in the image name.

from docker-plugin.

 avatar commented on July 25, 2024

I had the same problem with Docker-Plugin 0.7. I then looked into the code... recognized, that currently the latest tag is added automatically removed it from my id et voila... it worked.

from docker-plugin.

abraverm avatar abraverm commented on July 25, 2024

I'm experiencing the same issue with 0.7 using custom tags (user/repository:my_tag). Quick fix is to use image ID

from docker-plugin.

KostyaSha avatar KostyaSha commented on July 25, 2024

@abraverm please try new hpi from https://jenkins.ci.cloudbees.com/job/plugins/job/docker-plugin/246/com.nirima$docker-plugin/ if issue still exists please open new issue with full description https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription

from docker-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.