Open AlexandreHGuerra opened 3 months ago
similar issue, sqlserver cannot run under ubuntu 24.04
mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04
and mcr.microsoft.com/mssql/server:2022-latest
both work for me on a Ubuntu 24.04 host.
the problem is general in any linux distro with latest kernel (lts is working), and as far as sql server itself, I think they fixed this issue maybe 4 or 5 months ago, so it seems that only thing is needed to repack docker image with latest version of sql server... Also people write that with 2017 version it is fixed both in plain and docker versions, but apparently for Microsoft team to build new docker image 5 months is a bit to complex work to complete...
This kernel-problem keeps popping up with every kernel release and it undermines the portable aspect of running this containerized. Does anyone know if there are plans to fix the underlying problem for good or if it's even possible? I haven't experienced this problem with any other Docker image I've used through the years.
It has quite a large knock-on effect in that upgrading our CI build agents will result in broken integration tests. And not at all transparent to the end-user what the problem is.
hi
im aware that there were some issues with kernel 6.8 with sql server, reported on the other distributions, that seems solved... but , im curious about which kernel interfaces may still have issues with ubuntu 24.04 / 22.04.03
very standard docker run command still fails on ubuntu 24.04
root@xx-desktop:~# uname -a Linux xx-desktop 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux root@xx-desktop:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04 DISTRIB_CODENAME=noble DISTRIB_DESCRIPTION="Ubuntu 24.04 LTS"
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Pxxxxxxxx" -e "MSSQL_PID=Evaluation" -p 1433:1433 --name sqlpreview --hostname sqlpreview -d mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
root@xxx-desktop:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3c047db268ec mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04 "/opt/mssql/bin/perm…" 10 hours ago Exited (1) 10 hours ago sqlpreview
docker logs sqlpreview
This container is running as user mssql. To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216. This program has encountered a fatal error and cannot continue running at Thu May 16 04:19:24 2024 The following diagnostic information is available:
Distribution: Ubuntu 22.04.3 LTS Processors: 16 Total Memory: 33579151360 bytes Timestamp: Thu May 16 04:19:24 2024 Last errno: 2 Last errno text: No such file or directory Capturing a dump of 9 Successfully captured dump: /var/opt/mssql/log/core.sqlservr.5_16_2024_4_19_24.9 Executing: /opt/mssql/bin/handle-crash.sh with parameters handle-crash.sh /opt/mssql/bin/sqlservr 9 /opt/mssql/bin /var/opt/mssql/log/
Ubuntu 22.04.3 LTS Capturing core dump and information to /var/opt/mssql/log... /bin/cat: /proc/9/maps: Permission denied cat: /proc/9/environ: Permission denied find: '/proc/9/task/9/fdinfo': Permission denied find: '/proc/9/task/11/fdinfo': Permission denied find: '/proc/9/task/12/fdinfo': Permission denied find: '/proc/9/task/13/fdinfo': Permission denie