-
Notifications
You must be signed in to change notification settings - Fork 765
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
Unable to start container on Linux 6.7 #868
Comments
I have the same issue. Found that it's the 6.7 kernel update. (#858 (comment)) Rolling back to 6.6.10 makes it work again. |
I experienced the same behavior today. First my existing container grew in size very quickly. I tried creating other containers but they all failed with the above message. It took me a while to figure out that downgrading my kernel fixes the issue, but downgrading to 6.6.11 did the trick. |
I can also confirm, I have the same behaviour. |
I downgraded my kernel and the container now functions. Is this limited to just this container or docker needing to update something to be compatible with the 6.7 kernel? |
I have same problem running container in Podman, but the Docker container is running without any problem. I simply pulled the image
Attached is a log file. |
Can confirm on Arch Linux, both the docker images for versions 2017, 2019 and 2022 and the AUR version give the same result.
After downgrading the kernel to version |
I can confirm this on Nobara 39 with 6.7.0 kernel. Exactly same issue for 2017, 2019, 2022 mssql. |
It seems like this was solved in the aur repo package |
For what it is worth: running Gentoo with custom 6.7.x kernel. $ docker run -it --rm -e ACCEPT_EULA=Y -e MSSQL_PID=Developer mcr.microsoft.com/mssql/server:2022-latest -- /bin/bash
sleep 1000 in another terminal, run ps fax|less
# find pid of bash which is parent of sleep
sudo strace -o mssql.strace -f -s1000 -p <bash-in-mssql-docker> return to the first terminal, $ grep -P '"/(proc|sys).*ENOENT' mssql.strace
9999 openat(AT_FDCWD, "/sys/fs/cgroup/memory/memory.limit_in_bytes", O_RDONLY) = -1 ENOENT (No such file or directory) |
I think the
|
The problem is still there with kernel 6.7.2 |
same problem on |
As a bad side effect the lsof process it spawns starts eating a core |
Hello, The issue has been identified and should be fixed in the next SQL Server 2022 CU, but we cannot commit to a specific CU release or timeline as sometimes plans can unexpectedly change. No further investigation or data points should be needed for this, but thank you all for reporting and for looking for potential causes. It is unrelated to cgroups, and at first glance it might be a kernel bug (but do not quote me on this) - it appears that as of 6.7, Knowing this, I cannot think of any workaround other than sticking to 6.6 in the meantime. |
Thank you very much for the patch. Are there plans to also backport it to 2019? |
Just wanted to write to say I am so glad you have all written on here, I didn't even think about the fact I just upgraded my arch system, I was about to start tearing things apart this has saved me a heck of a lot of time, whilst I am here to say thank you, I can also confirm this is still happening on Arch Linux on 6.7.4 |
Hi! We are running a msql based prosject on a mac and use the image |
Same issue with Fedora 39 on 6.7.2 and 6.7.3, but fine on 6.6.x and 6.5.x (in case anyone is searching for this issue and using Fedora). Looking forward to the CU @fbrosseau |
I think MSFT should strongly consider backporting this at least to SQL Server 2019 if not even 2017 as well. As people continue to upgrade their kernels this is going to be happening on an ever larger scale to existing SQL Server linux / container installations. |
Am I missing something? I do not see any updated Docker images for |
It should be included in the next CU, no date estimate
I've been keeping an eye on this page for a presumably CU12 to be released. |
I just found 2017-latest to be updated on 2024-09-10 in https://hub.docker.com/_/microsoft-mssql-server/ and it is working again. |
this week i upgraded and restart my ubuntu 22.04.5 LTS and i noticed that the kernel did go from: 6.5.0-1024-aws to 6.8.0-1015-aws. After restart the sqlserver 2022 didn't work anymore `
` for all releases of 2022 that we try to use? |
What is causing the issue? |
I'm having the same issue after upgrading the kernel to 6.8.0 now I don't have any work around |
An Linux kernel update. Now older mssql docker images can't be run successfully. Try updating the docker image to an newer release. |
But we tried the latest of a 2022 build , and none work anymore on our machine that runs ubuntu 2022.04 LTS with kernen 6.8 |
This is happening for my local ubuntu 22.04.5 with kernel - Linux version 6.8.0-40-generic, when I am trying to build the docker image from the compose file, i am getting similar error - this is my base image for sql server - FROM mcr.microsoft.com/mssql/server:2017-CU24-ubuntu-16.04 This program has encountered a fatal error and cannot continue running at Mon Sep 30 13:46:01 2024 |
Try 2017-CU31-GDR2-ubuntu-18.04 |
i downgrade from 6.8.0-40 generic to 6.5.0.41-generic now it is working again for my local system. |
This is not an issue with Docker image, but a much bigger issue with MSSQL itself. Upgrading kernel on my AWS instances is now causing mssql 2017 to fail with this exact same error (under kernel 6.8.0). Booting to an older kernel (6.5.0-101`7) resolves the issue. |
Copying the commit message from the equivalent PR on ehrql: opensafely-core/ehrql#2120 The previous version was incompatible with the updated kernel now used by Github Actions runners. See: microsoft/mssql-docker#868 The fix has been backported as far as the 2019 image, but not to the 2017 image. Seeing that the 2017 image didn't match what was being run in production in any case we might as well upgrade.
Copying the commit message from the equivalent PR on ehrql: opensafely-core/ehrql#2120 The previous version was incompatible with the updated kernel now used by Github Actions runners. See: microsoft/mssql-docker#868 The fix has been backported as far as the 2019 image, but not to the 2017 image. Seeing that the 2017 image didn't match what was being run in production in any case we might as well upgrade. This requires a few small changes: * The `sqlcmd` tool has moved from `/opt/mssql-tools/bin` to `/opt/mssql-tools18/bin`. This is due to the newer image using the `mssql-tools18` apt package. * The `sqlcmd` invocation now requires the `-C` option to automatically trust the server certificate.
We have the same problem on azure VMs kernel 6.8.0-1015-azure and image |
We have the same issue in our team. Would be great to address it 🙏🏽 |
look for that cpp => This program has encountered a fatal error and cannot continue running at Wed Sep 25 20:20:18 2024
|
We also had this problem on azure (with 2017-CU31-GDR2-ubuntu-18.04 and 2017-latest docker images), but we resolved it by downgrading to Kernel 6.5.0-1022-azure. I suppose there's nothing more to say, just wanted to add that it's also works with azure type images. :) |
I'm using Docker Desktop for macOS and encountered this problem. I solved it by downgrading Docker Desktop to version 4.31.0. |
Currently unable to start the container on Arch Linux as the host OS. The dump files for the failing sqlservr process don't really provide any insight as to why:
Docker-compose file:
Docker logs and data directory are set as UID:GID 10001:10001.
The text was updated successfully, but these errors were encountered: