SparkyLinux Forums

Software & hardware support => Sparky applications => Topic started by: shelll_65 on November 08, 2016, 05:55:41 PM

Title: Cannot start Samba
Post by: shelll_65 on November 08, 2016, 05:55:41 PM
Cannot start samba on fresh Sparky install. Errors as follows.

systemctl start samba
Job for samba.service failed because the control process exited with error code.
See "systemctl status samba.service" and "journalctl -xe" for details.

then:
install samba
Reading package lists... Done
Building dependency tree       
Reading state information... Done
samba is already the newest version (2:4.4.7+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba (2:4.4.7+dfsg-1) ...
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
‚óŹ smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2016-11-08 12:54:42 AST; 8ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 18766 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 18766 (code=exited, status=1/FAILURE)

Nov 08 12:54:41 it-26 systemd[1]: Starting Samba SMB Daemon...
Nov 08 12:54:42 it-26 systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Nov 08 12:54:42 it-26 systemd[1]: Failed to start Samba SMB Daemon.
Nov 08 12:54:42 it-26 systemd[1]: smbd.service: Unit entered failed state.
Nov 08 12:54:42 it-26 systemd[1]: smbd.service: Failed with result 'exit-code'.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-5) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

then:
systemctl start samba
Failed to start samba.service: Unit samba.service is masked.


Can someone point me in the right direction?
Title: Re: Cannot start Samba
Post by: ansaro on November 10, 2016, 11:25:53 PM
What returns those commands?
"systemctl status samba.service"
and
"journalctl -xe"

And, if i should bet, is your user on the samba group?