I can’t upload signed artifacts via GUI.
Integration is on V2.0.0 and mender-artifact is on v.3.0.1. Artifacts are created using mender-artifact from .ext4. I don’t use --version with mender-artifact, so it should use artifact V3 I suppose.
mender-deplyments container throws these errors:
logs from mender-deplyments
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
The problem only exists with signed artifact. This problematic artifact passes mender-artifact validate successfully. If the same artifact is generated without --key argument, it can be uploaded without any issue.
I checked docs about keys and it doesn’t seem that I should somehow provide Server with any artifact keys. What have I missed?
Also, little UX flaw: when this error happens, GUI shows nothing, the upload progress bar just getting stuck at random between 4% and 10%. It should probably notify the user that something went wrong.
That is with hosted mender, and the demo environment locally.
I am not doubting that you are having issues, just to be clear, so bear over with me.
I will have a look at the backend
So is the key in the integration repo
I also, just to be sure, did convert the raw image to an ext4 image, to no avail. @kacf, perhaps you have some ideas here?
@oleorhagen, I used your script with the only difference that I used GUI instead of mender-cli to upload the artifact and the issue is present, with the same logs from mender-deployments.
One additional thing is that I have relatively low upload speed with my ISP (1-2 Mbit/s), maybe this could play the role?
Here I uploaded test.mender (result of your script) I have issues with, can you try this file? https://we.tl/t-78hBQlwY3b