Unable to start samba service

I updated my system to 3.9.2-51 and after that I’m unable to start the samba service. Here is the error I get when I try to start the service. Any help would be appreciated.

  Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/smart_manager/views/samba_service.py", line 113, in post
    systemctl('nmb', command)
  File "/opt/rockstor/src/rockstor/system/services.py", line 65, in systemctl
    return run_command([SYSTEMCTL_BIN, switch, service_name], log=True)
  File "/opt/rockstor/src/rockstor/system/osi.py", line 120, in run_command
    raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/systemctl start nmb. rc = 1. stdout = ['']. stderr = ['Job for nmb.service failed because the control process exited with error code. See "systemctl status nmb.service" and "journalctl -xe" for details.', '']

Here is the systemd logs

Jan 02 16:52:02 rockstor systemd[1]: Reloading.
Jan 02 16:52:02 rockstor systemd[1]: Reloading.
Jan 02 16:52:02 rockstor systemd[1]: Starting Samba NMB Daemon...
-- Subject: Unit nmb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nmb.service has begun starting up.
Jan 02 16:52:02 rockstor nmbd[13048]: /usr/sbin/nmbd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Jan 02 16:52:02 rockstor systemd[1]: nmb.service: main process exited, code=exited, status=127/n/a
Jan 02 16:52:02 rockstor systemd[1]: Failed to start Samba NMB Daemon.
-- Subject: Unit nmb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nmb.service has failed.
--
-- The result is failed.
Jan 02 16:52:02 rockstor systemd[1]: Unit nmb.service entered failed state.
Jan 02 16:52:02 rockstor systemd[1]: nmb.service failed.
Jan 02 16:52:03 rockstor dockerd[5839]: [20200102 16:52:03.152] TRACKER[66.165.233.194:4000, [2604:4500:9:58::10]:4000] requesting peers for [1299]
Jan 02 16:52:03 rockstor dockerd[5839]: [312B blob data]
Jan 02 16:52:03 rockstor dockerd[5839]: [20200102 16:52:03.181] TRACKER[66.165.233.194:4000, [2604:4500:9:58::10]:4000] got message from 66.165.233.194:4000/uTP[0x00007fb73c027850]: { "m": "peers", "peers": [
Jan 02 16:52:03 rockstor dockerd[5839]: [20200102 16:52:03.181] Tracker [66.165.233.194:4000, [2604:4500:9:58::10]:4000] time is 1578012723
Jan 02 16:52:03 rockstor dockerd[5839]: [20200102 16:52:03.181] SD[1299]: Got list of 0 peers
Jan 02 16:52:07 rockstor dockerd[5839]: [20200102 16:52:07.239] 16TunnelConnection[0x00007fb73d9baf60]: received ping

Hello @SatishI

It would probably help if you ran the commands in the exception message and provide their output.

@vesper1978. I have posted the logs.

Thanks @vesper1978 for recommending the logs, they do indeed point to the problem:

After a quick search on the forum, I would recommend the following thread and the post below in particular:

It does look like an error may have occurred during the update of the samba package (there have been quite a lot of them lately from upstream). I would thus try to follow @phillxnet’s suggestions in the post linked above and it should help move things further.

Hope this helps, and let us know how it goes.

1 Like

Thanks reinstalling libwbclient resolved the issue.

Glad it’s now worked out, thanks for letting us know!