Samba server stopped working

I was playing around a little, and thought I’d install a samba-client on the osmc server as well. I shouldn’t have done that. At the end of the installation, this error appeared:

Job for smbd.service failed. See ‘systemctl status smbd.service’ and ‘journalctl -xn’ for details.

The client installation broke the server, it seems. Removing/purging the client and rebooting didn’t help. I now get this error when I try to start the smbd server. And the samba network shares naturally doesn’t work.

systemctl status smbd.service gives this:

smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: failed (Result: exit-code) since Tue 2016-09-27 13:06:04 CEST; 3min 6s ago
Process: 1239 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

journalctl -xn gives:

Sep 27 13:24:05 kodi systemd[1]: Unit smbd.service entered failed state.
Sep 27 13:24:05 kodi sudo[1618]: pam_unix(sudo:session): session closed for user root
Sep 27 13:24:09 kodi sudo[1616]: pam_unix(sudo:session): session closed for user root
Sep 27 13:24:55 kodi sudo[1643]: osmc : TTY=pts/1 ; PWD=/home/osmc ; USER=root ; COMMAND=/usr/sbin/service smbd restart
Sep 27 13:24:55 kodi sudo[1643]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
Sep 27 13:24:56 kodi smbd[1649]: Starting SMB/CIFS daemon: smbd/usr/sbin/smbd: error while loading shared libraries: libsmbd_base.so.0: cannot open shared ob
Sep 27 13:24:56 kodi smbd[1649]: failed!
Sep 27 13:24:56 kodi systemd[1]: smbd.service: control process exited, code=exited status=1
Sep 27 13:24:56 kodi systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
– Subject: Unit smbd.service has failed
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit smbd.service has failed.

– The result is failed.
Sep 27 13:24:56 kodi systemd[1]: Unit smbd.service entered failed state.
Sep 27 13:24:56 kodi sudo[1643]: pam_unix(sudo:session): session closed for user root
Sep 27 13:26:42 kodi sudo[1669]: osmc : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/sbin/service journald
Sep 27 13:26:42 kodi sudo[1669]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
Sep 27 13:26:42 kodi sudo[1669]: pam_unix(sudo:session): session closed for user root
Sep 27 13:27:30 kodi sudo[1675]: osmc : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/bin/journalctl -xe
Sep 27 13:27:30 kodi sudo[1675]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)

Nothing in the log.smdb or log.nmdb files either.

Any ideas?

What steps did you take to install a smb client?
I ask, because OSMC comes with the cifs (smb) client service installed and ready-to-use. You might have a need to set the WORKGROUP, but anything else is taken care of if you install and configure the smb server (from the OSMC apps provided).
Derek

Yup, that might be the problem. I tried installing it manually. Anyway, the smbd service was 100% broken after this, and instead of wasting a two-figure amount of hours on something that probably wouldn’t be possible to fix anyway, I reinstall the whole server.