microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources
MIT License
1.74k stars 758 forks source link

2019-CTP3.2-ubuntu not able to run unprivileged on debian 10 #523

Open AndreMarschalek opened 5 years ago

AndreMarschalek commented 5 years ago

i am using two installations, one docker host system is based on ubilinux and the other docker host system is based on debian 10, the described issue only exists on debian 10 and worked until CTP3.1

starting with CTP3.2 mssql server is not able to start and stops with below error message (this does not happen if the container starts with --privileged flag)

Ubuntu 16.04.6 LTS Capturing core dump and information to /var/opt/mssql/log... dmesg: read kernel buffer failed: Operation not permitted No journal files were found. No journal files were found. Fri Nov 1 13:13:46 UTC 2019 Capturing program information Fri Nov 1 13:13:46 UTC 2019 Attempting to capture a dump with paldumper /opt/mssql/bin/crash-support-functions.sh: line 215: 198 Aborted (core dumped) $program_dir/paldumper $dokill -p $pid -d $paldumper_dump_type_str -o $dump_filename.gdmp > $paldumper_debuglog_filename 2>&1 WARNING: Capture attempt failure detected Attempting to capture a filtered dump with paldumper Captured a filtered dump with paldumper Fri Nov 1 13:13:46 UTC 2019 Capturing program binaries Fri Nov 1 13:13:47 UTC 2019 Compressing the dump files This is an evaluation version. There are [78] days left in the evaluation period. This program has encountered a fatal error and cannot continue running at Fri Nov 1 13:13:50 2019 The following diagnostic information is available:

     Reason: 0x00000003
     Status: 0x00000001
    Message: (*__errno_location ()) == 28 || (*__errno_location ()) == 22 || (*__errno_location ()) == 38
      Stack:
             IP               Function
             ---------------- --------------------------------------
             00005649a30da3aa std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a30d9ea9 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a301f3ee std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a30ba923 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a30b62f1 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a30b6e6f std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a301b79b std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c
             00005649a300d645 <unknown>
             00007faf965c8830 __libc_start_main+0xf0
             00005649a300a029 <unknown>
    Process: 7 - sqlservr
     Thread: 7
Instance Id: 9b0ba0a0-496c-4632-b6c2-eb306e150995
   Crash Id: 159dc09e-f06b-49e3-9b7e-6631adcd21a3
Build stamp: e7cecc1663d059f8a4c7f4e379339d34261f68cfceb977a62c34ac7bccbb72af

Distribution: Ubuntu 16.04.6 LTS Processors: 12 Total Memory: 16745205760 bytes Timestamp: Fri Nov 1 13:13:50 2019 Last errno: 1 Last errno text: Operation not permitted

GeorgHoffmeyer commented 4 years ago

I'm having the same issue on ubuntu 19.04. are there any solutions?

banerjeeamit commented 4 years ago

Are you still having the same issues on Ubuntu with SQL Server 2019 “latest” container images i.e. 2019-CU2 or above? SQL Server is not tested on Debian. So there are no guarantees that it would work on Debian.