Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-22543

Pushing fails with "Unable to deserialize the manifest.json file: No content to map to Object due to end of input"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.20.0
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
    • Severity:
      Medium
    • Requirement Status:

      UNCOVERED

      Description

      I'm trying to push docker image to Artifactory(6.20.0) with JIB (2.4.0) and getting an error:

      2020-06-18 11:35:10,608 [http-nio-8081-exec-229] [ERROR] (o.j.r.d.m.ManifestSchema2Deserializer:44) - Unable to deserialize the manifest.json file: No content to map to Object due to end of inputjava.io.EOFException: No content to map to Object due to end of input        at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775)        at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718)        at org.codehaus.jackson.map.ObjectMapper.readTree(ObjectMapper.java:1558)        at org.jfrog.repomd.docker.util.JsonUtil.readTree(JsonUtil.java:29)        at org.jfrog.repomd.docker.manifest.ManifestSchema2Deserializer.applyAttributesFromContent(ManifestSchema2Deserializer.java:52)        at org.jfrog.repomd.docker.manifest.ManifestSchema2Deserializer.deserialize(ManifestSchema2Deserializer.java:42)        at org.jfrog.repomd.docker.manifest.ManifestDeserializer.deserialize(ManifestDeserializer.java:32)        at org.jfrog.repomd.docker.v2.rest.handler.DockerV2LocalRepoHandler.processUploadedManifestType(DockerV2LocalRepoHandler.java:327)        at org.jfrog.repomd.docker.v2.rest.handler.DockerV2LocalRepoHandler.uploadManifest(DockerV2LocalRepoHandler.java:299)        at org.artifactory.addon.docker.rest.v2.repo.virtual.DockerV2VirtualRepoHandler.lambda$uploadManifest$5(DockerV2VirtualRepoHandler.java:112)        at org.artifactory.addon.docker.rest.v2.repo.virtual.DockerV2VirtualRepoHandler.delegateToLocalIfPossible(DockerV2VirtualRepoHandler.java:178)        at org.artifactory.addon.docker.rest.v2.repo.virtual.DockerV2VirtualRepoHandler.uploadManifest(DockerV2VirtualRepoHandler.java:112)        at org.jfrog.repomd.docker.v2.rest.DockerV2Resource.uploadManifest(DockerV2Resource.java:79)        at jdk.internal.reflect.GeneratedMethodAccessor1232.invoke(Unknown Source)        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.base/java.lang.reflect.Method.invoke(Method.java:566)        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)        at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)        at org.glassfish.jersey.internal.Errors.process(Errors.java:316)        at org.glassfish.jersey.internal.Errors.process(Errors.java:298)        at org.glassfish.jersey.internal.Errors.process(Errors.java:268)        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416)        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370)        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:195)        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:97)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.artifactory.webapp.servlet.AccessFilter.useAuthenticationAndContinue(AccessFilter.java:346)        at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:239)        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:150)        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:105)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:77)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.artifactory.webapp.servlet.ArtifactoryCsrfFilter.doFilter(ArtifactoryCsrfFilter.java:86)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164)        at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)        at org.artifactory.webapp.servlet.SessionFilter.doFilter(SessionFilter.java:62)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:124)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)        at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:305)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)        at java.base/java.lang.Thread.run(Thread.java:834)2020-06-18 11:35:10,608 [http-nio-8081-exec-229] [ERROR] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:883) - Error uploading manifest: 'java.io.EOFException: No content to map to Object due to end of input'
      

      manifest.json:

      {
        schemaVersion: 2,
        mediaType: application/vnd.docker.distribution.manifest.v2+json,
        config: {
          mediaType: application/vnd.docker.container.image.v1+json,
          digest: sha256:bfdc66e67e26686f9cb311cb50408f3543d6b51726f2ebb2156917f6f280ae0b,
          size: 11951
        },
        layers: [
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:c9ff3e9281bcbcadd57f37cc0e47a4081cc20a091749d7a33d56496a60a2c1be,
            size: 76240719
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:f897b9608c98d944929bd778316439ac000b43d974c70efb678187e436f095fa,
            size: 1320
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:f18bf393acf63419dbe2daf95475beca54e634318ddad5c87555e8af3db1a7ad,
            size: 533
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:b497cfa5e0319a2c2ee33cdc114602bb69f64f52e058c6be4e6201b4a95591b2,
            size: 526
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:78fb37b0c7d42b1bf1959fd49df88dcff1f732c92ec5f84f826b99c92b2e2293,
            size: 1216
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:db48c88b83ab898284ddf5a97c4149fa4f49fef25d413920925704adee648e8f,
            size: 1762
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:edd20619060508ca2d4f286bb420a1bfcd356ebee9acf05b9b1e3f7007820e48,
            size: 927
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:4b462ee8d6e64ae72ef53f76e08a1b2571415d8bb74a352ab0602e7fc51775ee,
            size: 331
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:8ff405288a430c53c6b70c6bcc1aee6f888709ee70f853d991720e9e47791157,
            size: 218
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:422982788dfcc99f789dcc0fa780299feb567798ad5128ba798ffdf7e8d7b2af,
            size: 30536301
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:f810dcedecafa50b74d3929d40ce1eac1b58e78b4c70b730b0f16ede640be49b,
            size: 217
          },
          {
            mediaTy
            pe: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:d0ca9e9cb628a599d3daab83b29d93b3784d29d5f92715ac5e2aae017f55de4e,
            size: 107942741
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:ee9deb1d4c4a0765ce68b4dbceb79353ae430cccc86b3254332ac0f7cee388a1,
            size: 240388735
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:43058bc950a6af0eea39d2943ec4b78ce94b8cd17671875ceac7f4cd21a2d351,
            size: 26947889
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:e8b19a11789633db7c203420ab3ea95e727d6cfd1fbaf39c307d4d76bfe6edbd,
            size: 12220
          },
          {
            mediaType: application/vnd.docker.image.rootfs.diff.tar.gzip,
            digest: sha256:37a9986871ba6fc58c382bc019a3a42817756762823831662875553a1ee594df,
            size: 607999
          }
        ]
      }
      

      Repo API version is V2.

      It's unclear what is wrong with this manifest.json.

        Attachments

          Forms

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                Maximilian Novikov Maximilian Novikov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    PagerDuty