Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2645

Mender Artifact upload fails on Chrome on a slow network

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Labels:
    • Days in progress:
      2

      Description

      To reproduce create an Mender Artifact using the following command:

      mender-artifact --compression "lzma" write rootfs-image \
            --file "core-image-full-cmdline-raspberrypi3.ext4" \
            --device-type "raspberrypi3" \
            --artifact-name "test-signed" \
            --output-path "artifact-signed.mender" \
            --script "ArtifactInstall_Enter_01_retain_wpa_supplicant" \
            --key "private.key"
      

      Try to upload it to a Mender server (I tried on Hosted Mender), the upload progress bar stops and disappears at 19 % and no artifact is present.

      User found this on a on-prem server and saw the following error:

      time="2019-07-12T14:51:22Z" level=error msg="reading artifact error: readHeaderV3: handleHeaderReads: readHeader: readNext: Failed to copy from tarReader to the writer: unexpected EOF: Cannot parse artifact file" file=images.go func="controller.(*SoftwareImagesController).NewImage" line=239 request_id=bd965f2e-eb8a-41cb-b0b9-564699d67c8f user_id=5ec43064-1fe1-49bd-92b2-c3a7ee220460
      time="2019-07-12T14:51:22Z" level=error msg="reading artifact error: readHeaderV3: handleHeaderReads: readHeader: readNext: Failed to copy from tarReader to the writer: unexpected EOF" file=view.go func="view.(*RESTView).RenderError" line=51 request_id=bd965f2e-eb8a-41cb-b0b9-564699d67c8f user_id=5ec43064-1fe1-49bd-92b2-c3a7ee220460
      

      Two problems:

      • The fact that you are not able to upload these Artifacts
      • No information is provided in GUI (no error message)

      If you remove "--compression "lzma" from the command, then upload works.

      Inspecting the Artifact using "mender-artifact" tool does not reveal any problems (visible to me),

      $ mender-artifact read artifact-signed.mender -k public.key 
      Mender artifact:
        Name: test-signed
        Format: mender
        Version: 3
        Signature: signed and verified correctly
        Compatible devices: '[raspberrypi3]'
        Provides group: 
        Depends on one of artifact(s): []
        Depends on one of group(s): []
        State scripts:
          ArtifactInstall_Enter_01_retain_wpa_supplicant
      
      Updates:
          0:
          Type:   rootfs-image
          Provides: Nothing
          Depends: Nothing
          Metadata: Nothing
          Files:
            name:     core-image-full-cmdline-raspberrypi3.ext4
            size:     222298112
            modified: 2019-06-24 16:39:40 +0200 CEST
            checksum: 47704cbe02f59ffe86d8efd019c381351a2ad1a63fc1d9d66b6816561ebf5e11
      mirzak@mk2000 ~/Downloads
      $ mender-artifact validate artifact-signed.mender 
      Artifact file 'artifact-signed.mender' validated successfully
      

      Initially reported on Mender Hub

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel