Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57116

MismatchedInputException: No content to map due to end-of-input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      After upgrading to version 1.15.1 we're unable to create pods with this error:

      WARNING: Error in provisioning; agent=KubernetesSlave name: jdk8-rvt2j, template=PodTemplate{inheritFrom='', name='jdk8', namespace='', instanceCap=8, idleMinutes=120, label='java java8', serviceAccount='jenkins-slaves', nodeSelector='', nodeUsageMode=NORMAL, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], volumes=[SecretVolume [mountPath=/home/jenkins/nexus-jenkins-auth, secretName=nexus-jenkins-auth, defaultMode=null], SecretVolume [mountPath=/home/jenkins/sonar-jenkins-auth, secretName=sonar-jenkins-auth, defaultMode=null], EmptyDirVolume [mountPath=/tmp, memory=false]], containers=[ContainerTemplate{name='jnlp', image='docker-registry.default.svc:5000/ci-devtools/jenkins-slave-java8', alwaysPullImage=true, workingDir='/tmp', command='', args='${computer.jnlpmac} ${computer.name}', ttyEnabled=true, resourceRequestCpu='1', resourceRequestMemory='2Gi', resourceLimitCpu='1', resourceLimitMemory='4Gi', livenessProbe=org.csanchez.jenkins.plugins.kubernetes.ContainerLivenessProbe@23dd88f}], envVars=[KeyValueEnvVar [getValue()=/home/jenkins, getKey()=HOME], KeyValueEnvVar [getValue()=-Xmx1024m, getKey()=JAVA_OPTS], KeyValueEnvVar [getValue()=-Duser.timezone=Europe/Berlin -Djava.security.egd=file:/dev/urandom -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8, getKey()=JAVA_TOOL_OPTIONS]]}
      io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
      	at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64)
      	at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:53)
      	at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:238)
      	at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:191)
      	at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:178)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.unmarshal(OperationSupport.java:495)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.load(BaseOperation.java:331)
      	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.load(BaseOperation.java:67)
      	at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.parseFromYaml(PodTemplateUtils.java:509)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      	at org.csanchez.jenkins.plugins.kubernetes.PodTemplateBuilder.build(PodTemplateBuilder.java:201)
      	at org.csanchez.jenkins.plugins.kubernetes.PodTemplate.build(PodTemplate.java:719)
      	at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:103)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
       at [Source: (BufferedInputStream); line: 1, column: 1]
      	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4145)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4000)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3077)
      	at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:236)
      	... 23 more
      
      

      Switching back to 1.14.9 and works like charme

            csanchez Carlos Sanchez
            mreinhardt Martin Reinhardt
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: