502 errors on garage uploads with too-new awscli #218

Open
opened 2025-05-13 00:34:07 +00:00 by jade · 1 comment
Owner

This happened while trying to upload an installer for 2.93.0:

>> Uploading tag '2.93.0' from folder 'results'.
upload failed: results/lix-installer-aarch64-apple-darwin to s3://install/lix/2.93.0/lix-installer-aarch64-darwin An error o
ccurred (502) when calling the PutObject operation (reached max retries: 2): Bad Gateway
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
subprocess.CalledProcessError: Command '['aws', 's3', '--endpoint-url', 'https://s3.lix.systems', '--region', 'garage', 'cp'
, 'results/lix-installer-aarch64-apple-darwin', 's3://install/lix/2.93.0/lix-installer-aarch64-darwin', '--acl', 'public-rea
d']' returned non-zero exit status 1.

I don't understand. In the garage logs we find:

May 12 23:48:24 cache garage[1012]: 2025-05-12T23:48:24.429696Z  INFO garage_api_common::generic_server: 2001:bc8:38ee:99::1 (via 127.0.0.1:56234) PUT /install/lix/2.93.0/lix-installe
r-aarch64-darwin
May 12 23:48:24 cache garage[1012]: 2025-05-12T23:48:24.430024Z  INFO garage_api_common::generic_server: Response: error 400 Bad Request, Bad request: invalid checksum algorithm

This is in fact https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/1017 (if you specify --checksum-mode) and whatever other garage issue if you don't (idk, i thought we fixed that by upgrading garage).

This happened while trying to upload an installer for 2.93.0: ``` >> Uploading tag '2.93.0' from folder 'results'. upload failed: results/lix-installer-aarch64-apple-darwin to s3://install/lix/2.93.0/lix-installer-aarch64-darwin An error o ccurred (502) when calling the PutObject operation (reached max retries: 2): Bad Gateway xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True subprocess.CalledProcessError: Command '['aws', 's3', '--endpoint-url', 'https://s3.lix.systems', '--region', 'garage', 'cp' , 'results/lix-installer-aarch64-apple-darwin', 's3://install/lix/2.93.0/lix-installer-aarch64-darwin', '--acl', 'public-rea d']' returned non-zero exit status 1. ``` I don't understand. In the garage logs we find: ``` May 12 23:48:24 cache garage[1012]: 2025-05-12T23:48:24.429696Z INFO garage_api_common::generic_server: 2001:bc8:38ee:99::1 (via 127.0.0.1:56234) PUT /install/lix/2.93.0/lix-installe r-aarch64-darwin May 12 23:48:24 cache garage[1012]: 2025-05-12T23:48:24.430024Z INFO garage_api_common::generic_server: Response: error 400 Bad Request, Bad request: invalid checksum algorithm ``` This is in fact https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/1017 (if you specify `--checksum-mode`) and whatever other garage issue if you don't (idk, i thought we fixed that by upgrading garage).
Owner

https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1025 fixes this and will be part of the upcoming v2.0.0.
It is already part of https://git.deuxfleurs.fr/Deuxfleurs/garage/releases/tag/v2.0.0-rc1 which has been released less than an hour ago.

https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1025 fixes this and will be part of the upcoming v2.0.0. It is already part of https://git.deuxfleurs.fr/Deuxfleurs/garage/releases/tag/v2.0.0-rc1 which has been released less than an hour ago.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: the-distro/infra#218
No description provided.