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

[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

Cannot start samba

Detailed step by step instructions to reproduce the problem

try to turn samba service on

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/smart_manager/views/samba_service.py", line 114, in post systemctl('smb', 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 smb. rc = 1. stdout = ['']. stderr = ['Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.', '']

Hi @veepee78,

Can you provide the output from:

sudo systemctl status smb.service

and

sudo journalctl -xe

These should provide more information.

Hi, here:

[root@nas ~]# sudo systemctl status smb.service -l
● smb.service - Samba SMB Daemon
Loaded: loaded (/etc/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-11-13 13:12:16 EET; 3h 30min ago
Process: 10558 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=255)
Main PID: 10558 (code=exited, status=255)
Status: β€œStarting process…”

Nov 13 13:12:16 nas systemd[1]: Starting Samba SMB Daemon…
Nov 13 13:12:16 nas systemd[1]: smb.service: Supervising process 10558 which is not our child. We’ll most likely not notice when it exits.
Nov 13 13:12:16 nas smbd[10558]: [2018/11/13 13:12:16.824114, 0] …/source3/auth/auth_util.c:1399(make_new_session_info_guest)
Nov 13 13:12:16 nas smbd[10558]: create_local_token failed: NT_STATUS_NO_MEMORY
Nov 13 13:12:16 nas smbd[10558]: [2018/11/13 13:12:16.824183, 0] …/source3/smbd/server.c:2011(main)
Nov 13 13:12:16 nas smbd[10558]: ERROR: failed to setup guest info.
Nov 13 13:12:16 nas systemd[1]: smb.service: main process exited, code=exited, status=255/n/a
Nov 13 13:12:16 nas systemd[1]: Failed to start Samba SMB Daemon.
Nov 13 13:12:16 nas systemd[1]: Unit smb.service entered failed state.
Nov 13 13:12:16 nas systemd[1]: smb.service failed.

[root@nas ~]# sudo journalctl -xe
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit session-8.scope has finished starting up.

– The start-up result is done.
Nov 13 16:41:07 nas systemd-logind[3095]: New session 8 of user root.
– Subject: A new session 8 has been created for user root
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat

– A new session with the ID 8 has been created for the user root.

– The leading process of the session is 4370.
Nov 13 16:41:07 nas systemd[1]: Starting Session 8 of user root.
– Subject: Unit session-8.scope has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit session-8.scope has begun starting up.
Nov 13 16:41:07 nas sshd[4370]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 13 16:41:09 nas kernel: wbinfo[4516]: segfault at 0 ip 00007f4371b3a67f sp 00007ffd08f6c7b8 error 4 in libc-2.17.so[7f4
Nov 13 16:41:25 nas kernel: wbinfo[4581]: segfault at 0 ip 00007f7a8dd7c67f sp 00007ffc263d5548 error 4 in libc-2.17.so[7f7
Nov 13 16:41:41 nas kernel: wbinfo[4602]: segfault at 0 ip 00007f748532c67f sp 00007ffd166b4a58 error 4 in libc-2.17.so[7f7
Nov 13 16:41:47 nas sudo[4603]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status smb.service
Nov 13 16:41:56 nas kernel: wbinfo[4626]: segfault at 0 ip 00007fcd3f9b967f sp 00007ffd51567228 error 4 in libc-2.17.so[7fc
Nov 13 16:42:12 nas kernel: wbinfo[4648]: segfault at 0 ip 00007f8ab5f0067f sp 00007fff6a37eda8 error 4 in libc-2.17.so[7f8
Nov 13 16:42:22 nas sudo[4661]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status smb.service -l
Nov 13 16:42:28 nas kernel: wbinfo[4716]: segfault at 0 ip 00007f39d97d967f sp 00007ffc8d821c38 error 4 in libc-2.17.so[7f3
Nov 13 16:42:43 nas kernel: wbinfo[4741]: segfault at 0 ip 00007f7737fa467f sp 00007ffdb630f898 error 4 in libc-2.17.so[7f7
Nov 13 16:42:59 nas kernel: wbinfo[4763]: segfault at 0 ip 00007fbaec48d67f sp 00007fff0e5b7378 error 4 in libc-2.17.so[7fb
Nov 13 16:43:15 nas kernel: wbinfo[4784]: segfault at 0 ip 00007f2ca4ba567f sp 00007ffe2a9b0098 error 4 in libc-2.17.so[7f2
Nov 13 16:43:31 nas kernel: wbinfo[4851]: segfault at 0 ip 00007fac0ae5c67f sp 00007fffa5a9a928 error 4 in libc-2.17.so[7fa
Nov 13 16:43:37 nas sudo[4852]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/journalctl -xe
lines 1313-1347/1347 (END)
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit session-8.scope has finished starting up.

– The start-up result is done.
Nov 13 16:41:07 nas systemd-logind[3095]: New session 8 of user root.
– Subject: A new session 8 has been created for user root
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat

– A new session with the ID 8 has been created for the user root.

– The leading process of the session is 4370.
Nov 13 16:41:07 nas systemd[1]: Starting Session 8 of user root.
– Subject: Unit session-8.scope has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit session-8.scope has begun starting up.
Nov 13 16:41:07 nas sshd[4370]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 13 16:41:09 nas kernel: wbinfo[4516]: segfault at 0 ip 00007f4371b3a67f sp 00007ffd08f6c7b8 error 4 in libc-2.17.so[7f4
Nov 13 16:41:25 nas kernel: wbinfo[4581]: segfault at 0 ip 00007f7a8dd7c67f sp 00007ffc263d5548 error 4 in libc-2.17.so[7f7
Nov 13 16:41:41 nas kernel: wbinfo[4602]: segfault at 0 ip 00007f748532c67f sp 00007ffd166b4a58 error 4 in libc-2.17.so[7f7
Nov 13 16:41:47 nas sudo[4603]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status smb.service
Nov 13 16:41:56 nas kernel: wbinfo[4626]: segfault at 0 ip 00007fcd3f9b967f sp 00007ffd51567228 error 4 in libc-2.17.so[7fc
Nov 13 16:42:12 nas kernel: wbinfo[4648]: segfault at 0 ip 00007f8ab5f0067f sp 00007fff6a37eda8 error 4 in libc-2.17.so[7f8
Nov 13 16:42:22 nas sudo[4661]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl status smb.service -l
Nov 13 16:42:28 nas kernel: wbinfo[4716]: segfault at 0 ip 00007f39d97d967f sp 00007ffc8d821c38 error 4 in libc-2.17.so[7f3
Nov 13 16:42:43 nas kernel: wbinfo[4741]: segfault at 0 ip 00007f7737fa467f sp 00007ffdb630f898 error 4 in libc-2.17.so[7f7
Nov 13 16:42:59 nas kernel: wbinfo[4763]: segfault at 0 ip 00007fbaec48d67f sp 00007fff0e5b7378 error 4 in libc-2.17.so[7fb
Nov 13 16:43:15 nas kernel: wbinfo[4784]: segfault at 0 ip 00007f2ca4ba567f sp 00007ffe2a9b0098 error 4 in libc-2.17.so[7f2
Nov 13 16:43:31 nas kernel: wbinfo[4851]: segfault at 0 ip 00007fac0ae5c67f sp 00007fffa5a9a928 error 4 in libc-2.17.so[7fa
Nov 13 16:43:37 nas sudo[4852]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/journalctl -xe

Hello @veepee,

Can you look at: Can't enable samba service after update - #7 by phillxnet

And see if it applies to you.

2 Likes

Hi! That got it fixed. I just removed domain stuff from smb.conf. Thanks!