MS Sql Server on Fedora 34 failing with status 127

ahalaburda

New Member
Joined
Aug 30, 2021
Messages
1
Reaction score
0
Credits
13
I'm recently moved to fedora 34 and trying to install MS Sql Server, but it isn't starting. Installation is clean, setup is done by running

sudo /opt/mssql/bin/mssql-conf setup

status check

sudo systemctl status mssql-server

returns this
Code:
mssql-server.service - Microsoft SQL Server Database Engine

Loaded: loaded (/usr/lib/systemd/system/mssql-server.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Mon 2021-08-30 18:51:56 EEST; 11min ago

   Docs: https://docs.microsoft.com/en-us/sql/linux

Process: 1027 ExecStart=/opt/mssql/bin/sqlservr (code=exited, status=127)

logs say:
Code:
Aug 30 18:51:55 fedora systemd[1]: Started Microsoft SQL Server Database Engine.
Aug 30 18:51:55 fedora sqlservr[933]: /opt/mssql/bin/sqlservr: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or >
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Main process exited, code=exited, status=127/n/a
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Failed with result 'exit-code'.
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Scheduled restart job, restart counter is at 1.
Aug 30 18:51:55 fedora systemd[1]: Stopped Microsoft SQL Server Database Engine.


(and same 3 times)

How do i fix this? I really love fedora look and feel and don't want to give up on it, because one my work tools isn't working.
 


jizzy

New Member
Joined
Jan 28, 2021
Messages
2
Reaction score
0
Credits
21
I'm recently moved to fedora 34 and trying to install MS Sql Server, but it isn't starting. Installation is clean, setup is done by running

sudo /opt/mssql/bin/mssql-conf setup

status check

sudo systemctl status mssql-server

returns this
Code:
mssql-server.service - Microsoft SQL Server Database Engine

Loaded: loaded (/usr/lib/systemd/system/mssql-server.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Mon 2021-08-30 18:51:56 EEST; 11min ago

   Docs: https://docs.microsoft.com/en-us/sql/linux

Process: 1027 ExecStart=/opt/mssql/bin/sqlservr (code=exited, status=127)

logs say:
Code:
Aug 30 18:51:55 fedora systemd[1]: Started Microsoft SQL Server Database Engine.
Aug 30 18:51:55 fedora sqlservr[933]: /opt/mssql/bin/sqlservr: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or >
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Main process exited, code=exited, status=127/n/a
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Failed with result 'exit-code'.
Aug 30 18:51:55 fedora systemd[1]: mssql-server.service: Scheduled restart job, restart counter is at 1.
Aug 30 18:51:55 fedora systemd[1]: Stopped Microsoft SQL Server Database Engine.


(and same 3 times)

How do i fix this? I really love fedora look and feel and don't want to give up on it, because one my work tools isn't working.

Code:
dnf install openldap-compat


helped


for more information you can run

Code:
rpm -q --whatprovides /usr/lib64/libldap-2.4.so.2
 
Last edited:
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Top