Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53676 - Samba-3.0.4-r1 new rc script: winbind fails to start and results in unmanaged samba daemons
Summary: Samba-3.0.4-r1 new rc script: winbind fails to start and results in unmanaged...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Christian Andreetta (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-11 15:15 UTC by Harm Geerts
Modified: 2004-06-12 07:46 UTC (History)
0 users

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


Attachments
samba-init patch: start errors cause all daemons to stop (samba-init.patch,413 bytes, patch)
2004-06-12 07:09 UTC, Christian Andreetta (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harm Geerts 2004-06-11 15:15:29 UTC
I never used winbind before but the new startup script replaces /etc/init.d/winbind and starts it automaticly. This results in samba (smbd and nmbd) being started and winbind failing, but the rc script doesn't take that into account.

I'm not so worried about winbind, but I am about the rc manager not being aware that it has started the components of samba that I use.

I know about the daemon_list variable and removed winbind from it.
But I think the rc script should be updated to stop all other components if one of them fails to start.

# /etc/init.d/samba start
 * samba -> start: smbd ...                                               [ ok ]
 * samba -> start: nmbd ...                                               [ ok ]
 * samba -> start: winbind ...                                            [ !! ]
                                                                          [ !! ]

# /etc/init.d/samba status
 * status:  stopped

# ps x
 7136 ?        Ss     0:00 /usr/sbin/smbd -D
 7139 ?        Ss     0:00 /usr/sbin/nmbd -D

# tail /var/log/samba3/log.winbindd
[2004/06/11 23:51:53, 0] nsswitch/winbindd_util.c:winbindd_param_init(560)
  winbindd: idmap uid range missing or invalid
[2004/06/11 23:51:53, 0] nsswitch/winbindd_util.c:winbindd_param_init(561)
  winbindd: cannot continue, exiting.

# tail /var/log/samba/log.winbindd
[2004/06/11 23:51:53, 1] nsswitch/winbindd.c:main(843)
  winbindd version 3.0.4 started.
  Copyright The Samba Team 2000-2004

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge info
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-march=pentium2 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-march=pentium2 -Os -pipe"
DCCC_PATH="/usr/lib/distcc/bin"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
FEATURES="autoaddcvs ccache distcc fixpackages sandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="basil"
INFODIR="/usr/share/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVA_HOME="/opt/sun-jre-1.4.2.04"
JRE_HOME="/opt/sun-jre-1.4.2.04"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
MAIL="/var/mail/root"
MAKEOPTS="-j4"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man::/opt/sun-jre-1.4.2.04/man:/opt/sun-jre-1.4.2.04/man"
NOCOLOR="false"
OLDPWD="/root"
PAGER="/usr/bin/less"
PATH="/usr/lib/ccache/bin:/usr/lib/distcc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/sun-jre-1.4.2.04/bin:/opt/sun-jre-1.4.2.04/jre/bin:/opt/sun-jre-1.4.2.04/jre/javaws"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="7569"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/var/log/samba"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
TERM="xterm"
USE="apache2 apm berkdb crypt cups foomaticdb gd gdbm gif imap imlib innodb jpeg
libwww mad maildir mikmod mysql ncurses nls nptl pam pdflib perl pic png ppds
python readline samba sasl sdl slang spell ssl tcpd tiff truetype vhosts x86 xml
xml2 zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
_="/usr/bin/emerge"
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-06-12 07:09:40 UTC
Created attachment 33135 [details, diff]
samba-init patch: start errors cause all daemons to stop

well, stop all daemons if some of them did not start is a good idea. this will
appear soon in cvs
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2004-06-12 07:46:58 UTC
in cvs.