[SOLVED] SMB and NMB services fail to start

Issues related to applications and software problems
Post Reply
divague
Posts: 3
Joined: 2018/06/12 15:13:59

[SOLVED] SMB and NMB services fail to start

Post by divague » 2018/06/12 15:21:36

Hello, I'm unable to start smb and nmd service, I get this error message whenever I try to start them manually:

Code: Select all

Job for nmb.service failed because the control process exited with error code. See "systemctl status nmb.service" and "journalctl -xe" for details.
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
This is the output for systemctl status

Code: Select all

systemctl status smb.service
● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-06-12 11:17:43 -04; 49s ago
  Process: 2410 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 2410 (code=exited, status=1/FAILURE)

Jun 12 11:17:43 srvcentos systemd[1]: Starting Samba SMB Daemon...
Jun 12 11:17:43 srvcentos systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Jun 12 11:17:43 srvcentos systemd[1]: Failed to start Samba SMB Daemon.
Jun 12 11:17:43 srvcentos systemd[1]: Unit smb.service entered failed state.
Jun 12 11:17:43 srvcentos systemd[1]: smb.service failed.

systemctl status nmb.service
● nmb.service - Samba NMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-06-12 11:17:43 -04; 1min 7s ago
  Process: 2411 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 2411 (code=exited, status=1/FAILURE)

Jun 12 11:17:43 srvcentos systemd[1]: Starting Samba NMB Daemon...
Jun 12 11:17:43 srvcentos systemd[1]: nmb.service: main process exited, code=exited, status=1/FAILURE
Jun 12 11:17:43 srvcentos systemd[1]: Failed to start Samba NMB Daemon.
Jun 12 11:17:43 srvcentos systemd[1]: Unit nmb.service entered failed state.
Jun 12 11:17:43 srvcentos systemd[1]: nmb.service failed.
and this is what I get when I run journalctl -xe

Code: Select all

Jun 12 11:19:42 srvcentos sudo[2422]: administrator : TTY=pts/0 ; PWD=/home/administrator ; USER=root ; COMMAND=/bin/systemctl start nmb smb
Jun 12 11:19:42 srvcentos polkitd[508]: Registered Authentication Agent for unix-process:2423:682450 (system bus name :1.52 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/Authenticati
Jun 12 11:19:42 srvcentos 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.
Jun 12 11:19:42 srvcentos systemd[1]: nmb.service: main process exited, code=exited, status=1/FAILURE
Jun 12 11:19:42 srvcentos 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.
Jun 12 11:19:42 srvcentos systemd[1]: Unit nmb.service entered failed state.
Jun 12 11:19:42 srvcentos systemd[1]: nmb.service failed.
Jun 12 11:19:42 srvcentos systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit smb.service has begun starting up.
Jun 12 11:19:42 srvcentos systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Jun 12 11:19:42 srvcentos systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit smb.service has failed.
-- 
-- The result is failed.
Jun 12 11:19:42 srvcentos systemd[1]: Unit smb.service entered failed state.
Jun 12 11:19:42 srvcentos systemd[1]: smb.service failed.
Jun 12 11:19:42 srvcentos polkitd[508]: Unregistered Authentication Agent for unix-process:2423:682450 (system bus name :1.52, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected fr
Jun 12 11:19:43 srvcentos snmpd[861]: Connection from UDP: [10.16.120.42]:57724->[10.16.120.46]:161
Jun 12 11:19:43 srvcentos snmpd[861]: Connection from UDP: [10.16.120.42]:57724->[10.16.120.46]:161
Hope someone can help me.
Last edited by divague on 2018/06/15 15:41:13, edited 2 times in total.

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: SMB and NMD services fail to start

Post by stevemowbray » 2018/06/12 15:45:09

See the logs in /var/log/samba for what has gone wrong.

divague
Posts: 3
Joined: 2018/06/12 15:13:59

Re: SMB and NMD services fail to start

Post by divague » 2018/06/12 16:55:15

I have two log files in that folder, log.smbd and log.nmbd, but both are empty

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: SMB and NMB services fail to start

Post by tunk » 2018/06/12 17:16:23

I don't have much experience with samba, but are you sure your config files are ok:
$ man testparm
NAME testparm - check an smb.conf configuration file for internal correctness
....
Also, what's the output of: rpm -qa|grep samba

divague
Posts: 3
Joined: 2018/06/12 15:13:59

Re: SMB and NMB services fail to start

Post by divague » 2018/06/12 17:25:33

Running testparm solved the problem! My configuration file had an invalid value in the name reolve order line, it's weird since it was working well just until yesterday, but removing that value fixed the problem.

Thank you very much!

Post Reply