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.

java.lang.ClassCastException :io.jenkins.docker.DockerComputer cannot be cast to hudson.slaves.AbstractCloudComputer

See original GitHub issue

HI team

after we upgraded from 1.0.4 to 1.1 now our server keep unsuccessfully provision nodes in infinite loop tried on jenkins ver 2.73.2 and 2.89.1 lts both same issue. Exception appearing in log:

Timer task hudson.slaves.ComputerRetentionWork@528d4c34 failed
java.lang.ClassCastException: io.jenkins.docker.DockerComputer cannot be cast to hudson.slaves.AbstractCloudComputer
	at hudson.slaves.CloudRetentionStrategy.check(CloudRetentionStrategy.java:43)
	at hudson.slaves.ComputerRetentionWork$1.run(ComputerRetentionWork.java:72)
	at hudson.model.Queue._withLock(Queue.java:1373)
	at hudson.model.Queue.withLock(Queue.java:1250)
	at hudson.slaves.ComputerRetentionWork.doRun(ComputerRetentionWork.java:63)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	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)

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ndeloofcommented, Dec 11, 2017

@MrZoidberg yes, fixed in 1.1.1 (DockerCloudRetentionStrategy is automatically migrated to DockerOnceRetentionStrategy)

0reactions
adverescommented, Dec 11, 2017

Thank you, @ndeloof!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.ClassCastException: hudson.slaves.SlaveComputer ...
Hi,. I have configured a cloud (Bracket) VM as jenkins slave and while trying to save configuration, I am getting the following error....
Read more >
Jenkins is not able to create dumb slave when Docker plugin ...
javax.servlet.ServletException: java.lang.ClassCastException: hudson.slaves.SlaveComputer cannot be cast to hudson.slaves.
Read more >
jenkins docker slave image won't launch - Stack Overflow
When I kick off the jenkins job the image is pulled, and then I see this error. It appears that it's a fault...
Read more >
How To Setup Docker Containers As Build Agents For Jenkins
In this guide, I will walk you through the steps for configuring docker containers as build agents/slaves for Jenkins using the Jenkins Docker...
Read more >
hudson.slaves.NodeProperty Java Exaples - ProgramCreek.com
public void createGlobalEnvironmentVariables(String key, String value){ Jenkins instance = Jenkins.getInstance(); DescribableList<NodeProperty<?> ...
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