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 64, in systemctl
return run_command([SYSTEMCTL_BIN, switch, service_name])
File "/opt/rockstor/src/rockstor/system/osi.py", line 121, 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.', '']
I’m sorry but i’m a noob with this. I already looked at other topics but it seems i’m not understanding a lot of things because i don’t know any command on linux. I tried to enforce selinux and to disable it with no success…
Yes, I believe your problem comes from that, especially given the error you see when trying to start the Samba service. From your screenshot (thanks a lot for including it):
version 'SAMBA_4.4.4' not found
…we can see that the samba package does not appear to be installed. Given the computer was turned off mid-updates, this is not that surprising as yum doesn’t really seem to like that.
I would thus run sudo yum update from the terminal to process any remaining updates and make sure they all install successfully. If Samba is not one of these packages to be updated/re-installed, you can have a look at: yum info samba and see what version you have. It is possible you are in the same situation as in the post below:
Try the sudo yum update first and see how it goes. Then have a look at the status of your current samba install yum info samba. We should be able to have a better idea from the outputs of these two commands.
It appears the latest samba version did install correclty, yet nmb seems to still look for Samba 4.4.4. As I result, I would first restart your machine to reload everythin, as it always prove useful after so many updates.
I would then guide you towards the excellent troubleshooting that @Haioken did in the thread I linked above (and pasted below):
In particular, it started with:
systemctl status nmb.service
journalctl -u nmb.service
systemctl status smb.service
journalctl -u smb.service
Make sure to copy + paste the outputs for both of these (the system shell we use, Shellinabox, let’s you use Ctrl + C to copy) so that we can see all details.
/usr/sbin/nmbd: /usr/lib64/samba/libwinbind-client-samba4.so: version SAMBA_4.4.4’ not found (required by /lib64/libwbclient.so.0)`
…we can see that you’re probably in the same case as in the thread I linked and that we’re following: an issue with the installation of libwbclient as the latter seems to have stayed on v4.4.4 rather than following the update samba version 4.9.1 (was 4.4.4). These two packages are highly interconnected so I’m not surprised to see error if one’s version doesn’t match the other.
You should first check your installed versions:
yum info samba
yum info libwbclient
On my machine I have:
[root@rockdev ~]# yum info samba
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.nodesdirect.com
* epel: fedora-epel.mirrors.tds.net
* extras: mirror.nodesdirect.com
* updates: mirror.nodesdirect.com
Installed Packages
Name : samba
Arch : x86_64
Version : 4.9.1
Release : 10.el7_7
Size : 1.9 M
Repo : installed
From repo : updates
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : Samba is the standard Windows interoperability suite of programs for Linux and
: Unix.
[root@rockdev ~]#
[root@rockdev ~]# yum info libwbclient
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.nodesdirect.com
* epel: fedora-epel.mirrors.tds.net
* extras: mirror.nodesdirect.com
* updates: mirror.nodesdirect.com
Installed Packages
Name : libwbclient
Arch : x86_64
Version : 4.9.1
Release : 10.el7_7
Size : 71 k
Repo : installed
From repo : updates
Summary : The winbind client library
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : The libwbclient package contains the winbind client library from the Samba
: suite.
Available Packages
Name : libwbclient
Arch : i686
Version : 4.9.1
Release : 10.el7_7
Size : 112 k
Repo : updates/x86_64
Summary : The winbind client library
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : The libwbclient package contains the winbind client library from the Samba
: suite.
Now, I suspect your libwbclient remained at v4.4.4.
If that is the case, you could try forcing its install at indicated by @Haioken:
These are the outputs from the first two commands:
[root@nas_server ~]# yum info samba
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.prometeus.net
* epel: mirror.euserv.net
* extras: mirrors.prometeus.net
* updates: mirrors.prometeus.net
Installed Packages
Name : samba
Arch : x86_64
Version : 4.9.1
Release : 10.el7_7
Size : 1.9 M
Repo : installed
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : Samba is the standard Windows interoperability suite of programs for Linux and
: Unix.
[root@nas_server ~]# yum info libwbclient
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.prometeus.net
* epel: mirror.euserv.net
* extras: mirrors.prometeus.net
* updates: mirrors.prometeus.net
Installed Packages
Name : libwbclient
Arch : x86_64
Version : 4.4.4
Release : 14.el7_3
Size : 71 k
Repo : installed
From repo : anaconda
Summary : The winbind client library
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : The libwbclient package contains the winbind client library from the Samba
: suite.
Name : libwbclient
Arch : x86_64
Version : 4.9.1
Release : 10.el7_7
Size : 71 k
Repo : installed
Summary : The winbind client library
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : The libwbclient package contains the winbind client library from the Samba
: suite.
Available Packages
Name : libwbclient
Arch : i686
Version : 4.9.1
Release : 10.el7_7
Size : 112 k
Repo : updates/x86_64
Summary : The winbind client library
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : The libwbclient package contains the winbind client library from the Samba
: suite.
Then i run the last command, but it didn’t resolve the problem. I can’t write the output because there are too many characters. Don’t you think that i only need to delete the old libwbclient? Because they are both installed (the old and the new one).
That’s rather unexpected… I didn’t that was possible. In this case yes, uninstalling them and then reinstalling them might help, but I’m not sure how yum will deal with that. You can always try yum remove libwbclient and see what is listed as package(s) to remove… hopefully both will be listed for removal so that you can re-install it.
I managed to remove the two libwbclients and reinstall the new one but it says “failed to restart nmb.service: unit not found”. (I’m sorry but i can only do a photo with my phone)
It looks like your Rockstor install was damaged… probably while removing samba. I’m worried your repos are affected as well, but if you do see Rockstor-Testing in the output of yum repolist, you can try to yum install rockstor.
You’re probably fine now with all the updates, but let us know if you notice anything odd.
Regarding Samba, make sure to configure the service using the little wrench icon next to Samba in the Services page as we had some silent oddity there. It has now been fixed in the Stable channel, but in the Testing channel, you would need to make sure you do configure it first and then toggle it ON.
Hope everything will go smoothly from now on,
Cheers!