codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
65 stars 26 forks source link

Azure storage issue #1192

Open liviust opened 11 months ago

liviust commented 11 months ago

When using the Azure storage option with the develop branch, I get the following error:

<Error>
<Code>AuthenticationFailed</Code>
<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:baf1715f-f01e-007c-0f5d-04a6b5000000 Time:2023-10-21T20:32:44.9273803Z</Message>
<AuthenticationErrorDetail>sp is mandatory. Cannot be empty</AuthenticationErrorDetail>
</Error>

In Azure, it does create folders in bundles when I try to upload an example competition, but the zip file has 0kb everytime I try a new one and I get the above error in the browser.

I have checked the AZURE_ACCOUNT_NAME and AZURE_ACCOUNT_KEY environment variables. Everything is in line with the Azure storage keys.

liviust commented 11 months ago

The exact configuration works in codalab competition 1.6. So, there must be something broken in the way the sas token is constructed in codabench or something related to the way the header is constructed.

Didayolo commented 11 months ago

Then you for reporting this problem. We mainly use MinIO for the storage so we might have missed this problem.

Feel free to make any suggestion / contribution to help solving this problem.