Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Samba failed to load with sysvint or systemd (1 reply)

$
0
0
After I installed the latest kernel but before installation of systemd (so it's still sysvint), I tried installing samba but it didn't work. I upgraded from a very old kernel 3.xx but samba used to work fine. I tried re-installation several times with apt-get update/upgrade/dist-upgrade/clean/autoremove/purge/remove, dpkg --clear-avail, dpkg --configure -a. None of them worked for me.

Get:1 http://security.debian.org stretch/updates/main armel samba armel 2:4.5.12+dfsg-2+deb9u2 [870 kB]
Fetched 870 kB in 0s (2094 kB/s)
Selecting previously unselected package samba.
(Reading database ... 24555 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.5.12+dfsg-2+deb9u2_armel.deb ...
Unpacking samba (2:4.5.12+dfsg-2+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up samba (2:4.5.12+dfsg-2+deb9u2) ...
[FAIL] Starting SMB/CIFS daemon: smbd failed!
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)


After that, I installed systemd and enabled it with boot, and then I got this

Setting up samba (2:4.5.12+dfsg-2+deb9u2) ...
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 Wed 2018-03-14 10:37:31 PDT; 152ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 689 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 689 (code=exited, status=1/FAILURE)

The log.nmbd just showed
[2018/03/14 00:22:36.958472,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2018/03/14 00:26:10.398689,  0] ../source3/nmbd/nmbd.c:58(terminate)
  Got SIGTERM: going down...

Note that I ran apt-get update/upgrade before installing systemd. How did you guys load samba daemon successfully?

Viewing all articles
Browse latest Browse all 3247

Trending Articles