Failed to start samba due to a system error: Error running a command. cmd 22

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Cant start SAMBA

Detailed step by step instructions to reproduce the problem

just tried to turn samba on under services

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/smart_manager/views/", line 123, in post systemctl("smb", command) File "/opt/rockstor/src/rockstor/system/", line 77, in systemctl return run_command([SYSTEMCTL_BIN, switch, service_name], log=True) File "/opt/rockstor/src/rockstor/system/", line 176, in run_command raise CommandException(cmd, out, err, rc) CommandException: Error running a command. cmd = /usr/bin/systemctl start smb. rc = 1. stdout = ['']. stderr = ['Job for smb.service failed. See "systemctl status smb.service" and "journalctl -xe" for details.', '']

This is my first time using Rockstor. Its installed as a VM with ESXI 6.7.
I simply want to enable samba and NFS for LAN file sharing.

When i try to run the commands in the error, i get a permissions error. It says i dont have permission to view the log? this is the default user i created when installing the program.

here are the results from the systemctl status and journalctl

here are some errors from the rockstor.log

@mladams Welcome to the Rockstor community.

I suspect that you have already resolved these issues but given the first is a know upstream samba update failure with our now legacy CentOS base and the key to it’s cause can be had via the suggested commands at the end of that error message:

Essentially a samba library is known to occasionally fail during our now rather large update set from CentOS, due in part to our rather old ISO.

See the following forum thread for how some folks resolved this in their Rockstor installs:

This samba library update failure and many other failures can be down to rebooting mid update. This is easily done now that there are hundreds of MBs of upstream updates. And we have insufficient Web-UI feedback to indicate when exactly all these updates are in place. One work around, post subscribing to an update channel via the Web-UI, on the older Rockstor 3 variants only, is to do this now very large update via the command line as the root user:

yum update

You may in this process be asked to accept new upstream repo keys.

Our newer ‘Built on openSUSE’ release candidate variant, now at 4.0.6, does not suffer from this update issue and uses zypper as it’s main update program.

Hope that helps at least with this issue.

1 Like