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

(Apple MAC M2 Air) Container stops within 1 second of running SQL Server with Exited(1) status #848

Open
Abhishek-Singh-Rana opened this issue Jul 17, 2023 · 4 comments

Comments

@Abhishek-Singh-Rana
Copy link

I am getting the following error while running the container in my docker:

2023-07-17 23:19:59 SQL Server 2019 will run as non-root by default.
2023-07-17 23:19:59 This container is running as user mssql.
2023-07-17 23:19:59 To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216.
2023-07-17 23:19:59 /opt/mssql/bin/sqlservr: Invalid mapping of address 0x40037f3000 in reserved address space below 0x400000000000. Possible causes:
2023-07-17 23:19:59 1) the process (itself, or via a wrapper) starts-up its own running environment sets the stack size limit to unlimited via syscall setrlimit(2);
2023-07-17 23:19:59 2) the process (itself, or via a wrapper) adjusts its own execution domain and flag the system its legacy personality via syscall personality(2);
2023-07-17 23:19:59 3) sysadmin deliberately sets the system to run on legacy VA layout mode by adjusting a sysctl knob vm.legacy_va_layout.
2023-07-17 23:19:59

image

Am i missing anything?

@svoeller99
Copy link

+1 - I'm running into the same error on my 2023 M2 Pro Mac Mini.

@Khristophor
Copy link

This works for me

#668 (comment)

@amitkh-msft
Copy link
Collaborator

have you tried the SQL 22 version and do you still see the issue?

@dzsquared
Copy link

Make sure to enable container emulation via Rosetta: https://devblogs.microsoft.com/azure-sql/development-with-sql-in-containers-on-macos/

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

5 participants