LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-18-2016, 07:29 PM   #1
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Rep: Reputation: 0
Samba failed to start after upgrade under Raspbian jessie


I did an "apt-get update" & "apt-get upgrade" in preparation to install another package. Toward the end of apt-get upgrade, I got the following message:

Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libsmbclient:armhf (2:4.2.10+dfsg-0+deb8u2) ...
Setting up samba-vfs-modules (2:4.2.10+dfsg-0+deb8u2) ...
Setting up libgdiplus (3.12-0xamarin1) ...
Setting up python-gpiozero (1.2.0) ...
Setting up python3-gpiozero (1.2.0) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

I did a force remove and reinstall but smbd still failed to run.
 
Old 05-20-2016, 04:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
See 'systemctl status smbd.service' and 'journalctl -xn' for details.
 
Old 05-20-2016, 10:53 AM   #3
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
prinout of 'systemctl status smbd.service' and 'journalctl -xn':


/etc/init.d/samba start
[....] Starting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details.
[FAIL failed!
root@pi3:~# /etc/init.d/samba start
exitjournalctl -xnsystemctl status smbd.service
smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: failed (Result: exit-code) since Fri 2016-05-20 08:42:09 PDT; 8min ago
Process: 1045 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

May 20 08:42:07 pi3 systemd[1]: Starting LSB: start Samba SMB/CIFS daemon.....
May 20 08:42:09 pi3 smbd[1045]: Starting SMB/CIFS daemon: smbd failed!
May 20 08:42:09 pi3 systemd[1]: smbd.service: control process exited, cod...=1
May 20 08:42:09 pi3 systemd[1]: Failed to start LSB: start Samba SMB/CIFS...).
May 20 08:42:09 pi3 systemd[1]: Unit smbd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@pi3:~# systemctl status smbd.service
/etc/init.d/samba start
exitjournalctl -xn

-- Logs begin at Thu 2016-05-19 11:12:56 PDT, end at Fri 2016-05-20 08:50:30 PDT
May 20 08:50:24 pi3 systemd[1864]: Reached target Default.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit UNIT has finished starting up.
--
-- The start-up result is done.
May 20 08:50:24 pi3 systemd[1864]: Startup finished in 19ms.
-- Subject: System start-up is now complete
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- All system services necessary queued for starting at boot have been
-- successfully started. Note that this does not mean that the machine is
-- now idle as services might still be busy with completing start-up.
--
-- Kernel start-up required KERNEL_USEC microseconds.
--
-- Initial RAM disk start-up required INITRD_USEC microseconds.
--
-- Userspace start-up required 19444 microseconds.
lines 1-23
May 20 08:50:24 pi3 systemd[1]: Started User Manager for UID 0.
-- Subject: Unit user@0.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit user@0.service has finished starting up.
--
-- The start-up result is done.
May 20 08:50:24 pi3 console-kit-daemon[839]: (process:1872): GLib-CRITICAL **:
May 20 08:50:24 pi3 console-kit-daemon[839]: missing action
May 20 08:50:29 pi3 systemd[1]: Starting LSB: start Samba NetBIOS nameserver (
-- Subject: Unit nmbd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit nmbd.service has begun starting up.
May 20 08:50:30 pi3 nmbd[1895]: Starting NetBIOS name server: nmbd failed!
May 20 08:50:30 pi3 systemd[1]: nmbd.service: control process exited, code=exi
May 20 08:50:30 pi3 systemd[1]: Failed to start LSB: start Samba NetBIOS names
-- Subject: Unit nmbd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
lines 24-46
-- Unit nmbd.service has failed.
--
-- The result is failed.
May 20 08:50:30 pi3 systemd[1]: Unit nmbd.service entered failed state.
lines 28-50/50 (END)

lines 28-50/50 (END)
 
Old 05-20-2016, 12:18 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
in such cases you may try to run smbd/nmbd by hand. That means you open a terminal and execute:
Code:
smbd -F -d <integer> -S -s <config file>
nmbd -F -d <integer> -S -s <config file>
and check the output. start at debug level 2 or 3 and increase it if you have got no usable output.

It looks like smb was upgraded and probably your config file is not acceptable any more. But there can be other reasons too.
 
Old 05-20-2016, 02:15 PM   #5
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
I managed to start smbd by removing all the inline comments.

Last edited by toolbox1234; 05-20-2016 at 08:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
LXer: Linux Top 3: Raspbian Jessie, Qubes OS 3 and Sabayon 15.10 LXer Syndicated Linux News 0 10-07-2015 02:41 PM
LXer: Raspbian Jessie Lives Up to the Hype LXer Syndicated Linux News 0 10-07-2015 10:12 AM
Jessie upgrade to samba ritaopal Debian 2 05-05-2015 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration