Can't get cyrus imapd 2.2.12 to work on a sparc

Matthijs Mohlmann matthijs at cacholong.nl
Sat Nov 12 15:20:33 EST 2005


With db4.2 without any optimalisation (CFLAGS= -O0 -fno-strict-aliasing
-pipe) I get the same errors.

For db3 and db3 without any optimalisation I get different errors:
Nov 12 21:02:50 hermes lmtpunix[77637]: DBERROR: invalid
berkeley_cachesize value, using internal default
Nov 12 21:02:51 hermes lmtpunix[77637]: sql_select option missing
Nov 12 21:02:51 hermes lmtpunix[77637]: auxpropfunc error no mechanism
available
Nov 12 21:02:51 hermes lmtpunix[77637]: DBERROR db3: Lock table is out
of available locks
Nov 12 21:02:51 hermes lmtpunix[77637]: DBERROR: opening
/var/imap/deliver.db: Cannot allocate memory
Nov 12 21:02:51 hermes lmtpunix[77637]: DBERROR: opening
/var/imap/deliver.db: cyrusdb error
Nov 12 21:02:51 hermes lmtpunix[77637]: FATAL: lmtpd: unable to init
duplicate delivery database
Nov 12 21:02:51 hermes master[77524]: service lmtpunix pid 77637 in
READY state: terminated abnormally
Nov 12 21:02:51 hermes lmtpunix[77638]: DBERROR: invalid
berkeley_cachesize value, using internal default
Nov 12 21:02:51 hermes lmtpunix[77638]: sql_select option missing
Nov 12 21:02:51 hermes lmtpunix[77638]: auxpropfunc error no mechanism
available
Nov 12 21:02:51 hermes lmtpunix[77638]: DBERROR db3: Lock table is out
of available locks
Nov 12 21:02:51 hermes lmtpunix[77638]: DBERROR: opening
/var/imap/deliver.db: Cannot allocate memory
Nov 12 21:02:51 hermes lmtpunix[77638]: DBERROR: opening
/var/imap/deliver.db: cyrusdb error
Nov 12 21:02:51 hermes lmtpunix[77638]: FATAL: lmtpd: unable to init
duplicate delivery database
Nov 12 21:02:51 hermes master[77524]: service lmtpunix pid 77638 in
READY state: terminated abnormally
Nov 12 21:02:51 hermes lmtpunix[77639]: DBERROR: invalid
berkeley_cachesize value, using internal default

Timo Schoeler wrote:
> Matthijs Mohlmann wrote:
> 
>> Hi,
>>
>> I'm running FreeBSD 6.0-RELEASE on a Ultra Sparc (500Mhz with 512Mb RAM).
>>
>> I have setup cyrus with postfix and saslauthd. All components are
>> completely working except cyrus.
>>
>> What I discovered is that I can create mailboxes in cyrus and can see
>> them with my imap client. But when I try to deliver a mail to the lmtp
>> socket / lmtp tcp socket or try to use cyrus/bin/deliver then it gives
>> me:
>>
>> Nov 12 18:10:13 hermes lmtpunix[95552]: DBERROR: invalid
>> berkeley_cachesize value, using internal default
>> Nov 12 18:10:13 hermes lmtpunix[95552]: sql_select option missing
>> Nov 12 18:10:13 hermes lmtpunix[95552]: auxpropfunc error no mechanism
>> availableNov 12 18:10:13 hermes lmtpunix[95552]: DBERROR : db4
>> Nov 12 18:10:13 hermes last message repeated 2 times
>> Nov 12 18:10:13 hermes lmtpunix[95552]: DBERROR: critical database
>> situation
>> Nov 12 18:10:13 hermes master[90620]: service lmtpunix pid 95552 in
>> READY state: terminated abnormally
>> Nov 12 18:10:13 hermes lmtpunix[95553]: DBERROR: invalid
>> berkeley_cachesize value, using internal default
>>
>> This repeats itself for over 1000 times. When I take a look into the
>> configdirectory then I see this:
>> root at hermes:~# ls -al /var/imap
>> total 24
>> drwxr-xr-x  10 cyrus  cyrus   512B Nov 12 18:07 ./
>> drwxr-xr-x  29 root   wheel   512B Nov 12 16:21 ../
>> -rw-------   1 cyrus  cyrus   144B Nov 12 17:07 annotations.db
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 17:07 db/
>> drwx------   2 cyrus  cyrus   512B Nov 12 18:07 db.backup1/
>> drwx------   2 cyrus  cyrus   512B Nov 12 17:37 db.backup2/
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 16:21 log/
>> -rw-------   1 cyrus  cyrus   264B Nov 12 17:07 mailboxes.db
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 16:21 msg/
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 16:29 proc/
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 16:21 ptclient/
>> drwxr-xr-x   2 cyrus  cyrus   512B Nov 12 17:07 socket/
>>
>> As you can see the mailboxes.db and annotations.db are created
>> successfully, but the I don't see any deliver.db.
>>
>> When I try the same setup on a i386 machine then it works perfectly.
>>
>> If you need more information please tel me. Is there a good way to debug
>> this kind of things in cyrus ?
>>
>> Regards,
>>
>> Matthijs Mohlmann
> 
> 
> hi,
> 
> db4 is known to have run time problems when compiled using gcc. try
> building it with no (!) optimization (IIRC FreeBSD builds with -O2 by
> default) or use cyrus w/o db4.
> 
> timo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20051112/5a10daa4/signature.bin


More information about the Info-cyrus mailing list