Docker Plugin is creating issues in log and when manually creating non docker node
See original GitHub issue- docker-plugin version you use: 1.1.2
- jenkins version you use: 2.73.2
- docker engine version you use: 17.09.1-ce
- stack trace / logs / any technical details that could help diagnose this issue
Jenkins exception in the logs show the below error, even when there is no templates added or jobs running that would require a docker container to run in.
Timer task hudson.model.LoadStatistics$LoadStatisticsUpdater@1d3715b0 failed
java.lang.NullPointerException
at com.nirima.jenkins.plugins.docker.DockerCloud.getTemplates(DockerCloud.java:388)
at com.nirima.jenkins.plugins.docker.DockerCloud.getTemplate(DockerCloud.java:340)
at com.nirima.jenkins.plugins.docker.DockerCloud.canProvision(DockerCloud.java:322)
at hudson.model.Label.getClouds(Label.java:227)
at hudson.model.Label.isEmpty(Label.java:436)
at jenkins.model.Jenkins.getLabels(Jenkins.java:2018)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:395)
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:748)
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Docker Engine managed plugin system
Installing and using a plugin🔗 · Install the sshfs plugin. · Check that the plugin is enabled in the output of docker plugin...
Read more >Configure logging drivers - Docker Documentation
Configure the default logging driver json configuration file. Refer to the “daemon configuration file” section in the dockerd reference manual for details. ...
Read more >Docker daemon configuration overview
This page shows you how to customize the Docker daemon, dockerd . Note. This page is for users who've installed Docker Engine manually....
Read more >docker service create - Docker Documentation
Creates a service as described by the specified parameters. Note. This is a cluster management command, and must be executed on a swarm...
Read more >Docker Context - Docker Documentation
This guide shows how contexts make it easy for a single Docker CLI to manage multiple Swarm clusters, multiple Kubernetes clusters, and multiple...
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

For those in need of a workaround until there’s an official release, I would suggest that you try going into Manage Jenkins -> Configure System and scroll down to the cloud section and add a Template to your Docker Cloud. If you give it a nonsense label and only run it for builds matching that label then it should have zero impact. It doesn’t even need to have a valid image etc. i.e. Because this bug is caused by having no “list of templates”, I would expect that if you have a template instead of no templates, then the problem will vanish.
That should, I hope, tide you over until the next release.
On our jenkins deployment, the “Restrict where this project can be run” option had disappeared from all our job configurations. Looking in the log, I saw the error mentioned by the OP, which lead me here. After disabling the ‘docker plugin’, the “Restrict where this project can be run” option is again visible! Is anyone else seeing this or understand why this issue would cause the option to disappear?