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

Plugin launches the wrong image #43

Closed
thomassuckow opened this issue Jun 24, 2014 · 1 comment
Closed

Plugin launches the wrong image #43

thomassuckow opened this issue Jun 24, 2014 · 1 comment

Comments

@thomassuckow
Copy link
Contributor

I am seeing behavior where the plugin is launching the wrong image and then everything is deadlocked because nothing is pending to be built on that image.

Jun 24, 2014 11:54:34 AM com.nirima.jenkins.plugins.docker.DockerRetentionStrategy check
INFO: Idle timeout: ca6d257006e1@Docker1
Jun 24, 2014 11:54:34 AM com.nirima.jenkins.plugins.docker.DockerRetentionStrategy check
INFO: Terminating DockerComputer{name=ca6d257006e1@Docker1, slave=DockerSlave{name=ca6d257006e1@Docker1, containerId=ca6d257006e1b12c5d6ad1c04fbdea2d4acba5000bfca100c1583925ad288c23, template=DockerTemplate{image=fedora_jenkins_clang, parent=DockerCloud{name=Docker1, serverUrl=REDACTED}}}
Jun 24, 2014 11:54:34 AM com.nirima.jenkins.plugins.docker.DockerCloud connect
INFO: Building connection to docker host Docker1 URL REDACTED
Jun 24, 2014 11:54:34 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel ca6d257006e1@Docker1
java.io.IOException: Unexpected termination of the channel
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2303)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2772)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:278)
        at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40)
        at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
Jun 24, 2014 11:54:38 AM com.nirima.jenkins.plugins.docker.DockerCloud connect
INFO: Building connection to docker host Docker1 URL REDACTED
Jun 24, 2014 11:54:43 AM com.nirima.jenkins.plugins.docker.DockerCloud provision
INFO: Excess workload after pending Spot instances: 1
Jun 24, 2014 11:54:43 AM com.nirima.jenkins.plugins.docker.DockerCloud connect
INFO: Building connection to docker host Docker1 URL REDACTED
Jun 24, 2014 11:54:43 AM com.nirima.jenkins.plugins.docker.DockerCloud connect
INFO: Building connection to docker host Docker1 URL REDACTED
Jun 24, 2014 11:54:43 AM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave
INFO: Provisioning for AMI rhel6_jenkins:6.5; Estimated number of total slaves: 0; Estimated number of slaves for ami rhel6_jenkins:6.5: 0
Launching rhel6_jenkins:6.5
Jun 24, 2014 11:54:43 AM hudson.slaves.NodeProvisioner update
INFO: Started provisioning Image of rhel6_jenkins:6.5 from Docker1 with 1 executors. Remaining excess workload:7.1525574E-7

Except nothing wants that image, so there is no reason to have launched it.

Further down in the log is also the following which may mean this is related to #41

SEVERE: Failed to remove instance ca6d257006e1b12c5d6ad1c04fbdea2d4acba5000bfca100c1583925ad288c23 for slave ca6d257006e1@Docker1 due to exception
javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
        at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:184)
        at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:227)
        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.$Proxy73.removeContainer(Unknown Source)
        at com.nirima.docker.client.DockerClient$Container.remove(DockerClient.java:333)
        at com.nirima.jenkins.plugins.docker.DockerSlave._terminate(DockerSlave.java:103)
        at hudson.slaves.AbstractCloudSlave.terminate(AbstractCloudSlave.java:62)
        at com.nirima.jenkins.plugins.docker.DockerSlave.retentionTerminate(DockerSlave.java:213)
        at com.nirima.jenkins.plugins.docker.DockerRetentionStrategy.check(DockerRetentionStrategy.java:55)
        at com.nirima.jenkins.plugins.docker.DockerRetentionStrategy.check(DockerRetentionStrategy.java:14)
        at hudson.slaves.ComputerRetentionWork.doRun(ComputerRetentionWork.java:66)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:698)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:641)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1218)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
        at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:276)
        at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:182)
        ... 27 more
thomassuckow pushed a commit to thomassuckow/docker-plugin that referenced this issue Jul 16, 2014
* Fix provisioning a slave on a job for 'any' slave

Resolves cause of jenkinsci#54, jenkinsci#43
@thomassuckow
Copy link
Contributor Author

Duplicate of #54

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

1 participant