-
Notifications
You must be signed in to change notification settings - Fork 326
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
Generating blob SAS tokens is failing with the NuGet package of version 12.20.0 and Azurite 3.30.0 #2406
Comments
@blueww Could you please chime in and let me know your thoughts on this issue? Thanks. |
The above log you shared is from Storage SDK. Would you please:
|
@blueww any updates? Thanks. |
@Arash-Sabet Does the folder you show above on the docker , or on your client machine host docker? The debug log should be generated on the docker, so normally we will map the a folder on docker to a local folder, then generate debug log in the folder, then you can access debug log from local folder. Another possible reason is azurite not start at all. There are something on your machine blocks azurite from starting. |
@blueww The following failure message is all I have to share. This exception also happens when we do not use
|
From the above error, I really have no idea. One workaround is: you might can switch back to 3.29.0, if you work doesn't depends on change of 3.30.0. |
@blueww We have already had to downgrade the azurite to 3.29.0 and the NuGet packages too. |
I get responds from the code owner of "MemoryExtentStore.js", however he seems also don't have much idea.
|
@blueww That sounds like an issue in the implementation of azurite. This is a hinderance to us and other people who use azurite within docker. The issue has to be diligently resolved by Microsoft as the owner of this product. The response from the code owner is not satisfying as he must nail down this issue and address it. With this issue around, upgrading azurite NuGet packages becomes impossible unless you guys come up with another workaround. |
The problem is the current error log is not enough to get the root cause of the issue. We will need either a repro environment or more error log/trace to investigation this issue. If we could get or setup a repro environment, it would definitely help the investigation. BTW, could you check the node version of your repro environment? |
@blueww If other customers are not reporting this issue it does not mean that this problem does not exist. We cannot browse the entire internet to see what all people have to say or they may have not stumbled upon this issue yet. The error I shared is a fact from Azurite's error messages log that I collected. I am unable to share an environment to reproduce this issue. But I hope the following docker file snippet leads your team to the issue:
There are other commands that I excluded from this docker file deemed unnecessary in this scope. That's all I can provide. |
For we don't get other customer report similar issue, I don't mean the issue not exist, but mean we don't have repro way from other customer, so can only get the way to repro it from you. And no other customer meet this issue, might will make the issue not so high priority compare with other features/issues requested by more customers. We might can try to repro this with you above script. However, could you give the detail step by step guild on how to use the script to setup the docker, it will definitely make the repro more efficiently. |
@blueww I would give it a high priority to have it looked into. To reproduce the issue: I'm sure there are other folks using k8s for their build agents. Please have your team follow the steps outlined per this blog post and include the script I shared when building the k8s's docker image. I guess that blog post is a re-iteration of a Microsoft's document/practice echoed by the author in the context of making a build agent. Write a C# Xunit method to create a container on the Azurite instance, run it through a build pipeline, and you will observe the issue. This is how you'd normally launch Azurite inside the docker image from Azure DevOps' YAML file:
|
Thanks for the sharing! |
I can get very similar error as yours when use a old version node (10.24.1) as following. Please try again with a later node version if you have not. I would suggest using LTS version v20.15.0. https://nodejs.org/en
|
@blueww The following lines are from the script I already shared in this issue. Don't they imply that the latest node version is utilized?
|
I am not sure. |
@blueww I am confused. Can you copy/paste your script that worked to see how you resolved the issue? |
You can just run "node --version" to get the node version. |
@blueww that's not my point. My point is that what script you used to include that specific node version in your test script that led to success. |
For the setup script, this is out of Azurite scope, we might not be the best person to answer it. You might can contact related team like ADO team for how to setup the right node version. |
@blueww The azurite clearly has a problem and to me the following script is downloading the latest version of node.
The setup script leads you to reproduce the problem and I don't think you cannot keep it out of this scope. This is a perfect test to reveal the problem in azurite. I would engage the team to solve the problem as you had asked me before to guide you through the reproduction steps. This is going to be my last answer and post on this issue. |
Thanks for the reply! However, Azurite can only work on the right node version. But how to setup the right node version on customer's machine is out of Azurite scope, customer owners the setup of node. The error of this issue indicate it's very possible that a wrong node version is using, so to continue the investigation, please get the node version on your repro machine, and see if it's the correct node version. |
@bluewe Apparently we needed to get the docker file download and include the node's ver 20.x explicitly. Ver 20.x is not by default selected otherwise. |
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
3.30.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
Presumably the latest LTS version
What problem was encountered?
Steps to reproduce the issue?
We are including
azurite
in our docker image by the following script to use the docker image as a build agent where we run our integration tests:To launch the included azurite instance, we issue the following command in our build pipeline's YAML file:
'sudo azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 -s -l /usr/local/lib/node_modules/azurite -d /usr/local/lib/node_modules/azurite/debug.log &'
We built the image and deployed to our k8s cluster a few months ago with the azurite version 3.29.0 and the integration tests have been working fine since then. We recently upgraded the
Azure.Storage.Blobs
ver12.19.1
andAzure.Storage.Queues
ver12.17.1
NuGet packages that our integration tests use to versions12.20.0
and12.18.0
, but the tests started failing after producing the following error messages despite we upgraded the azurite's instance to version 3.30.0:Although, this failure does not happen on the development laptop where azurite ver 3.30.0 and same latest nuget packages are present.
Have you found a mitigation/solution?
No
The text was updated successfully, but these errors were encountered: