Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106893 - Samba 3.0.20-r1 smbd won't start: Failed to open group mapping database
Summary: Samba 3.0.20-r1 smbd won't start: Failed to open group mapping database
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 08:23 UTC by Richard Brown (RETIRED)
Modified: 2005-09-26 02:18 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 Richard Brown (RETIRED) gentoo-dev 2005-09-22 08:23:41 UTC
Hi, /etc/init.d/samba start reports ok for both demons, but smbd isn't running.
This is in log.smdb

[2005/09/22 16:08:47, 0] groupdb/mapping.c:init_group_mapping(134)
  Failed to open group mapping database
[2005/09/22 16:08:47, 0] groupdb/mapping.c:get_group_map_from_gid(275)
  failed to initialize group mapping
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/account_pol.c:init_account_policy(52)
  Failed to open account policy database
[2005/09/22 16:08:47, 0] lib/messages.c:message_init(106)
  ERROR: Failed to initialise messages database

It's a brand new install, this happened with 3.0.14a-r2 as well as 3.0.20-r1,
can't work out why.

[ebuild   R   ] net-fs/samba-3.0.20-r1  -acl -async -automount +cups -doc
-kerberos +ldap -libclamav +mysql -oav +pam -postgres +python -quotas +readline
(-selinux) +syslog -winbind -xml +xml2 0 kB 

emerge info

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.1
                                                  2-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=athlon-tbird"
CHOST="i686-pc-linux-gnu"
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"
CXXFLAGS="-O2 -fomit-frame-pointer -march=athlon-tbird"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage_mail"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi bitmap-fonts crypt cups eds emboss encode foomaticd
                                                  b fortran gdbm gif gnome gpm
gstreamer gtk2 imlib ipv6 jpeg kde ldap libg++ libw                            
                      ww mad mikmod motif mp3 mpeg mysql ncurses nls ogg
oggvorbis opengl oss pam pdfl                                                  
ib perl png python qt quicktime readline samba sdl spell ssl tcpd tiff truetype
                                                   truetype-fonts type1-fonts
vorbis xml2 xmms xv zlib userland_GNU kernel_linux el                          
                        ibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2005-09-23 10:44:12 UTC
db repository error. Could you please attach the output file of 'testparm -v -s
2>&1 > ${file}'?
Comment 2 Richard Brown (RETIRED) gentoo-dev 2005-09-26 02:18:02 UTC
Sorry, I was doing a new install, adding to the default installed smb.conf,
which had 

lock directory = /usr/local/samba/var/lock

in it, a non-existant directory.

I added the directory and smbd started up fine, then commented it out and
deleted  the /usr/local directory and smbd also worked fine.

Thanks