-
Notifications
You must be signed in to change notification settings - Fork 908
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
import bacpac file hangs (mac OS Sonoma 14.0) #24613
Comments
This looks like the sql server instance isn't healthy. Were there any errors when the docker run command was run? What's the output of I ran the same command and tried importing AdventureWorks and it was successful on the latest insiders build, but I'm still on macOS Ventura 13.6. |
@kisantia thanks for the response. I ran into the problem after an update to macOS Sonoma 14.0, everything was working fine before that.
Container running as:
Container logs (the same in case if I create an empty DB nad try import it):
|
does this happen consistently with the same error if you try to create another docker container? And for other SQL Server versions? |
yes, I reinstalled docker desktop, tried different versions of mssql server (2017, 2022) and The same result for all attempts |
just ran SSMS on parallels - the same error. |
I'm now seeing the same error having upgraded to macOS Sonoma. Known-good backups that were working previously are now not working. I'm using the |
@borbiuk @henry-bettany is it only importing a bacpac that's failing or is the sql server instance as a whole not working? Like if you tried to manually run a script to publish the schema of a db (ex: use publish dacpac and generate script) rather than use import bacpac, dose this also not work? From the error message, I'm guessing it would also not work, but want to narrow down the problem if it's DacFx specific or sql server containers on macOs Sonoma |
It seems to just be the import itself. I've got some pre-Sonoma containers which still work as expected. |
@kisantia import of dacpac works fine |
Interesting that publishing a dacpac works but importing a bacpac doesn't. One more thing to try - can you try importing the bacpac using sqlpackage? This is the command line tool to perform DacFx operations and if you run it with the |
I have the same issue, before the update to Sonoma, importing .bacpac worked everytime. Now it hangs and DB throws Error: 3624 |
hi folks - sorry I took a run at repro-ing this today and haven't been successful. I'm on an M1 machine with Sonoma and SqlPackage 162.0.52. I've grabbed the latest SQL 2022 container, mounted a volume from my local disk for /var/opt/mssql, and taken an AdventureWorksLT bacpac and imported it a few different ways:
As @kisantia mentioned, adding /df to the SqlPackage operation is probably the most helpful for us to be able to repro the issue at this point. The other thing is that since the errors are related to DB inconsistency, I wanted to see if not using a mounted volume clears the problem - so we can isolate the problem at least. |
I had the same issue with multiple .bacpac files again and again. Upgrading to Sonoma 14.1 solved it for me. See also: microsoft/mssql-docker#858 |
@alexpav-prodyna - we really appreciate you sharing what resolved the issue for you. It looks like at this point the currently GA version of Sonoma is 14.1 and Docker Desktop just released 4.25.0. @Oktawski, @borbiuk, @henry-bettany - if you are able, will you check if the issue still occurs when updated to Sonoma 14.1? thank you! |
@dzsquared maybe by tomorrow (Kyiv time) I will be able to tell you |
@dzsquared I've already downgraded to Ventura, where it works flawlessly |
I've just upgraded to macOS Sonoma 14.1, and it's working again! |
@kisantia @dzsquared |
I'm running into this exact issue on Sonoma 14.5. Docker Desktop 4.30.0 (149282) |
Same issue on Sonoma 14.5 Docker Desktop 4.30.0 (149282). Did you find a solution @asgeirgs? |
I'm afraid not. Seams the only option is to wait for an update from Apple as with the same bug in 14.0 which was fixed in 14.1. |
@asgeirgs @jseekamp there's an open issue about this: microsoft/mssql-docker#882 Unfortunately no solutions as of yet. |
Just upgraded to 14.6 Beta (23G5052d). The problem still persists. |
Hello! Are there known workarounds for this problem? Thank you. |
You can still use sql azure edge if you don't need any advanced sql features. |
Still same issue here, Have tried everything listed above. Docker server works perfectly fine until I try to import a .bacpac file... Sonoma 15.5 (M3 Pro) - newest version of Docker Desktop |
Sonoma 14.5 Applle M2Pro Followed by this example I was able to import AdventureWorksLT.bacpac by:
But using real scenario I faced with error that was only show if you copy the db file and run via exec
Error says:
The source image was build on top of Ubuntu 16.04
|
I'm experiencing this on Sonoma 14.5 and Docker 4.31.0, but I may have found a workaround.
After that, I see the database was recovering and is in a good state. YMMV |
So, finally some good news with this issue. It is now solved with the latest docker version: 4.32.0 (157355) I hope it works for everyone now. |
@pedrocarloto works for me too |
Steps to Reproduce:
docker run --platform=linux/amd64 -e 'SA_PASSWORD={password}' -e 'ACCEPT_EULA=Y' -v storage:/var/opt/mssql -p 1433:1433 --name ms-sql-server mcr.microsoft.com/mssql/server:2017-latest
Result:
Import bacpac file hangs (the file is successfully imported on Windows by MSSQL).
SQL Server logs:
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: