I've run into a problem with samba and tdb reporting "too many
connections"
If I do a typical configure:
./configure --prefix=/usr/local/samba \
--localstatedir=/var/samba \
--with-lockdir=/var/samba/locks \
--with-configdir=/usr/local/samba/etc
I see errors like the following in /var/samba/log.smbd:
[2001/11/10 22:58:53, 0] tdb/tdbutil.c:tdb_log(342)
tdb(/var/samba/locks/connections.tdb): expand_file write of 1024 failed
(Undefined error: 0)
...
[2001/11/10 22:58:53, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error IO Error.
...
[2001/11/10 22:59:02, 0] tdb/tdbutil.c:tdb_log(342)
tdb(/var/samba/locks/connections.tdb): tdb_read failed at 168 len=4
(Undefined error: 0)
[2001/11/10 22:59:02, 0] smbd/connection.c:claim_connection(188)
claim_connection: tdb_store failed with error IO Error.
[2001/11/10 22:59:02, 1] smbd/service.c:make_connection(503)
too many connections - rejected
This results in all attempted connections being rejected. I decided to take
a look at tdb and did the following:
#cd /usr/local/src/samba/source/tdb
#make clean
#make
(fails... since tdbtest needs lgdbm...)
I install gdbm-1.8.0 and add the following line to tdb's Makefile
CFLAGS += -L/usr/local/lib -I/usr/local/include
(so I try again)
#cd /usr/local/src/samba/source/tdb
#make clean
#make
(succeeds, and tdbtest runs fine)
#cd /usr/local/src/samba/source
#make
(tdbutil.o is built)
(forces a relink of the binaries)
#make installbin
Now Samba runs fine.
So I do the following::
#cd /usr/local/src/samba/source/tdb
#make clean
#cd /usr/local/src/samba
#make
#make installbin
Samba once again fails with "too many connections"
The only difference is that I didn't build tdb by itself first.
I'm running samba-2.2.3-pre which I checked out on Novemeber 10, 2000 18:39.
since the -d 10 output is quite verbose, I stuck everything at:
http://anubis.dweebsoft.com/samba/
Is anybody else having this problem?