SMB Daemon not starting anymore. Fix?

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

SMB Daemon not starting anymore. Fix?

Postby basti007 » Fri Apr 27, 2018 2:16 pm

I hope this is the right place to ask: For some reasons, my samba daemons are not running anymore on my ArchLinux (on a Pogoplug). When I try to start them it tells me:

$this->bbcode_second_pass_code('', '# systemctl enable smbd
Failed to enable unit: Unit file smbd.service does not exist.
# systemctl enable nmbd
Failed to enable unit: Unit file nmbd.service does not exist.')

When I try to start smb.service, for example, I also get:

$this->bbcode_second_pass_code('', 'Apr 27 13:05:43 alarm systemd[1]: Starting Samba SMB Daemon...
Apr 27 13:05:45 alarm systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 13:05:45 alarm systemd[1]: smb.service: Failed with result 'exit-code'.
Apr 27 13:05:45 alarm systemd[1]: Failed to start Samba SMB Daemon.')

I already removed samba and reinstalled with a complete sync to samba 4.8.0-2, no change. pacman does not give out any errors and installs samba fine.

testparm gives:

$this->bbcode_second_pass_code('', 'Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[root$]"
Processing section "[usb]"
Processing section "[usb2]"
Loaded services file OK.
Server role: ROLE_STANDALONE')

And status shows me:

$this->bbcode_second_pass_code('', '[root@alarm alarm]# systemctl status smb.service nmb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset:>
Active: failed (Result: exit-code) since Fri 2018-04-27 15:26:20 CEST; 7s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1422 ExecStart=/usr/bin/smbd --foreground --no-process-group $SMBDOP>
Main PID: 1422 (code=exited, status=1/FAILURE)

Apr 27 15:26:17 alarm systemd[1]: Starting Samba SMB Daemon...
Apr 27 15:26:20 alarm systemd[1]: smb.service: Main process exited, code=exited>
Apr 27 15:26:20 alarm systemd[1]: smb.service: Failed with result 'exit-code'.
Apr 27 15:26:20 alarm systemd[1]: Failed to start Samba SMB Daemon.

● nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset:>
Active: failed (Result: exit-code) since Fri 2018-04-27 15:26:17 CEST; 18s a>
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1418 ExecStart=/usr/bin/nmbd --foreground --no-process-group $NMBDOP>
Main PID: 1418 (code=exited, status=1/FAILURE)

● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-04-27 15:26:20 CEST; 7s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1422 ExecStart=/usr/bin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited>
Main PID: 1422 (code=exited, status=1/FAILURE)

Apr 27 15:26:17 alarm systemd[1]: Starting Samba SMB Daemon...
Apr 27 15:26:20 alarm systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 15:26:20 alarm systemd[1]: smb.service: Failed with result 'exit-code'.
Apr 27 15:26:20 alarm systemd[1]: Failed to start Samba SMB Daemon.

● nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-04-27 15:26:17 CEST; 18s ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1418 ExecStart=/usr/bin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=exited>
Main PID: 1418 (code=exited, status=1/FAILURE)
')

Any ideas?
basti007
 
Posts: 4
Joined: Sun Jul 23, 2017 11:38 am

Re: SMB Daemon not starting anymore. Fix?

Postby mwNas » Sun Apr 29, 2018 8:11 pm

Samba v4.8 is new and improved. The units were renamed. Try smb.service and nmb.service (start and enable).
Add to that I ran into a problem with polkit. After I downgraded and rebooted both work fine.
mwNas
 
Posts: 17
Joined: Sun Jul 19, 2015 8:28 pm

Re: SMB Daemon not starting anymore. Fix?

Postby basti007 » Tue May 01, 2018 8:01 pm

Don't really know what you mean? As you can see above, I of course use the new names already. That's where these errors are coming from. ;)
basti007
 
Posts: 4
Joined: Sun Jul 23, 2017 11:38 am

Re: SMB Daemon not starting anymore. Fix?

Postby WarheadsSE » Wed May 02, 2018 1:17 pm

My suggestion is to check the logs: /var/log/samba/smbd.log
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 4 guests