Error : increase sysctl fs.aio-max-nr while configuring SQL Server in Ubuntu - sql-server

I have successfully installed SQL Server in Ubuntu 20.04.5. But while configuring SQL Server running the command /opt/mssql/bin/mssql-conf setup and answering to all questions, I got the following error
The following diagnostic information is available:
Reason: 0x00000003
Status: 0x0000000b
Message: Unable to create a new asynchronous I/O context. Please increase sysctl fs.aio-max-nr
Stack:
IP Function
---------------- --------------------------------------
0000555a422995b2 <unknown>
0000555a42298fd0 <unknown>
0000555a422032af <unknown>
0000555a422b1d11 <unknown>
0000555a422b1af8 <unknown>
0000555a42253096 <unknown>
0000555a4225386e <unknown>
0000555a422bf0ca <unknown>
0000555a421fa8ad <unknown>
00007f7ed3521083 __libc_start_main+0xf3
0000555a421fa77e <unknown>
Process: 13543 - sqlservr
Thread: 13543
Instance Id: e13b426f-6907-4503-b340-4d6575d62a76
Crash Id: 48813d78-4d11-482e-8318-bbd3b504e5ab
Build stamp: d81e9b6de06534e649bd57dd609aa3050f5e380f361b7f8a80a80eeb71e7422c
Distribution: Ubuntu 20.04.5 LTS
Processors: 2
Total Memory: 270359584768 bytes
Timestamp: Tue Dec 6 03:58:53 2022
Last errno: 11
Last errno text: Resource temporarily unavailable
Capturing a dump of 13543
sqlservr: utils.cpp:561: uintptr_t GetEndOfLibOSVmRange(): Assertion `GetGlobals()->GetStatics()->IsLibOSVmmRangeEndValid()' failed.
Any help will be greatly appreciated

Related

Unexpected behaviour of execlp when stdout is redirected to pipe [duplicate]

I compiled and ran the following program with TCC under Windows 7 and got an application crash:
#include <process.h>
int main(void)
{
if (execlp("c:\\windows\\system32\\whoami.exe", "c:\\windows\\system32\\whoami.exe") < 0)
perror("error");
return 1;
}
Here are the crash details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: a.exe
Application Version: 0.0.0.0
Application Timestamp: 00000000
Fault Module Name: msvcrt.dll
Fault Module Version: 7.0.7601.17744
Fault Module Timestamp: 4eeaf722
Exception Code: c0000005
Exception Offset: 0005b4fe
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Why is it happening and how can I solve this?
You forgot to null-terminate your list of arguments to execlp().
See e.g. http://linux.die.net/man/3/execlp or http://msdn.microsoft.com/en-us/library/vstudio/1kxct8h0.aspx.

Azure SQL Edge container failed to start on M1, when mapping volume to relative path

On an M1 Macbook, I followed online examples and successfully start Azure SQL Edge container with basic configuration.
Then I want to map a volume (mySpecialFolder) by "Path to the host, relative to the Compose file".
Here we want "./mySpecialFolder:/tmp", not "mySpecialFolder:/tmp".
services:
mssql:
container_name: mssql
image: "mcr.microsoft.com/azure-sql-edge:latest"
environment:
SA_PASSWORD: "something"
ACCEPT_EULA: "Y"
expose:
- 1433
ports:
- 1433:1433
networks:
- sql
volumes:
- ./mySpecialFolder:/tmp
- mssqlsystem:/var/opt/mssql
It failed to load and reports
Azure SQL Edge will run as non-root by default.
This container is running as user mssql.
To learn more visit https://go.microsoft.com/fwlink/?linkid=2140520.
2022/07/29 11:00:39 [launchpadd] INFO: Extensibility Log Header: <timestamp> <process> <sandboxId> <sessionId> <message>
2022/07/29 11:00:39 [launchpadd] WARNING: Failed to load /var/opt/mssql/mssql.conf ini file with error open /var/opt/mssql/mssql.conf: no such file or directory
2022/07/29 11:00:39 [launchpadd] INFO: DataDirectories = /bin:/etc:/lib:/lib32:/lib64:/sbin:/usr/bin:/usr/include:/usr/lib:/usr/lib32:/usr/lib64:/usr/libexec/gcc:/usr/sbin:/usr/share:/var/lib:/opt/microsoft:/opt/mssql-extensibility:/opt/mssql/mlservices:/opt/mssql/lib/zulu-jre-11:/opt/mssql-tools
2022/07/29 11:00:39 Drop permitted effective capabilities.
2022/07/29 11:00:39 [launchpadd] INFO: Polybase remote hadoop bridge disabled
2022/07/29 11:00:39 [launchpadd] INFO: Launchpadd is connecting to mssql on localhost:1431
2022/07/29 11:00:39 [launchpadd] WARNING: Failed to connect to SQL because: dial tcp 127.0.0.1:1431: connect: connection refused, will reattempt connection.
This program has encountered a fatal error and cannot continue running at Fri Jul 29 11:00:40 2022
The following diagnostic information is available:
Reason: 0x00000007
Status: 0xc0000002
Message: Failed to load KM driver [Npfs]
Stack Trace:
file://package4/windows/system32/sqlpal.dll+0x000000000030E879
file://package4/windows/system32/sqlpal.dll+0x000000000030DB54
file://package4/windows/system32/sqlpal.dll+0x000000000030AB96
file://package4/windows/system32/sqlpal.dll+0x000000000030961D
file://package4/windows/system32/sqlpal.dll+0x000000000034EE01
Stack:
IP Function
---------------- --------------------------------------
0000aaaac9c2ba70 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x25d0
0000aaaac9c2b618 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x2178
0000aaaac9c39d74 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x108d4
0000aaaac9c3a75c std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x112bc
0000aaaac9ced6c4 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_
0000ffffb9e44df8 S_SbtUnimplementedInstruction+0x2542b4
0000ffffb9e4472c S_SbtUnimplementedInstruction+0x253be8
0000ffffb9e45238 S_SbtUnimplementedInstruction+0x2546f4
0000ffffb9e3ca90 S_SbtUnimplementedInstruction+0x24bf4c
0000ffffb9e395dc S_SbtUnimplementedInstruction+0x248a98
0000ffffb9ed8ddc S_SbtUnimplementedInstruction+0x2e8298
0000ffffb9e38e44 S_SbtUnimplementedInstruction+0x248300
0000ffffb9e38b98 S_SbtUnimplementedInstruction+0x248054
0000ffffb9e38604 S_SbtUnimplementedInstruction+0x247ac0
0000ffffb9e38ffc S_SbtUnimplementedInstruction+0x2484b8
0000ffffbdb248a4 CallGuestFunction+0x84
0000ffffbdb1f964 Sbt::Dispatcher::SimulateCpu(Sbt::GuestCtx*)+0x2c
0000ffffbdb20d9c Sbt::RuntimeImpl::SimulateCpu(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)+0x3c8
0000ffffbdb219e4 Sbt::SimulateCpu(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)+0x30
0000ffffbdb22c04 SbtRtSimulateCpu+0x84
0000aaaac9c42164 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x18cc4
0000aaaac9c3fe34 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::~_Sp_counted_base()+0x16994
Process: 24 - sqlservr
Thread: 28 (application thread 0x4)
Instance Id: 76bd6c34-28e2-4a7f-9e5a-f3ffa17d9c1a
Crash Id: a022551e-96fe-4a59-ada3-4da01d244653
Build stamp: 06cd67626d2ebedd8721dc1bd892cdda65157cdcd6ac004bb81acdd6498ec618
Distribution: Ubuntu 18.04.6 LTS aarch64
Processors: 5
Total Memory: 8232747008 bytes
Timestamp: Fri Jul 29 11:00:40 2022
Last errno: 2
Last errno text: No such file or directory

Cause: Command execution failed on the local server with non-zero exit code

Failed to fetch information from target servers
Cause: Command execution failed on the local server with non-zero exit code.
command: /usr/local/psa/bin/ipmanage --xml-info
exit code: 255
stdout: <ipinfo>
<ip name="193.160.214.57">
<state>0</state>
<type>shared</type>
<ip_address>193.160.214.57</ip_address>
<mask>255.255.255.255</mask>
<iface>venet0</iface>
<clients>0</clients>
<hostings>0</hostings>
<ftps>false</ftps>
<publicIp></publicIp>
</ip>
</ipinfo>
stderr: [2019-10-20 21:21:51.133] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/f2bmng' '--reload'] with exit code [1]
PHP Fatal error: Uncaught PleskUtilException: f2bmng failed: 2019-10-20 21:21:51,115 fail2ban.jailreader [17670]: ERROR No file(s) found for glob /var/log/secure
2019-10-20 21:21:51,115 fail2ban [17670]: ERROR Failed during configuration: Have not found any log file for ssh jail
ERROR:__main__:Command '['/usr/bin/fail2ban-client', 'reload']' returned non-zero exit status 255 in /usr/local/psa/admin/plib/Service/Agent.php:210
Stack trace:
#0 /usr/local/psa/admin/plib/Ip/Ban/Manager.php(490): Service_Agent->execAndGetResponse('f2bmng', Array, '')
#1 /usr/local/psa/admin/plib/Ip/Ban/Manager.php(458): Ip_Ban_Manager->_callUtility('--reload')
#2 /usr/local/psa/admin/plib/Fail2Ban/EventListener.php(123): Ip_Ban_Manager->reload()
#3 [internal function]: Plesk\Fail2Ban\EventListener->applyChanges()
#4 {main}
thrown in /usr/local/psa/admin/plib/Service/Agent.php on line 210
That is a critical error, migration was stopped.
I don't know what is "wrong" with your plesk (not so familiar with), but fail2ban error is pretty simply:
ERROR No file(s) found for glob /var/log/secure
2019-10-20 21:21:51,115 fail2ban [17670]: ERROR Failed during configuration: Have not found any log file for ssh jail
Your ssh jail seems to be configured to monitor /var/log/secure which is not exist. Either you have to specify proper logpath (/var/log/auth.log?) where ssh logs authentication errors;
or if it is systemd journal on your system, you have to specify backend = systemd for that.
Related fail2ban jail.local would be:
[ssh]
# backend = systemd
logpath = /var/log/auth.log
But you can surely configure this in plesk settings too.
Also note your jail is called ssh, where normally original default jail of fail2ban is sshd (but it could be indeed configured with this name from your maintainer).

Sonar Runner : Unable to extract version of Microsoft Compiler

While trying to run sonar-runner on a 32 bit C++/MFC solution I got the error:
Sonar Runner : Unable to extract version of Microsoft Compiler
Here is the output:
11:56:44.856 INFO - 18645 files indexed
11:57:02.381 INFO - Quality profile for c: Sonar way
11:57:02.381 INFO - Quality profile for cpp: Sonar way
11:57:02.540 INFO - cpp EVALUATION [Expiration: 2015-10-13, Server: *]
11:57:02.540 INFO - Sensor Lines Sensor
11:57:02.747 INFO - Sensor Lines Sensor (done) | time=207ms
11:57:02.747 INFO - Sensor QProfileSensor
11:57:02.749 INFO - Sensor QProfileSensor (done) | time=2ms
11:57:02.750 INFO - Sensor InitialOpenIssuesSensor
11:57:02.754 INFO - Sensor InitialOpenIssuesSensor (done) | time=4ms
11:57:02.755 INFO - Sensor ProjectLinksSensor
11:57:02.759 INFO - Sensor ProjectLinksSensor (done) | time=4ms
11:57:02.759 INFO - Sensor VersionEventsSensor
11:57:02.764 INFO - Sensor VersionEventsSensor (done) | time=5ms
11:57:02.764 INFO - Sensor SquidSensorC
11:57:02.766 INFO - C/C++ Preprocessor in silent mode. Relaunch the analysis wi
th "sonar.verbose=true" to see issues encountered by the preprocessor.
11:57:03.214 INFO - Using build-wrapper output: E:\dev\ProjectDir\build
-wrapper-out\build-wrapper-dump.json
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 28.126s
Final Memory: 17M/200M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to extract version of Microsoft Compiler
Environment:
Windows 7 64 bit
sonarqube-5.1.2
sonar-runner-dist-2.4
build-wrapper-3.6
sonar-cpp-plugin-3.6
Java 1.8 32 bit
Any ideas what might cause this issue?
The build-wrapper produces a file with the name 'build-wrapper-dump.json'. If you open this file you'll see that at the top there is a section called 'captures'. It looks probably like this:
"captures":[
{
"compiler":"msvc-cl",
"executable":"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\bin\\x86_amd64\\CL.exe",
"stdout":"",
"stderr":""
}
While it should look like this:
"captures":[
{
"compiler":"msvc-cl",
"executable":"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\bin\\x86_amd64\\CL.exe",
"stdout":"usage: cl [ option... ] filename... [ \/link linkoption... ]\r\n",
"stderr":"Microsoft (R) C\/C++ Optimizing Compiler Version 18.00.40629 for x64\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n"
}
To get the missing values you need to execute the build-wrapper from the Visual Studio Command prompt. This command prompt sets some extra environment variables. Hope this helps.

execl() causes an application crash

I compiled and ran the following program with TCC under Windows 7 and got an application crash:
#include <process.h>
int main(void)
{
if (execlp("c:\\windows\\system32\\whoami.exe", "c:\\windows\\system32\\whoami.exe") < 0)
perror("error");
return 1;
}
Here are the crash details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: a.exe
Application Version: 0.0.0.0
Application Timestamp: 00000000
Fault Module Name: msvcrt.dll
Fault Module Version: 7.0.7601.17744
Fault Module Timestamp: 4eeaf722
Exception Code: c0000005
Exception Offset: 0005b4fe
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Why is it happening and how can I solve this?
You forgot to null-terminate your list of arguments to execlp().
See e.g. http://linux.die.net/man/3/execlp or http://msdn.microsoft.com/en-us/library/vstudio/1kxct8h0.aspx.

Resources