Db lock problem ?

Yann Rouillard yann at pleiades.fr.eu.org
Wed Nov 2 12:07:53 EST 2005


Hi,

I have a weird problem on a solaris server.
Sometimes cyrus is stuck trying to open the berkeley database.

Cyrus imapd 2.2.12
Cyrus sasl 2.1.21
solaris 9

I do a fresh install, I start and stop cyrus to see if everything is
fine, it seems ok.

Then I try to launch mbpath and mbpath is stuck in some mutex lock:

sysconfig(_CONFIG_NPROC_ONLN)                   = 2
stat64("/opt/csw/var/cyrus/config/db/DB_CONFIG", 0xFFBFDE28) Err#2
ENOENT
open64("/opt/csw/var/cyrus/config/db/DB_CONFIG", O_RDONLY) Err#2 ENOENT
stat64("/var/tmp", 0xFFBFDE40)                  = 0
stat64("/opt/csw/var/cyrus/config/db/__db.001", 0xFFBFDE88) = 0
open64("/opt/csw/var/cyrus/config/db/__db.001", O_RDWR) = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
ioctl(3, 0x2000664C, 0x00000001)                = 0
fstat64(3, 0xFFBFDF08)                          = 0
close(3)                                        = 0
open64("/opt/csw/var/cyrus/config/db/__db.001", O_RDWR) = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
ioctl(3, 0x2000664C, 0x00000001)                = 0
mmap64(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) =
0xFEED0000
close(3)                                        = 0
stat64("/opt/csw/var/cyrus/config/db/__db.002", 0xFFBFDE80) = 0
open64("/opt/csw/var/cyrus/config/db/__db.002", O_RDWR) = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
ioctl(3, 0x2000664C, 0x00000001)                = 0
mmap64(0x00000000, 663552, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) =
0xFED00000
close(3)                                        = 0
stat64("/opt/csw/var/cyrus/config/db/__db.003", 0xFFBFDEA0) = 0
open64("/opt/csw/var/cyrus/config/db/__db.003", O_RDWR) = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
ioctl(3, 0x2000664C, 0x00000001)                = 0
mmap64(0x00000000, 98304, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) =
0xFEDC0000
close(3)                                        = 0
lwp_mutex_lock(0xFEED1ED0)      (sleeping...)

Cyrus is already installed on 3 other solaris servers and works fine.
Any idea what's the cause of this problem ?

Cheers, 

Yann




More information about the Info-cyrus mailing list