java.lang.ClassCastException :io.jenkins.docker.DockerComputer cannot be cast to hudson.slaves.AbstractCloudComputer
See original GitHub issueHI 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)

Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MrZoidberg yes, fixed in 1.1.1 (DockerCloudRetentionStrategy is automatically migrated to DockerOnceRetentionStrategy)
Thank you, @ndeloof!