Page 1 of 2

SOLVED: Samba Server Stopped

Posted: Thu Dec 31, 2015 11:46 pm
by hemington1
Happy New Year to all.
Yesterday afternoon samba just stopped. I did not install any apps or delete any.
Any clues to a fix?

Code: Select all

[root@localhost ~]# systemctl status smb ‚óŹ smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled) Active: failed (Result: start-limit) since Fri 2016-01-01 14:39:45 AWST; 2min 27s ago Process: 10016 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=127) Main PID: 10016 (code=exited, status=127) Jan 01 14:39:45 localhost.localdomain systemd[1]: smb.service: main process exited, code=exited, status=127/n/a Jan 01 14:39:45 localhost.localdomain systemd[1]: Failed to start Samba SMB Daemon. Jan 01 14:39:45 localhost.localdomain systemd[1]: Unit smb.service entered failed state. Jan 01 14:39:45 localhost.localdomain systemd[1]: smb.service failed. Jan 01 14:39:45 localhost.localdomain systemd[1]: start request repeated too quickly for smb.service Jan 01 14:39:45 localhost.localdomain systemd[1]: Failed to start Samba SMB Daemon. Jan 01 14:39:45 localhost.localdomain systemd[1]: smb.service failed. Jan 01 14:39:46 localhost.localdomain systemd[1]: start request repeated too quickly for smb.service Jan 01 14:39:46 localhost.localdomain systemd[1]: Failed to start Samba SMB Daemon. Jan 01 14:39:46 localhost.localdomain systemd[1]: smb.service failed. [root@localhost ~]#

Re: Samba Server Stopped

Posted: Fri Jan 01, 2016 7:10 am
by bigfoot65
Try:

Code: Select all

systemctl start smb
Check status again.
Also check /var/log/ samba/smbd.log for errors.

Re: Samba Server Stopped

Posted: Fri Jan 01, 2016 6:34 pm
by hemington1
smbd.log is full of cups errors, unable to connect to printer.
I tried removing cups but get this:

Code: Select all

[root@localhost ~]# yum erase cups Loaded plugins: fastestmirror No Match for argument: cups No Packages marked for removal

Code: Select all

[2015/12/28 03:49:50.293063, 0] ../source3/printing/print_cups.c:151(cups_connect) Unable to connect to CUPS server localhost:631 - Bad file descriptor [2015/12/28 03:49:50.293381, 0] ../source3/printing/print_cups.c:528(cups_async_callback) failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL [2015/12/28 04:02:50.884236, 0] ../source3/printing/print_cups.c:151(cups_connect) Unable to connect to CUPS server localhost:631 - Bad file descriptor [2015/12/28 04:02:50.884575, 0] ../source3/printing/print_cups.c:528(cups_async_callback) failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

Re: Samba Server Stopped

Posted: Sat Jan 02, 2016 8:05 am
by bigfoot65
Try installing cups then start Samba. Check status and report back.

Re: Samba Server Stopped

Posted: Sat Jan 02, 2016 7:31 pm
by hemington1
cups installed.
Samba is still in a permanently stopped state.
I restarted the HDA to be sure. Still no samba.
I noticed OpenVPN server had also permanently stopped after the restart. A re-install of OpenVPN was the only way to get it working again.
Samba still stopped..........
:cry:
Some critical files/folder corrupted?

Code: Select all

Jan 03 10:39:26 localhost.localdomain smbd[3854]: /usr/sbin/smbd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Is the folder in the wrong location?

Code: Select all

[root@localhost ~]# locate libwbclient.so.0 /usr/lib64/samba/wbclient/libwbclient.so.0 /usr/lib64/samba/wbclient/libwbclient.so.0.11 [root@localhost ~]#

Re: Samba Server Stopped

Posted: Sat Jan 02, 2016 9:30 pm
by bigfoot65
Is the OS updated?

Code: Select all

yum update

Re: Samba Server Stopped

Posted: Sun Jan 03, 2016 4:46 am
by hemington1
Yes, up to date.

Re: Samba Server Stopped

Posted: Sun Jan 03, 2016 11:40 am
by bigfoot65
You might be able to fix it by reinstalling Samba:

Code: Select all

yum reinstall samba
It should work, but no guarantee. Also please understand it might make things worse, but worth a shot in my opinion.

Re: Samba Server Stopped

Posted: Sun Jan 03, 2016 7:32 pm
by hemington1
Thanks Big. Before I do that, is there a way to redirect Samba to find the library in /usr/lib64/samba/ ?
Where is this library in your setup? Is it in /usr/sbin/smbd ?

Re: Samba Server Stopped

Posted: Mon Jan 04, 2016 11:57 am
by bigfoot65
I have not checked, but I think the reinstall is the best option. It should fix the missing files but you may need to manually start the service.