Bug 16889 - samba fails to start
Summary: samba fails to start
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-03 23:03 CEST by Helge Hielscher
Modified: 2015-10-07 21:03 CEST (History)
1 user (show)

See Also:
Source RPM: samba-4.3.0-3.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Helge Hielscher 2015-10-03 23:03:41 CEST
Description of problem: samba does not start

Version-Release number of selected component (if applicable):
samba-4.3.0-3.mga6

How reproducible: always


Steps to Reproduce:
# systemctl start smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.

# systemctl status smb.service
รข smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2015-10-03 22:50:21 CEST; 7s ago
  Process: 10867 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 10867 (code=exited, status=1/FAILURE)
[...]
Oct 03 22:50:20 localhost.localdomain systemd[1]: Starting Samba SMB Daemon...
Oct 03 22:50:21 localhost.localdomain systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Oct 03 22:50:21 localhost.localdomain systemd[1]: Failed to start Samba SMB Daemon.
Oct 03 22:50:21 localhost.localdomain systemd[1]: smb.service: Unit entered failed state.
Oct 03 22:50:21 localhost.localdomain systemd[1]: smb.service: Failed with result 'exit-code'.




journalctl -xe gives this:
[...]
Oct 03 22:57:47 localhost.localdomain polkitd[411]: Registered Authentication Agent for unix-process:25625:129379349 (system bus name :1.240 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freed
Oct 03 22:57:47 localhost.localdomain 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.
Oct 03 22:57:47 localhost.localdomain systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Oct 03 22:57:47 localhost.localdomain kernel: audit: type=1130 audit(1443905867.785:2566): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=smb comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?
Oct 03 22:57:47 localhost.localdomain polkitd[411]: Unregistered Authentication Agent for unix-process:25625:129379349 (system bus name :1.240, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
Oct 03 22:57:47 localhost.localdomain 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.
Oct 03 22:57:47 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=smb comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Oct 03 22:57:47 localhost.localdomain systemd[1]: smb.service: Unit entered failed state.
Oct 03 22:57:47 localhost.localdomain systemd[1]: smb.service: Failed with result 'exit-code'.


Reproducible: 

Steps to Reproduce:
Comment 1 Helge Hielscher 2015-10-03 23:53:42 CEST
The culprit was an old smb.conf
Using /etc/samba/smb.conf.rpmnew samba starts for me.

It would be nice if some message would give a hint to consult
/var/log/samba/log.smbd

Anyway feel free to close the bug.
Comment 2 Florian Hubold 2015-10-07 21:03:58 CEST
(In reply to Helge Hielscher from comment #1)
> The culprit was an old smb.conf
> 
> It would be nice if some message would give a hint to consult
> /var/log/samba/log.smbd

You would have to report that upstream, as we only package samba.
As a hint, most people that use samba always first run "testparm" to check the validity of their current smb.conf ;)

Closing.

Status: NEW => RESOLVED
CC: (none) => doktor5000
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.