output when run container :
` podman run -dt --name mssql -p 1434:1433 -e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=Testing!123 mcr.microsoft.com/mssql/server:2017-latest
4594ad66d66f49d639e418557d8d32e43c7f48b4c03d0cbe7ba7ea1a3241da1d
podman logs -f mssql
SQL Server 2017 will run as non-root by default.
This container is running as user root.
To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216.
The inotify_init attempt failed with File: signals.cpp:835 [Status: 0xC000011F Operation unsuccessful errno = 0x18(24) Too many open files]
This program has encountered a fatal error and cannot continue running at Fri Sep 29 06:45:19 2023
The following diagnostic information is available:
Distribution: Ubuntu 18.04.6 LTS
Processors: 6
Total Memory: 16663420928 bytes
Timestamp: Fri Sep 29 06:45:19 2023
Last errno: 24
Last errno text: Too many open files
Capturing a dump of 1
sqlservr: utils.cpp:561: uintptr_t GetEndOfLibOSVmRange(): Assertion GetGlobals()->GetStatics()->IsLibOSVmmRangeEndValid()' failed. 2023-09-29 06:45:28.42 Server Setup step is copying system data file 'C:\templatedata\master.mdf' to '/var/opt/mssql/data/master.mdf'. 2023-09-29 06:45:28.65 Server Did not find an existing master data file /var/opt/mssql/data/master.mdf, copying the missing default master and other system database files. If you have moved the database location, but not moved the database files, startup may fail. To repair: shutdown SQL Server, move the master database to configured location, and restart. 2023-09-29 06:45:28.65 Server Setup step is copying system data file 'C:\templatedata\mastlog.ldf' to '/var/opt/mssql/data/mastlog.ldf'. 2023-09-29 06:45:28.67 Server Setup step is copying system data file 'C:\templatedata\model.mdf' to '/var/opt/mssql/data/model.mdf'. 2023-09-29 06:45:28.97 Server Setup step is copying system data file 'C:\templatedata\modellog.ldf' to '/var/opt/mssql/data/modellog.ldf'. 2023-09-29 06:45:29.26 Server Setup step is copying system data file 'C:\templatedata\msdbdata.mdf' to '/var/opt/mssql/data/msdbdata.mdf'. 2023-09-29 06:45:29.76 Server Setup step is copying system data file 'C:\templatedata\msdblog.ldf' to '/var/opt/mssql/data/msdblog.ldf'. 2023-09-29 06:45:30.01 Server Microsoft SQL Server 2017 (RTM-CU31-GDR) (KB5021126) - 14.0.3460.9 (X64) Jan 25 2023 08:42:43 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Linux (Ubuntu 18.04.6 LTS) 2023-09-29 06:45:30.02 Server UTC adjustment: 0:00 2023-09-29 06:45:30.02 Server (c) Microsoft Corporation. 2023-09-29 06:45:30.03 Server All rights reserved. 2023-09-29 06:45:30.03 Server Server process ID is 392. 2023-09-29 06:45:30.04 Server Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'. 2023-09-29 06:45:30.04 Server Registry startup parameters: -d /var/opt/mssql/data/master.mdf -l /var/opt/mssql/data/mastlog.ldf -e /var/opt/mssql/log/errorlog 2023-09-29 06:45:30.06 Server SQL Server detected 1 sockets with 6 cores per socket and 6 logical processors per socket, 6 total logical processors; using 6 logical processors based on SQL Server licensing. This is an informational message; no user action is required. 2023-09-29 06:45:30.07 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required. 2023-09-29 06:45:30.07 Server Detected 12713 MB of RAM. This is an informational message; no user action is required. 2023-09-29 06:45:30.07 Server Using conventional memory in the memory manager. 2023-09-29 06:45:30.14 Server Large Page Allocated: 32MB 2023-09-29 06:45:30.15 Server Page exclusion bitmap is enabled. 2023-09-29 06:45:30.47 Server Buffer pool extension is already disabled. No action is necessary. 2023-09-29 06:45:30.63 Server InitializeExternalUserGroupSid failed. Implied authentication will be disabled. 2023-09-29 06:45:30.63 Server Implied authentication manager initialization failed. Implied authentication will be disabled. 2023-09-29 06:45:30.64 Server Successfully initialized the TLS configuration. Allowed TLS protocol versions are ['1.0 1.1 1.2']. Allowed TLS ciphers are ['ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:!DHE-RSA-AES256-GCM-SHA384:!DHE-RSA-AES128-GCM-SHA256:!DHE-RSA-AES256-SHA:!DHE-RSA-AES128-SHA']. 2023-09-29 06:45:30.67 Server Query Store settings initialized with enabled = 1, 2023-09-29 06:45:30.73 Server Node configuration: node 0: CPU mask: 0x000000000000003f:0 Active CPU mask: 0x000000000000003f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required. 2023-09-29 06:45:30.74 Server The maximum number of dedicated administrator connections for this instance is '1' 2023-09-29 06:45:30.81 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required. 2023-09-29 06:45:30.83 Server In-Memory OLTP initialized on standard machine. 2023-09-29 06:45:30.90 Server Database Instant File Initialization: enabled. For security and performance considerations see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message only. No user action is required. ForceFlush is enabled for this instance. 2023-09-29 06:45:30.91 Server Software Usage Metrics is disabled. 2023-09-29 06:45:30.92 spid6s Starting up database 'master'. ForceFlush feature is enabled for log durability. 2023-09-29 06:45:31.34 spid6s Converting database 'master' from version 862 to the current version 869. 2023-09-29 06:45:31.34 spid6s Database 'master' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:31.42 spid6s Database 'master' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:31.50 spid6s Database 'master' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:31.56 spid6s Database 'master' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:31.61 spid6s Database 'master' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:31.67 spid6s Database 'master' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:31.71 spid6s Database 'master' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:32.12 spid6s Resource governor reconfiguration succeeded. 2023-09-29 06:45:32.12 spid6s SQL Server Audit is starting the audits. This is an informational message. No user action is required. 2023-09-29 06:45:32.13 spid6s SQL Server Audit has started the audits. This is an informational message. No user action is required. 2023-09-29 06:45:32.28 spid6s SQL Trace ID 1 was started by login "sa". 2023-09-29 06:45:32.34 spid6s Server name is '4594ad66d66f'. This is an informational message only. No user action is required. 2023-09-29 06:45:32.36 spid20s Always On: The availability replica manager is starting. This is an informational message only. No user action is required. 2023-09-29 06:45:32.36 spid8s Starting up database 'mssqlsystemresource'. 2023-09-29 06:45:32.38 spid8s The resource database build version is 14.00.3460. This is an informational message only. No user action is required. 2023-09-29 06:45:32.39 spid6s Starting up database 'msdb'. 2023-09-29 06:45:32.42 spid19s Password policy update was successful. 2023-09-29 06:45:32.42 spid20s Always On: The availability replica manager is waiting for the instance of SQL Server to allow client connections. This is an informational message only. No user action is required. 2023-09-29 06:45:32.43 spid8s Starting up database 'model'. 2023-09-29 06:45:32.56 spid6s The tail of the log for database msdb is being rewritten to match the new sector size of 4096 bytes. 512 bytes at offset 306688 in file /var/opt/mssql/data/MSDBLog.ldf will be written. 2023-09-29 06:45:32.70 spid6s Converting database 'msdb' from version 862 to the current version 869. 2023-09-29 06:45:32.71 spid6s Database 'msdb' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:32.71 spid8s The tail of the log for database model is being rewritten to match the new sector size of 4096 bytes. 2048 bytes at offset 75776 in file /var/opt/mssql/data/modellog.ldf will be written. 2023-09-29 06:45:32.79 spid19s A self-generated certificate was successfully loaded for encryption. 2023-09-29 06:45:32.94 spid8s Converting database 'model' from version 862 to the current version 869. 2023-09-29 06:45:32.95 spid8s Database 'model' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:32.97 spid19s Server is listening on [ 'any' <ipv6> 1433]. 2023-09-29 06:45:32.98 spid6s Database 'msdb' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:32.98 spid19s Server is listening on [ 'any' <ipv4> 1433]. 2023-09-29 06:45:33.00 Server Server is listening on [ ::1 <ipv6> 1434]. 2023-09-29 06:45:33.00 Server Server is listening on [ 127.0.0.1 <ipv4> 1434]. 2023-09-29 06:45:33.01 Server Dedicated admin connection support was established for listening locally on port 1434. 2023-09-29 06:45:33.01 spid19s SQL Server is now ready for client connections. This is an informational message; no user action is required. 2023-09-29 06:45:33.08 spid8s Database 'model' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:33.10 spid6s Database 'msdb' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:33.17 spid8s Database 'model' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:33.17 spid6s Database 'msdb' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:33.26 spid8s Database 'model' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:33.28 spid6s Database 'msdb' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:33.34 spid8s Database 'model' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:33.37 spid6s Database 'msdb' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:33.45 spid8s Database 'model' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:33.47 spid6s Database 'msdb' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:33.58 spid8s Database 'model' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:33.87 spid8s Polybase feature disabled. 2023-09-29 06:45:33.87 spid8s Clearing tempdb database. 2023-09-29 06:45:34.14 spid8s Starting up database 'tempdb'. 2023-09-29 06:45:34.26 spid8s The tempdb database has 1 data file(s). 2023-09-29 06:45:34.28 spid24s The Service Broker endpoint is in disabled or stopped state. 2023-09-29 06:45:34.28 spid24s The Database Mirroring endpoint is in disabled or stopped state. 2023-09-29 06:45:34.30 spid24s Service Broker manager has started. 2023-09-29 06:45:34.48 spid6s Recovery is complete. This is an informational message only. No user action is required. 2023-09-29 06:45:34.50 spid20s The default language (LCID 0) has been set for engine and full-text services.
I tried to simply pull and run the image with podman, but failed with error "Too many open files"
podman info:
output when run container : ` podman run -dt --name mssql -p 1434:1433 -e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=Testing!123 mcr.microsoft.com/mssql/server:2017-latest 4594ad66d66f49d639e418557d8d32e43c7f48b4c03d0cbe7ba7ea1a3241da1d podman logs -f mssql SQL Server 2017 will run as non-root by default. This container is running as user root. To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216. The inotify_init attempt failed with File: signals.cpp:835 [Status: 0xC000011F Operation unsuccessful errno = 0x18(24) Too many open files] This program has encountered a fatal error and cannot continue running at Fri Sep 29 06:45:19 2023 The following diagnostic information is available:
Distribution: Ubuntu 18.04.6 LTS Processors: 6 Total Memory: 16663420928 bytes Timestamp: Fri Sep 29 06:45:19 2023 Last errno: 24 Last errno text: Too many open files Capturing a dump of 1 sqlservr: utils.cpp:561: uintptr_t GetEndOfLibOSVmRange(): Assertion
GetGlobals()->GetStatics()->IsLibOSVmmRangeEndValid()' failed. 2023-09-29 06:45:28.42 Server Setup step is copying system data file 'C:\templatedata\master.mdf' to '/var/opt/mssql/data/master.mdf'. 2023-09-29 06:45:28.65 Server Did not find an existing master data file /var/opt/mssql/data/master.mdf, copying the missing default master and other system database files. If you have moved the database location, but not moved the database files, startup may fail. To repair: shutdown SQL Server, move the master database to configured location, and restart. 2023-09-29 06:45:28.65 Server Setup step is copying system data file 'C:\templatedata\mastlog.ldf' to '/var/opt/mssql/data/mastlog.ldf'. 2023-09-29 06:45:28.67 Server Setup step is copying system data file 'C:\templatedata\model.mdf' to '/var/opt/mssql/data/model.mdf'. 2023-09-29 06:45:28.97 Server Setup step is copying system data file 'C:\templatedata\modellog.ldf' to '/var/opt/mssql/data/modellog.ldf'. 2023-09-29 06:45:29.26 Server Setup step is copying system data file 'C:\templatedata\msdbdata.mdf' to '/var/opt/mssql/data/msdbdata.mdf'. 2023-09-29 06:45:29.76 Server Setup step is copying system data file 'C:\templatedata\msdblog.ldf' to '/var/opt/mssql/data/msdblog.ldf'. 2023-09-29 06:45:30.01 Server Microsoft SQL Server 2017 (RTM-CU31-GDR) (KB5021126) - 14.0.3460.9 (X64) Jan 25 2023 08:42:43 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Linux (Ubuntu 18.04.6 LTS) 2023-09-29 06:45:30.02 Server UTC adjustment: 0:00 2023-09-29 06:45:30.02 Server (c) Microsoft Corporation. 2023-09-29 06:45:30.03 Server All rights reserved. 2023-09-29 06:45:30.03 Server Server process ID is 392. 2023-09-29 06:45:30.04 Server Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'. 2023-09-29 06:45:30.04 Server Registry startup parameters: -d /var/opt/mssql/data/master.mdf -l /var/opt/mssql/data/mastlog.ldf -e /var/opt/mssql/log/errorlog 2023-09-29 06:45:30.06 Server SQL Server detected 1 sockets with 6 cores per socket and 6 logical processors per socket, 6 total logical processors; using 6 logical processors based on SQL Server licensing. This is an informational message; no user action is required. 2023-09-29 06:45:30.07 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required. 2023-09-29 06:45:30.07 Server Detected 12713 MB of RAM. This is an informational message; no user action is required. 2023-09-29 06:45:30.07 Server Using conventional memory in the memory manager. 2023-09-29 06:45:30.14 Server Large Page Allocated: 32MB 2023-09-29 06:45:30.15 Server Page exclusion bitmap is enabled. 2023-09-29 06:45:30.47 Server Buffer pool extension is already disabled. No action is necessary. 2023-09-29 06:45:30.63 Server InitializeExternalUserGroupSid failed. Implied authentication will be disabled. 2023-09-29 06:45:30.63 Server Implied authentication manager initialization failed. Implied authentication will be disabled. 2023-09-29 06:45:30.64 Server Successfully initialized the TLS configuration. Allowed TLS protocol versions are ['1.0 1.1 1.2']. Allowed TLS ciphers are ['ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:!DHE-RSA-AES256-GCM-SHA384:!DHE-RSA-AES128-GCM-SHA256:!DHE-RSA-AES256-SHA:!DHE-RSA-AES128-SHA']. 2023-09-29 06:45:30.67 Server Query Store settings initialized with enabled = 1, 2023-09-29 06:45:30.73 Server Node configuration: node 0: CPU mask: 0x000000000000003f:0 Active CPU mask: 0x000000000000003f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required. 2023-09-29 06:45:30.74 Server The maximum number of dedicated administrator connections for this instance is '1' 2023-09-29 06:45:30.81 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required. 2023-09-29 06:45:30.83 Server In-Memory OLTP initialized on standard machine. 2023-09-29 06:45:30.90 Server Database Instant File Initialization: enabled. For security and performance considerations see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message only. No user action is required. ForceFlush is enabled for this instance. 2023-09-29 06:45:30.91 Server Software Usage Metrics is disabled. 2023-09-29 06:45:30.92 spid6s Starting up database 'master'. ForceFlush feature is enabled for log durability. 2023-09-29 06:45:31.34 spid6s Converting database 'master' from version 862 to the current version 869. 2023-09-29 06:45:31.34 spid6s Database 'master' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:31.42 spid6s Database 'master' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:31.50 spid6s Database 'master' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:31.56 spid6s Database 'master' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:31.61 spid6s Database 'master' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:31.67 spid6s Database 'master' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:31.71 spid6s Database 'master' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:32.12 spid6s Resource governor reconfiguration succeeded. 2023-09-29 06:45:32.12 spid6s SQL Server Audit is starting the audits. This is an informational message. No user action is required. 2023-09-29 06:45:32.13 spid6s SQL Server Audit has started the audits. This is an informational message. No user action is required. 2023-09-29 06:45:32.28 spid6s SQL Trace ID 1 was started by login "sa". 2023-09-29 06:45:32.34 spid6s Server name is '4594ad66d66f'. This is an informational message only. No user action is required. 2023-09-29 06:45:32.36 spid20s Always On: The availability replica manager is starting. This is an informational message only. No user action is required. 2023-09-29 06:45:32.36 spid8s Starting up database 'mssqlsystemresource'. 2023-09-29 06:45:32.38 spid8s The resource database build version is 14.00.3460. This is an informational message only. No user action is required. 2023-09-29 06:45:32.39 spid6s Starting up database 'msdb'. 2023-09-29 06:45:32.42 spid19s Password policy update was successful. 2023-09-29 06:45:32.42 spid20s Always On: The availability replica manager is waiting for the instance of SQL Server to allow client connections. This is an informational message only. No user action is required. 2023-09-29 06:45:32.43 spid8s Starting up database 'model'. 2023-09-29 06:45:32.56 spid6s The tail of the log for database msdb is being rewritten to match the new sector size of 4096 bytes. 512 bytes at offset 306688 in file /var/opt/mssql/data/MSDBLog.ldf will be written. 2023-09-29 06:45:32.70 spid6s Converting database 'msdb' from version 862 to the current version 869. 2023-09-29 06:45:32.71 spid6s Database 'msdb' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:32.71 spid8s The tail of the log for database model is being rewritten to match the new sector size of 4096 bytes. 2048 bytes at offset 75776 in file /var/opt/mssql/data/modellog.ldf will be written. 2023-09-29 06:45:32.79 spid19s A self-generated certificate was successfully loaded for encryption. 2023-09-29 06:45:32.94 spid8s Converting database 'model' from version 862 to the current version 869. 2023-09-29 06:45:32.95 spid8s Database 'model' running the upgrade step from version 862 to version 863. 2023-09-29 06:45:32.97 spid19s Server is listening on [ 'any' <ipv6> 1433]. 2023-09-29 06:45:32.98 spid6s Database 'msdb' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:32.98 spid19s Server is listening on [ 'any' <ipv4> 1433]. 2023-09-29 06:45:33.00 Server Server is listening on [ ::1 <ipv6> 1434]. 2023-09-29 06:45:33.00 Server Server is listening on [ 127.0.0.1 <ipv4> 1434]. 2023-09-29 06:45:33.01 Server Dedicated admin connection support was established for listening locally on port 1434. 2023-09-29 06:45:33.01 spid19s SQL Server is now ready for client connections. This is an informational message; no user action is required. 2023-09-29 06:45:33.08 spid8s Database 'model' running the upgrade step from version 863 to version 864. 2023-09-29 06:45:33.10 spid6s Database 'msdb' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:33.17 spid8s Database 'model' running the upgrade step from version 864 to version 865. 2023-09-29 06:45:33.17 spid6s Database 'msdb' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:33.26 spid8s Database 'model' running the upgrade step from version 865 to version 866. 2023-09-29 06:45:33.28 spid6s Database 'msdb' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:33.34 spid8s Database 'model' running the upgrade step from version 866 to version 867. 2023-09-29 06:45:33.37 spid6s Database 'msdb' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:33.45 spid8s Database 'model' running the upgrade step from version 867 to version 868. 2023-09-29 06:45:33.47 spid6s Database 'msdb' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:33.58 spid8s Database 'model' running the upgrade step from version 868 to version 869. 2023-09-29 06:45:33.87 spid8s Polybase feature disabled. 2023-09-29 06:45:33.87 spid8s Clearing tempdb database. 2023-09-29 06:45:34.14 spid8s Starting up database 'tempdb'. 2023-09-29 06:45:34.26 spid8s The tempdb database has 1 data file(s). 2023-09-29 06:45:34.28 spid24s The Service Broker endpoint is in disabled or stopped state. 2023-09-29 06:45:34.28 spid24s The Database Mirroring endpoint is in disabled or stopped state. 2023-09-29 06:45:34.30 spid24s Service Broker manager has started. 2023-09-29 06:45:34.48 spid6s Recovery is complete. This is an informational message only. No user action is required. 2023-09-29 06:45:34.50 spid20s The default language (LCID 0) has been set for engine and full-text services.