Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nx Cloud 2406.29.1.patch2 fails to store cache on Azure Blob Storage #142

Open
minijus opened this issue Oct 15, 2024 · 4 comments
Open

Comments

@minijus
Copy link
Contributor

minijus commented Oct 15, 2024

It seems that 2406.29.1.patch2 introduced new way to upload artifacts by streaming them (with storeV2 method). Unfortunately, this does not work well with Azure Blob Storage.

PUT requests towards Azure Blob Storage fail with Request failed with status code 400:
Image

New method:
Image

@Cammisuli
Copy link
Member

Cammisuli commented Oct 15, 2024

Sorry about that! You can get around the issue by setting useLegacyCache: true in the nx.json (for versions >= 20) and it will use the old implementation. Or by setting NX_DB_CACHE=false in the env.

I'll look into fixing this properly for azure.

@minijus
Copy link
Contributor Author

minijus commented Oct 16, 2024

Is there any documentation of presentation on what is this new DB cache and what is exactly controlled with useLegacyCache/NX_DB_CACHE ?

@minijus
Copy link
Contributor Author

minijus commented Oct 16, 2024

Sorry about that! You can get around the issue by setting useLegacyCache: true in the nx.json (for versions >= 20) and it will use the old implementation. Or by setting NX_DB_CACHE=false in the env.

I'll look into fixing this properly for azure.

Setting both useLegacyCache: true in the nx.json and NX_DB_CACHE=false in the env and running npx npx nx-cloud record -- npx nx format:check still triggers storeV2 with uploadFileStream. Using nx v20.0.1 and NX Cloud 2406.29.1.patch2, cloud bundle downloaded test.0920162733.

@minijus
Copy link
Contributor Author

minijus commented Nov 22, 2024

Update: this does not seem to be an issue with 2024.10Nx Cloud anymore.
Not sure if it has streaming enabled, but removing useLegacyCache: true from nx.json does not trigger the error anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants