Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86775 - samba demons (smbd) start with error; samba-3.0.13 or samba-3.0.12
Summary: samba demons (smbd) start with error; samba-3.0.13 or samba-3.0.12
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-26 08:08 UTC by Nicolas Schlumberger
Modified: 2005-03-28 23:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Schlumberger 2005-03-26 08:08:30 UTC
Samba server doesn't run anymore! 

Reproducible: Always
Steps to Reproduce:
1. upgrade samba from 3.0.10 to any newer version
2. restart samba demons
3.

Actual Results:  
Kor ~ # /etc/init.d/samba restart
 * samba -> stop: smbd ...                                      [ ok ]
 * samba -> stop: nmbd ...                                      [ ok ]
 * samba -> stop: winbind ...                                   [ ok ]
 * samba -> start: smbd ...                                     [ !! ]
 * samba -> start: nmbd ...                                     [ ok ]
 * samba -> start: winbind ...                                  [ ok ]
 * Error: stopping services (see system logs)
 * samba -> stop: smbd ...                                      [ !! ]
 * samba -> stop: nmbd ...                                      [ ok ]
 * samba -> stop: winbind ...                                   [ !! ]
Kor ~ #      

Expected Results:  
samba demons start normally, working samba server

I haven't check 3.0.11 recently, but the problem appered there first, 3.0.12 and
3.0.13 do not work

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar  5 2005, 14:20:47)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -pipe -O2 -fomit-frame-pointer -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -pipe -O2 -fomit-frame-pointer -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv
usersandbox"
GENTOO_MIRRORS="ftp://130.59.10.35/mirror/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acl acpi alsa arts avi berkdb bitmap-fonts cdr cross crypt cups
curl db divx4linux dvd emboss encode fam ffmpeg flac font-server foomaticdb
fortran gdbm ggi gif gtk gtk2 hal imagemagick imlib inifile ipv6 java jpeg junit
kde kdeenablefinal ldap libg++ libwww mad matroska mikmod mime mmx motif mp3
mpeg ncurses nls nptl odbc offensive oggvorbis opengl pam pcmcia pdflib perl pic
pie png pnp python qt quicktime readline samba sdl snmp speex spell sse sse2 ssl
svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb
xml xml2 xmms xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

Kor ~ # tail /var/log/samba/log.smbd
[2005/03/26 16:48:19, 1] auth/auth_util.c:make_server_info_sam(840)
  User samba, guest in passdb, but getpwnam() fails!
[2005/03/26 16:51:30, 0] smbd/server.c:main(760)
  smbd version 3.0.10 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/03/26 17:00:09, 0] smbd/server.c:main(798)
  smbd version 3.0.13 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/03/26 17:00:09, 1] auth/auth_util.c:make_server_info_sam(840)
  User samba, guest in passdb, but getpwnam() fails!

I cannot/do not understand what the logfile means!

Best regard 
Nico
Comment 1 Nicolas Schlumberger 2005-03-27 11:29:09 UTC
I just unmerge samba, removed all config files. Then I did a fresh installation of samba. Without further configuration, the demons worked again. I copied the smb.conf back in and I got the same errors as before! I started a new smb.conf with the same options, and the demons work now.

Was There a change in the config handling I the recent time?
If it was up to me, mark the bug as invalid and move on!

Greets
Nico

PS. Sorry for having wasted your time!
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2005-03-28 05:58:18 UTC
Since this doesn't seem caused by daemons, but configuration, I think the bug invalid.
Just for reference: could you attach your smb.conf (except the sensitive parts: pwd and alike) to this bug?
Comment 3 Nicolas Schlumberger 2005-03-28 23:58:05 UTC
This is my old smb.conf, which worked on 3.0.10, but not on later versions

*************** old smb.conf **********************
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/03/15 13:08:40

# Global parameters
[global]
        workgroup = SCHLUMBERGER
        server string = Kor
        null passwords = Yes
        guest account = samba, guest
        log file = /var/log/samba/log.%m
        max log size = 50
        os level = 40
        wins server = 192.168.1.1, 192.168.180.113
        ldap ssl = no
        valid users = @samba, @users
        read list = guest
        printer admin = root
        create mask = 0766
        guest ok = Yes
        hosts allow = 192.168.1.0/24, 192.168.180.112/28, 127.0.0.1, 192.168.0.0/24

[public]
        comment = Public Files
        path = /mnt/samba

[music]
        comment = Music Files
        path = /mnt/music
        read only = No
        guest ok = No
**************** old smb.conf ****************************

And this would be my new one. I admit I created it in a haste, and hadn't time t o finetune it. 

################ new smb.conf ############################
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/03/27 19:31:32

# Global parameters
[global]
        server string = Kor (Samba %v)
        null passwords = Yes
        log file = /var/log/samba/log.%m
        max log size = 50
        wins server = 192.168.180.113, 192.168.1.1
        ldap ssl = no
        valid users = @samba, @users
        create mask = 0766
        guest ok = Yes
        hosts allow = 192.168.1.0/24, 192.168.180.112/28, 192.168.0.0/24

[public]
        comment = Public Files
        path = /mnt/samba

[music]
        comment = Music Files
        path = /mnt/music
        read only = No
        guest ok = No
##################### new smb.conf ###########################

Cheers
Nico