-
Notifications
You must be signed in to change notification settings - Fork 341
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
Connections using "localhost" to Azurite container don't work #2538
Comments
Hi @craxal , Would you please get the Azurite debug log for the success/fail request, then we can look into it?
|
I should probably clarify that some types of requests don't seem to work, whereas others do. We are able to list blobs, for example, but attempts to download all blobs from a specific folder/prefix don't work. Switching from "localhost" to "127.0.0.1" resolves the issue.
2025/03/12 17:19:55 AzcopyVersion 10.28.0
2025/03/12 17:19:55 OS-Environment windows
2025/03/12 17:19:55 OS-Architecture amd64
2025/03/12 17:19:55 Log times are in UTC. Local time is 12 Mar 2025 10:19:55
2025/03/12 17:19:55 ==> REQUEST/RESPONSE (Try=1/3.0146ms, OpTime=29.5508ms) -- RESPONSE STATUS CODE ERROR
HEAD http://localhost:10000/devstoreaccount1/test01%2F?se=2025-04-11T17%3A19%3A54Z&sig=-REDACTED-&sp=rl&sr=c&sv=2018-03-28
Accept: application/xml
User-Agent: Microsoft/Azure/Storage/ azsdk-go-azblob/v1.4.0 (go1.22.7; Windows_NT)
X-Ms-Client-Request-Id: fc79560f-4af4-4ce9-6acf-2a6e5e35fe38
x-ms-version: 2019-07-07
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Connection: keep-alive
Date: Wed, 12 Mar 2025 17:19:55 GMT
Keep-Alive: timeout=5
Server: Azurite-Blob/3.29.0
Response Details:
2025/03/12 17:19:55 ==> REQUEST/RESPONSE (Try=1/1.5884ms, OpTime=1.5884ms) -- RESPONSE STATUS CODE ERROR
|
Thanks for the update! The debug log you share is not Azurite debug log, so we still can't see your detail request , and how Azurite handle the request and send 403 back. Could you please share the Azurite debug log get with "--debug" parameter? |
You're right, sorry about that. Where would the logs be in an Azurite container? Version in use is: 3.29.0 Console output:
|
I updated my image so that the Azurite version is now 3.34.0, but the issue remains. |
Hi @craxal , Thanks for the sharing! |
@blueww I don't have direct control over Azurite starting, because I'm working with a Docker container. How do I pass the |
Hi @craxal, For run Azurite in docker, you get debug log by start Azurite with :
Following is the sample commandline:
|
I have an Azurite Docker container configured to use the default ports. When using Storage Explorer, if I create a connection to the Azurite Docker container using "localhost", I sometimes get authentication errors when trying to download multiple blobs using. But when I create a connection using "127.0.0.1", I don't have problems.
The text was updated successfully, but these errors were encountered: