'mender-cli artifacts upload' fails occasionally with status 502 - bad gateway

Hello all,

uploading mender artifacts using ‘mender-cli artifacts upload’ occasionally fails with the following error:

FAILURE: artifact upload failed with status 502, reason: Bad Gateway

This started a few weeks ago but I don’t remember when. Didn’t report this immediately because I thought it was a temporary glitch, but want to make you aware of this now. Last time this occured was today 15:26:01 CEST. Usually I just restart the CI job and next time it succeeds.

Regards,
Manuel

Hello all,

we’re still facing these issues. In the meantime, the Bad Gateway string got encapsulated into HTML.

FAILURE: artifact upload failed with status 502, reason: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

Today this occured at 14:17:52 and 14:31:37 CET (= UTC+1).

Hello,

can provide some statistics from yesterday 2021-11-24. All times are in CET = UTC+1.

14:17:52 -- upload failed with http 502 bad gateway
14:31:37 -- upload failed with http 502 bad gateway
14:58:26 -- upload successful
15:03:17 -- upload successful
15:22:06 -- upload successful
15:25:19 -- upload failed with http 502 bad gateway
18:56:14 -- upload successful
19:01:08 -- upload successful

Our CI job is signing in with mender-cli login --server "https://hosted.mender.io" --username username --password password and uploading with mender-cli artifacts upload --no-progress <artifact-path>. For context, we also get a Configuration file not found. Continuing., but that shouldn’t be related to the problem on hand, I guess.

What can cause such an http 502 error?