db.spec.patch not successful :-(

Edward Rudd eddie at omegaware.com
Thu Feb 19 00:47:37 EST 2004


Skiplist is Cyrus' own DB format that is better for certain types of
data access.. (mailbox lists is one of them)..
Is the /imap/conf/db directory created? Does it have the correct
permissions? (owned by cyrus, group mail)?
And you may need to run the cvt_cyrusdb or cvt_cyrusdb_all programs to
convert the databases if you had used different formats for the various
databases? (ie.. DB4 for the mailboxes instead of skiplist). You need to
run these programs as the user cyrus (su - cyrus -c).
This is what Simon Matter's start up script does in his RPM package..

 echo -n $"preparing databases... "
su - cyrus -c "umask 166 ; /usr/lib/cyrus-imapd/cvt_cyrusdb_all >
/var/lib/imap/rpm/cvt_cyrusdb_all.log 2>&1"

On Wed, 2004-02-18 at 16:44, Ruth Ivimey-Cook wrote:
> Folks,
> 
> I applied the db.spec.patch for FC1 db4 to the FC1 source RPM spec file,
> rebuilt db4, installed all 3 components (rpm -Uhv), reconfigured and rebuilt
> imapd 2.2.3 and installed that on top of my first attempt. I then tried:
> 
> % ctl_mboxlist -d /imap/conf/mailboxes.db
> fatal error: can't read mailboxes file
> 
> In the imapd.log, I get
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: DBERROR db4: unable to join the environment
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: DBERROR: dbenv->open '/imap/conf/db' failed: Resource temporarily unavailable
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: DBERROR: init() on berkeley
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: DBERROR: reading /imap/conf/db/skipstamp, assuming the worst: No such file or directory
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: skiplist: invalid magic header: /imap/conf/mailboxes.db
> Feb 18 22:36:58 gatemaster ctl_mboxlist[20708]: DBERROR: opening /imap/conf/mailboxes.db: cyrusdb error
> 
> What's up? Why is it looking for skiplist stuff when it seems it knows to use
> db4?
> 
> Ruth
-- 
Edward Rudd <eddie at omegaware.com>
Website http://outoforder.cc/

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list