-
Notifications
You must be signed in to change notification settings - Fork 333
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
Major Bug: Docker Image based azurite not connecting with Docker Image based Microsoft "MS SQL Server" Instance after version since "azurite 3.24.0" #2346
Comments
Our team owns Azurite, but we are not docker expect. You issue looks a docker issue for communication between 2 docker images. However, from the above info, I think the 1533 port in the Azurite DB connection point to the 1533 port of the Azurite docker container, but not the 1533 port of the host machine. I find some similar questions for how to connect 2 docker containers , you might can reference them. And another way might be put Sql DB and Azurite into same docker container. |
@blueww . Following is a working docker-compose example of MSSQLServer and mysql:
------YML FILE START ------
|
@blueww Any update on findings of broken support for MS SQL Server in Azurite after version "azurite 3.23.0". This is definitely a bug that should be put up for resolution for production related cases. |
We have mysql test for every PR in pipeline. And this is Azurite blob test pass on mysql 2 weeks ago: I have also manually run mysql in docker with following command, then run Azurite 3.29.0 on my local machine (win11) after set environment variable "set AZURITE_DB=mysql://root:[email protected]:13306/azurite_blob_test". Azurite works well with mysql.
So Azurite latest version 3.29.0 works with mysql in my test, and we have test to cover it in every PR validation. |
Would you please help to follow up this issue when I am on vacation? |
@blueww @EmmaZhu , I am not sure what your response regarding "MySql" has to do with my question about Microsoft "MS SQL Server" ? https://github.com/Azure/Azurite?tab=readme-ov-file#customized-metadata-storage-by-external-database-preview 1- This bug is related to Microsoft "MS SQL Server" support that your documentation mentions. In Documentation, example is for Microsoft "MS SQL Server" is not provided. It is officially mentioned that it is supported as per the link above.
------YML FILE START ------
|
Hi @mansoorbk , I'll look into it and try to repro the issue. |
@EmmaZhu Thank you for your help.
|
Hi @mansoorbk , Seems I can repro this issue. I tried to start docker containers with the YML you shared, it did succeeded to start with Azurite 3.23.0 and mssql2022, but got an error like You shared three OS versions, are you running a Linux Container on Windows? If the error I got is the same with the one you got, I should have been able to reproduce the issue, OS version may be irrelevant. I'll look into the error I got first. |
@EmmaZhu . These are the details of my OS and Dev Environment.
|
@EmmaZhu Since you can repro this bug. |
@EmmaZhu Any update ? |
Hi @mansoorbk , For a progress update: I'm seeing issue when trying to upgrade to a newer version node to build a new image, also cannot validate whether my theory is correct. I'm working on resolving current upgrade issue. |
@EmmaZhu Thanks for update. Looking forward to fix. |
@EmmaZhu Any update ? This will help us alot in production |
Emma already has a fix for this issue: #2370 |
Issue has been fixed. Any further investigation required, please feel free to reopen it. |
Which service(blob, file, queue, table) does this issue concern?
All
Which version of the Azurite was used?
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
Docker Hub: mcr.microsoft.com/azure-storage/azurite:latest
What's the Node.js version?
MS Docker Image mcr.microsoft.com/azure-storage/azurite:latest is using Node.js 14
What problem was encountered?
Docker Image based azurite not connecting with Docker Image based Sql Server Instance
Steps to reproduce the issue?
Use docker-compose based setup:
---- FILE START------
version: '3.4'
services:
sql-ubuntu-2204:
image: mcr.microsoft.com/mssql/server:2022-CU10-ubuntu-22.04
container_name: "sql-ubuntu-2204"
hostname: sql-ubuntu-2204
restart: always
environment:
- MSSQL_PID=Evaluation
- ACCEPT_EULA=Y
- SA_PASSWORD=StrongPass!123
ports:
- "1533:1433"
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
container_name: "azurite"
hostname: azurite
restart: always
environment:
- AZURITE_DB=mssql://sa:StrongPass![email protected]:1533/azurite_blob
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
---- FILE END------
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?
No. But it works with MySQL
The text was updated successfully, but these errors were encountered: