LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-09-2021, 10:12 PM   #1
bellsal
Member
 
Registered: Aug 2007
Posts: 42

Rep: Reputation: 0
Wink Samba broke after upgrading from Fedora 33 to Fedora 34


Hi,

After upgrading from Fedora 33 to Fedora 34, samba broke, and the smb and nmb services are not working. Any suggestions on how to fix this issue. Below are the errors that I am getting.

Thanks in advance,

Bellsal

-----------------------------------------

[root@LinuxSrv lib]# systemctl status smb

x smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-10-09 18:09:11 MST; 1h 38min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 32914 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=127)
Main PID: 32914 (code=exited, status=127)
CPU: 3ms

Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: Starting Samba SMB Daemon...
Oct 09 18:09:11 LinuxSrv.bellsaluna smbd[32914]: /usr/sbin/smbd: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: smb.service: Main process exited, code=exited, status=127/n/a
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: smb.service: Failed with result 'exit-code'.
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: Failed to start Samba SMB Daemon.

----------------------------------------------------------

[root@LinuxSrv lib]# journalctl -xeu smb.service
-- An ExecStart= process belonging to unit smb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 127.
Oct 09 15:32:17 LinuxSrv.bellsaluna systemd[1]: smb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- The unit smb.service has entered the 'failed' state with result 'exit-code'.
Oct 09 15:32:17 LinuxSrv.bellsaluna systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smb.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- A start job for unit smb.service has finished with a failure.
--
-- The job identifier is 6741 and the job result is failed.
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smb.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- A start job for unit smb.service has begun execution.
--
-- The job identifier is 22752.
Oct 09 18:09:11 LinuxSrv.bellsaluna smbd[32914]: /usr/sbin/smbd: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: smb.service: Main process exited, code=exited, status=127/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- An ExecStart= process belonging to unit smb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 127.
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: smb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- The unit smb.service has entered the 'failed' state with result 'exit-code'.
Oct 09 18:09:11 LinuxSrv.bellsaluna systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smb.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailma.../systemd-devel
--
-- A start job for unit smb.service has finished with a failure.
--
-- The job identifier is 22752 and the job result is failed.

------------------

In Fedora 33, it was:
lrwxrwxrwx 1 root root 22 Sep 15 2020 /usr/lib64/libldap-2.4.so.2 -> libldap-2.4.so.2.10.13

In Fedora 34, it is:
lrwxrwxrwx 1 root root 23 Jun 10 09:03 libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.11.5

Last edited by bellsal; 10-09-2021 at 10:48 PM.
 
Old 10-09-2021, 11:11 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,138

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Code:
rpm -q --whatprovides /usr/lib64/libldap-2.4.so.2
Install it.
 
Old 10-10-2021, 12:00 AM   #3
bellsal
Member
 
Registered: Aug 2007
Posts: 42

Original Poster
Rep: Reputation: 0
I did what you suggested and got the error below:

[root@LinuxSrv lib64]# rpm -q --whatprovides /usr/lib64/libldap-2.4.so.2

error: file /usr/lib64/libldap-2.4.so.2: No such file or directory
 
Old 10-10-2021, 01:12 AM   #4
bellsal
Member
 
Registered: Aug 2007
Posts: 42

Original Poster
Rep: Reputation: 0
SOLVED:

dnf install openldap-compat-2.4.57-5.fc34.x86_64

libldap-2.4.so.2 is included in this module.
 
Old 10-10-2021, 06:49 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by bellsal View Post
I did what you suggested and got the error below:

[root@LinuxSrv lib64]# rpm -q --whatprovides /usr/lib64/libldap-2.4.so.2

error: file /usr/lib64/libldap-2.4.so.2: No such file or directory
To clarify, rpm can search only in already installed packages. To find what package provides a missing file, run
Code:
dnf prov \*/libldap-2.4.so.2
 
  


Reply

Tags
samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba mount broke after upgrade spooge Slackware 5 03-08-2013 05:45 PM
FTP and Samba connect broke after installing gcc-3.4.6 jwoods Linux - Software 1 08-10-2006 12:06 PM
Alsa broke while upgrading to Slackware-current Almighty-Bob Linux - Software 5 03-16-2005 08:07 PM
Upgrading from FC2 to FC3 broke yum! ericcarlson Fedora 4 12-29-2004 12:47 PM
X Server broke while upgrading nny0000 Slackware 1 08-08-2004 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration