java.io.IOException: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa

Jenkins JIRA | Joshua Spence | 10 months ago
  1. 0

    When trying to use the Docker plugins, I get an exception: {code} FATAL: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa java.io.IOException: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa at hudson.remoting.UserRequest.serialize(UserRequest.java:168) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:779) at org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller.performInstallation(DockerToolInstaller.java:74) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at org.jenkinsci.plugins.docker.commons.tools.DockerTool.forNode(DockerTool.java:107) at org.jenkinsci.plugins.docker.commons.tools.DockerTool.getExecutable(DockerTool.java:80) at com.cloudbees.jenkins.plugins.docker_build_env.Docker.<init>(Docker.java:50) at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.decorateLauncher(DockerBuildWrapper.java:132) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at hudson.remoting.UserRequest._serialize(UserRequest.java:157) at hudson.remoting.UserRequest.serialize(UserRequest.java:166) ... 16 more Finished: FAILURE {code}

    Jenkins JIRA | 10 months ago | Joshua Spence
    java.io.IOException: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa
  2. 0

    When trying to use the Docker plugins, I get an exception: {code} FATAL: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa java.io.IOException: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa at hudson.remoting.UserRequest.serialize(UserRequest.java:168) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:779) at org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller.performInstallation(DockerToolInstaller.java:74) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at org.jenkinsci.plugins.docker.commons.tools.DockerTool.forNode(DockerTool.java:107) at org.jenkinsci.plugins.docker.commons.tools.DockerTool.getExecutable(DockerTool.java:80) at com.cloudbees.jenkins.plugins.docker_build_env.Docker.<init>(Docker.java:50) at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.decorateLauncher(DockerBuildWrapper.java:132) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at hudson.remoting.UserRequest._serialize(UserRequest.java:157) at hudson.remoting.UserRequest.serialize(UserRequest.java:166) ... 16 more Finished: FAILURE {code}

    Jenkins JIRA | 10 months ago | Joshua Spence
    java.io.IOException: Unable to serialize org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller$1@5ee9f1aa
  3. 0

    We are getting the following exception when trying to create a bundle using the CRX plugin. Note that we are not building on the master node, rather a separate Linux build node. We have found other plugins that have had the same "Unable to serialize" issue: https://issues.jenkins-ci.org/browse/JENKINS-29938 We would like to be able to farm jobs using the CRX plugin to non-master build nodes if possible. Thanks in advance. Building remotely on linuxbuildnode (x86_64) in workspace /jenkins/workspace/MyJob FATAL: remote file operation failed: /mnt/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 at hudson.FilePath.act(FilePath.java:985) at hudson.FilePath.act(FilePath.java:967) at org.jenkinsci.plugins.graniteclient.BuildPackageBuilder.perform(BuildPackageBuilder.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.build(Build.java:203) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 at hudson.remoting.UserRequest.serialize(UserRequest.java:169) at hudson.remoting.UserRequest.<init>(UserRequest.java:63) at hudson.remoting.Channel.call(Channel.java:776) at hudson.FilePath.act(FilePath.java:978) ... 11 more Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.graniteclient.JenkinsResponseProgressListener at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at hudson.remoting.UserRequest._serialize(UserRequest.java:158) at hudson.remoting.UserRequest.serialize(UserRequest.java:167) ... 14 more Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Finished: FAILURE

    Jenkins JIRA | 1 year ago | Brent Duffy
    java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-31463] Unable to serialize hudson.FilePath when Building a package with CRX plugin - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
  6. 0

    We are getting the following exception when trying to create a bundle using the CRX plugin. Note that we are not building on the master node, rather a separate Linux build node. We have found other plugins that have had the same "Unable to serialize" issue: https://issues.jenkins-ci.org/browse/JENKINS-29938 We would like to be able to farm jobs using the CRX plugin to non-master build nodes if possible. Thanks in advance. Building remotely on linuxbuildnode (x86_64) in workspace /jenkins/workspace/MyJob FATAL: remote file operation failed: /mnt/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 at hudson.FilePath.act(FilePath.java:985) at hudson.FilePath.act(FilePath.java:967) at org.jenkinsci.plugins.graniteclient.BuildPackageBuilder.perform(BuildPackageBuilder.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.build(Build.java:203) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7 at hudson.remoting.UserRequest.serialize(UserRequest.java:169) at hudson.remoting.UserRequest.<init>(UserRequest.java:63) at hudson.remoting.Channel.call(Channel.java:776) at hudson.FilePath.act(FilePath.java:978) ... 11 more Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.graniteclient.JenkinsResponseProgressListener at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at hudson.remoting.UserRequest._serialize(UserRequest.java:158) at hudson.remoting.UserRequest.serialize(UserRequest.java:167) ... 14 more Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Finished: FAILURE

    Jenkins JIRA | 1 year ago | Brent Duffy
    java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    6. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    6 frames
  3. Hudson :: Remoting Layer
    Channel.call
    1. hudson.remoting.UserRequest._serialize(UserRequest.java:157)
    2. hudson.remoting.UserRequest.serialize(UserRequest.java:166)
    3. hudson.remoting.UserRequest.<init>(UserRequest.java:62)
    4. hudson.remoting.Channel.call(Channel.java:779)
    4 frames
  4. org.jenkinsci.plugins
    DockerToolInstaller.performInstallation
    1. org.jenkinsci.plugins.docker.commons.tools.DockerToolInstaller.performInstallation(DockerToolInstaller.java:74)
    1 frame
  5. Hudson
    ToolInstallation.translateFor
    1. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
    2. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
    3. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
    3 frames
  6. org.jenkinsci.plugins
    DockerTool.getExecutable
    1. org.jenkinsci.plugins.docker.commons.tools.DockerTool.forNode(DockerTool.java:107)
    2. org.jenkinsci.plugins.docker.commons.tools.DockerTool.getExecutable(DockerTool.java:80)
    2 frames
  7. com.cloudbees.jenkins
    DockerBuildWrapper.decorateLauncher
    1. com.cloudbees.jenkins.plugins.docker_build_env.Docker.<init>(Docker.java:50)
    2. com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.decorateLauncher(DockerBuildWrapper.java:132)
    2 frames
  8. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
    3. hudson.model.Run.execute(Run.java:1738)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    5. hudson.model.ResourceController.execute(ResourceController.java:98)
    6. hudson.model.Executor.run(Executor.java:410)
    6 frames