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

Docker push fails due to missing "created" field in the config file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 6.23.7, 6.23.13
    • Fix Version/s: 6.23.25
    • Component/s: None
    • Labels:
      None
    • Location:
      External

      Description

      Issue: Docker images are unsuccessfully uploaded to Artifactory due to a manifest invalid: manifest invalid error.  After enabling the Docker debug logger, this issue is due to the "created" field missing in the elements of the "history" array in the config file.  The missing "created" field causes a 400 error for the manifest.json in the request logs.

      This issue is reproducible in Artifacroty version 6.23.7 and 6.23.13.  This issue is not reproducible in Artifactory version 7.17.5.

       

      Steps to reproduce:

      1. configure Artifactory 6.23.7 with subdomain method
      2. create docker virtual using set me up tool 
      3. docker pull sourcegraph/server:3.28.0
      4. docker tag f4665777e182 docker.artifactory/codesearch/sourcegraph/server:3.28.0
      5. docker push docker.artifactory/codesearch/sourcegraph/server:3.28.0
      6. notice manifest invalid: manifest invalid error
      7. 20210601220139|34|REQUEST|127.0.0.1|admin|PUT|/api/docker/docker/v2/codesearch/sourcegraph/server/manifests/3.28.0|HTTP/1.0|400|5784

       

      Expected behavior:  The Docker image should be successfully uploaded to Artifactory

      Actual behavior: The Docker image is not successfully uploaded due to a manifest invalid: manifest invalid error.

       

      Workaround:

      1. Pull the Docker image through the docker remote repository, docker pull docker.artifactory/sourcegraph/server:3.28.0
      2. Copy the image with a REST API command from the remote repository's cache to the local repository
        curl -uadmin -X POST http://localhost:8081/artifactory/api/copy/docker-remote-cache/sourcegraph/server/3.28.0?to=/docker-local/sourcegraph/server/3.28.0

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sophiet Sophie Tait
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-26006 -
                SYNCHRONIZED
                • Last Sync Date: