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

Upgrade of Jackson 2 API plugin to 2.12.0 breaks docker-cloud. #178

Closed
ymagriso opened this issue Dec 7, 2020 · 1 comment
Closed

Upgrade of Jackson 2 API plugin to 2.12.0 breaks docker-cloud. #178

ymagriso opened this issue Dec 7, 2020 · 1 comment

Comments

@ymagriso
Copy link
Contributor

ymagriso commented Dec 7, 2020

After upgrading to odavid/my-bloody-jenkins:2.263.1-235, which includes the upgrade of Jackson 2 API plugin to 2.12.0, I am encountering the following error when trying to build on docker-cloud based nodes:

SEVERE	c.n.j.p.docker.DockerCloud$1#run: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='simple-docker-node', connector=DockerComputerJNLPConnector{jnlpLauncher=hudson.slaves.JNLPLauncher@3af392cd, jenkinsUrl='http://jenkins:8080'}, instanceCap=5, mode=EXCLUSIVE, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@29, dockerTemplateBase=DockerTemplateBase{image='jenkins-jnlp-slave:latest', network'='some-network-bridge', volumes=[/var/run/docker.sock:/var/run/docker.sock], environment=[TZ=Asia/Jerusalem, http_proxy=http://proxy.company.com:8080, https_proxy=http://proxy.company.com:8080, no_proxy=.company.com,localhost,127.0.0.1], bindAllPorts=false, memoryLimit=0, memorySwap=0, cpuShares=0, privileged=true, tty=false}, removeVolumes=true, stopTimeout=10, pullStrategy=PULL_NEVER, pullTimeout=0, nodeProperties=[hudson.slaves.EnvironmentVariablesNodeProperty@325aea7b], disabled=BySystem,0 ms,4 min 59 sec,Template provisioning failed.}' for cloud='docker-cloud'
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.github.dockerjava.api.model.Volume` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('/var/run/docker.sock')
at [Source: (byte[])"{"Id":"fec4090ebbb912011c86176a02cac305a9ba0fd3ff66ed70f04398e3a8202569","Created":"2020-12-07T17:32:46.906204069Z","Path":"tiny","Args":["--","/entrypoint.sh","-url","http://jenkins:8080","9bad855083c45465f9a3504fa6c18d6895dea9b9fa402ba304679b72286b5d48","docker-002bqoq26d70a"],"State":{"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":21229,"ExitCode":0,"Error":"","StartedAt":"2020-12-07T17:32:47.405912845Z","FinishedAt":"0001-01-"[truncated 7816 bytes]; line: 1, column: 4859] (through reference chain: com.github.dockerjava.api.command.InspectContainerResponse["Mounts"]->java.util.ArrayList[0]->com.github.dockerjava.api.command.InspectContainerResponse$Mount["Destination"])

Apparently, the issue has been reported in several places:

Can the plugin be downgraded back to 2.11.3?

@odavid odavid closed this as completed in 773c672 Dec 9, 2020
@odavid
Copy link
Owner

odavid commented Dec 9, 2020

Hi @ymagriso
Will release a new version soon.
You will need to delete all the $JENKINS_HOME/plugins directory before upgrading.

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

2 participants