Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-15722

Docker push can fail in HA Environment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.10.0
    • Component/s: Docker, HA
    • Labels:
    • Story Points:
      3

      Description

      Within a HA Environment, a Docker push of an image with several layers can fail due to the upload requests landing on different nodes within the cluster.

      For example, Node A handles the initial POST and PATCH requests, but the PUT is handled by a different node (Node B) which doesn't appear to be aware of the upload and ends up throwing a "java.lang.IllegalStateException: Missing upload with uuid:" and returning a 404:

      org.sonatype.nexus.repository.docker.internal.DockerHostedFacetImpl - Failed to complete upload
      java.lang.IllegalStateException: Missing upload with uuid: f26e5743-c7c3-4300-ae69-00166e49b9c7
      at org.sonatype.nexus.repository.docker.internal.UploadManagerImpl.ensureGetUpload(UploadManagerImpl.java:134)
      at org.sonatype.nexus.repository.docker.internal.UploadManagerImpl.complete(UploadManagerImpl.java:94)
      at org.sonatype.nexus.repository.docker.internal.DockerHostedFacetImpl.completeBlobUpload(DockerHostedFacetImpl.java:574)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbucher Michael Bucher
              Reporter:
              hardeepn Hardeep Nagra
              CC:
              Alastair Montgomery
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Platform
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title