Please help! Probs with cyrus-imapd 2.1.9 and db3 - DBERROR db3: Unable to allocate memory
Marc Sebastian Pelzer
marc at have-it.net
Mon Nov 18 07:52:08 EST 2002
Hello,
i successfully compiled cyrus-imapd 2.1.9 with SASL 2.1.9 and Berkeley
DB 3.1.17 on a Sun Sparc 10 with SuSE 7.3 and 128MB RAM and get the
following errors in /var/log/messages after starting the
'/usr/cyrus/bin/master' process and try to test it via 'telnet
prime 143'. Telnet opens the connection and then 'hangs' - no
prompt from the imap-Server.
I read the mailinglist-archives, searched the SuSE Help-DB and read the
FAQ's but didnt find anything that solves the problem. I only found
questions from users with the same problem - but no answers.
Please help! :)
cyrus-imapd is configured with:
./configure --prefix=/opt/local/cyrus_imapd --with-cyrus-user=mail
--with-cyrus-group=nogroup --with-dbdir=/opt/local/db3 --disable-sieve
--with-auth=unix
# --- /var/log/messages ---------------------------------------------
Nov 18 13:24:06 prime master: setrlimit: Unable to set file descriptors
limit to 2147483647: Operation not permitted Nov 18 13:24:06 prime
master[25357]: process started Nov 18 13:24:06 prime master[25358]:
about to exec /usr/cyrus/bin/ctl_cyrusdb Nov 18 13:24:06 prime
ctl_cyrusdb[25358]: recovering cyrus databases Nov 18 13:24:09 prime
ctl_cyrusdb[25358]: DBERROR db3: Unable to allocate memory for the lock
table
Nov 18 13:24:42 prime ctl_cyrusdb[25358]: DBERROR: dbenv->open
'/var/imap/db' failed: Cannot allocate memory Nov 18 13:24:42 prime
ctl_cyrusdb[25358]: DBERROR: init /var/imap/db: cyrusdb error Nov 18
13:24:42 prime ctl_cyrusdb[25358]: DBERROR db3: environment not yet
opened Nov 18 13:24:42 prime ctl_cyrusdb[25358]: DBERROR: opening
/var/imap/mailboxes.db: Invalid argument Nov 18 13:24:42 prime
ctl_cyrusdb[25358]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb
error Nov 18 13:24:42 prime master[25357]: process 25358 exited, status
75 Nov 18 13:24:42 prime master[25357]: ready for work
Nov 18 13:24:42 prime master[25360]: about to exec
/usr/cyrus/bin/ctl_cyrusdb Nov 18 13:24:42 prime master[25361]: about to
exec /usr/cyrus/bin/ctl_deliver Nov 18 13:24:42 prime master[25362]:
about to exec /usr/cyrus/bin/tls_prune Nov 18 13:24:42 prime
ctl_cyrusdb[25360]: checkpointing cyrus databases Nov 18 13:24:45 prime
ctl_cyrusdb[25360]: DBERROR db3: Unable to allocate memory for the lock
table Nov 18 13:24:47 prime master[25363]: about to exec
/usr/cyrus/bin/imapd Nov 18 13:24:47 prime imap[25363]: executed
Nov 18 13:24:48 prime tls_prune[25362]: DBERROR db3: Unable to allocate
memory for the lock table Nov 18 13:24:49 prime ctl_cyrusdb[25360]:
DBERROR: dbenv->open '/var/imap/db' failed: Cannot allocate memory Nov
18 13:24:49 prime ctl_cyrusdb[25360]: DBERROR: init /var/imap/db:
cyrusdb error Nov 18 13:24:49 prime ctl_cyrusdb[25360]: done
checkpointing cyrus databases Nov 18 13:24:49 prime master[25357]:
process 25360 exited, status 1 Nov 18 13:24:53 prime ctl_deliver[25361]:
DBERROR db3: Unable to allocate memory for the lock table Nov 18
13:24:55 prime tls_prune[25362]: DBERROR: dbenv->open '/var/imap/db'
failed: Cannot allocate memory Nov 18 13:24:55 prime tls_prune[25362]:
DBERROR db3: environment not yet opened Nov 18 13:24:55 prime
tls_prune[25362]: DBERROR: opening /var/imap/tls_sessions.db: Invalid
argument Nov 18 13:24:56 prime tls_prune[25362]: DBERROR: opening
/var/imap/tls_sessions.db: cyrusdb error Nov 18 13:24:56 prime
master[25357]: process 25362 exited, status 1 Nov 18 13:24:57 prime
ctl_deliver[25361]: DBERROR: dbenv->open '/var/imap/db' failed: Cannot
allocate memory Nov 18 13:24:57 prime ctl_deliver[25361]: DBERROR: init
/var/imap/db: cyrusdb error Nov 18 13:24:57 prime master[25357]: process
25361 exited, status 1 Nov 18 13:25:01 prime imapd[25363]: DBERROR db3:
Unable to allocate memory for the lock table Nov 18 13:25:02 prime
imapd[25363]: DBERROR: dbenv->open '/var/imap/db' failed: Cannot
allocate memory Nov 18 13:25:02 prime master[25357]: process 25363
exited, status 75
# --- second try:
18 13:37:47 prime master: setrlimit: Unable to set file descriptors
limit to 2147483647: Operation not permitted Nov 18 13:37:47 prime
master[25386]: process started Nov 18 13:37:48 prime master[25387]:
about to exec /usr/cyrus/bin/ctl_cyrusdb Nov 18 13:37:48 prime
ctl_cyrusdb[25387]: recovering cyrus databases Nov 18 13:37:48 prime
master[25386]: process 25387 exited, signaled to death by 11 Nov 18
13:37:48 prime master[25386]: ready for work Nov 18 13:37:48 prime
master[25388]: about to exec /usr/cyrus/bin/ctl_cyrusdb Nov 18 13:37:48
prime master[25389]: about to exec /usr/cyrus/bin/ctl_deliver Nov 18
13:37:48 prime master[25390]: about to exec /usr/cyrus/bin/tls_prune Nov
18 13:37:48 prime ctl_cyrusdb[25388]: checkpointing cyrus databases Nov
18 13:37:48 prime ctl_cyrusdb[25388]: DBERROR db3: region error
detected; run recovery. Nov 18 13:37:48 prime ctl_cyrusdb[25388]:
DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error,
run database recovery Nov 18 13:37:48 prime ctl_cyrusdb[25388]: DBERROR:
init /var/imap/db: cyrusdb error Nov 18 13:37:48 prime
ctl_cyrusdb[25388]: done checkpointing cyrus databases Nov 18 13:37:48
prime master[25386]: process 25388 exited, status 1 Nov 18 13:37:48
prime ctl_deliver[25389]: DBERROR db3: region error detected; run
recovery. Nov 18 13:37:48 prime ctl_deliver[25389]: DBERROR: dbenv->open
'/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database
recovery Nov 18 13:37:48 prime ctl_deliver[25389]: DBERROR: init
/var/imap/db: cyrusdb error Nov 18 13:37:48 prime master[25386]: process
25389 exited, status 1 Nov 18 13:37:48 prime tls_prune[25390]: DBERROR
db3: region error detected; run recovery. Nov 18 13:37:48 prime
tls_prune[25390]: DBERROR: dbenv->open '/var/imap/db' failed:
DB_RUNRECOVERY: Fatal error, run database recovery Nov 18 13:37:48 prime
tls_prune[25390]: DBERROR db3: environment not yet opened Nov 18
13:37:48 prime tls_prune[25390]: DBERROR: opening
/var/imap/tls_sessions.db: Invalid argument Nov 18 13:37:48 prime
tls_prune[25390]: DBERROR: opening /var/imap/tls_sessions.db: cyrusdb
error Nov 18 13:37:48 prime master[25386]: process 25390 exited, status
1
Nov 18 13:38:04 prime master[25391]: about to exec /usr/cyrus/bin/imapd
Nov 18 13:38:04 prime imap[25391]: executed
Nov 18 13:38:04 prime imapd[25391]: DBERROR db3: region error detected;
run recovery. Nov 18 13:38:04 prime imapd[25391]: DBERROR: dbenv->open
'/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database
recovery Nov 18 13:38:04 prime master[25386]: process 25391 exited,
status 75
Thanks in advance, Marc.
More information about the Info-cyrus
mailing list