DB4 Errors - not critical, but disturbing

Henk.Roose at cwi.nl Henk.Roose at cwi.nl
Wed Apr 5 06:20:40 EDT 2006


Nikola,

Nikola Milutinovic wrote:

> Hi all.
> 
> Running the following config.
> 
> Digital UNIX 4.0D
> OpenSSL 0.9.7g
> Berkeley DB 4.2.52 patch2
> Cyrus SASL 2.1.20
> Cyrus IMAP 2.2.10
> 
> I usually get on my servers the following when the master runs ctl_cyrusdb:
> 
> Dec 16 12:56:44 Uprava master[20477]: about to exec 
> /usr/opt/Cyrus-IMAP4-2.2.10/sbin/ctl_cyrusdb
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: checkpointing cyrus databases
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: archiving database file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/mailboxes.db
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: archiving database file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/annotations.db
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: error listing log 
> files: Permission denied
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: archive 
> /var/opt/Cyrus-IMAP4-2.2.10/config/db: cyrusdb error
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: error listing log 
> files: Permission denied
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: DBERROR: archive 
> /var/opt/Cyrus-IMAP4-2.2.10/config/db: cyrusdb error
> Dec 16 12:56:44 Uprava ctl_cyrusdb[20477]: done checkpointing cyrus 
> databases
> 
> The server is running OK, I guess. This is the DB config from "imapd.conf":
> 
> #
> # Databases
> #
> berkeley_cachesize:     512
> berkeley_locks_max:     50000
> berkeley_txns_max:      100
> annotation_db:          skiplist
> duplicate_db:           berkeley-nosync
> mboxlist_db:            skiplist
> quota_db:               quotalegacy
> # ptscache_db:          berkeley
> seenstate_db:           skiplist
> subscription_db:        flat
> tlscache_db:            berkeley-nosync
> 
> Running this on a running server produced no errors in the log:
> 
> su cyrus -c "/usr/sbin/ctl_cyrusdb -c"
> 
> log:
> 
> Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: checkpointing cyrus databases
> Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: archiving database file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/mailboxes.db
> Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: archiving database file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/annotations.db
> Dec 17 00:22:46 Uprava ctl_cyrusdb[28161]: removing log file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.0000000035
> Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: archiving log file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.0000000036
> Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: archiving log file: 
> /var/opt/Cyrus-IMAP4-2.2.10/config/db/log.0000000036
> Dec 17 00:22:47 Uprava ctl_cyrusdb[28161]: done checkpointing cyrus 
> databases
> 
> Any ideas?

I realize this is an old post but since nobody followed up here goes...
The errors occur during startup, right?
Put a cd $configdirectory (the configdirectory in imap.conf) in the rc script.
The cd $configdirectory is a workaround.  master fails to chdir() to a
safe directory before changing to the cyrus UID and spawning children.
This only affects ctl_cyrusdb -c however, which complains that it cannot
list logfiles upon checkpointing.

> 
> Nix.

Henk

-- 
Henk Roose <Henk.Roose at cwi.nl>
CWI - Centrum voor Wiskunde en Informatica
Centre for Mathematics and Computer Science
Amsterdam (NL)


More information about the Info-cyrus mailing list