Best install path for Redhat Enterprise 5

Patrick Boutilier boutilpj at ednet.ns.ca
Tue Feb 3 15:31:50 EST 2009


D G Teed wrote:
> I'm looking at the various guides I see from google and from
> that deposited by Redhat's RPM for cyrus-imapd.  Nothing
> appears to be really current.
> 
> Most guides refer to building cyrus from source. I usually
> avoid doing that as it is a hassle to maintain packages that way,
> but then again Redhat has not updated their build in the last
> 2 years so perhaps it doesn't matter.
> 
> I have a problem starting cyrus from the Redhat package and
> the init script.
> 
> I can start /usr/lib/cyrus-imapd/cyrus-master as root
> and it works OK.   I can login as cyrus with imtest.
> 
> If I run the cyrus-impad init, which works fine on
> another Redhat install, I get errors:
> 
> Feb  3 16:20:34 navi master[13825]: process started
> Feb  3 16:20:34 navi master[13827]: about to exec 
> /usr/lib/cyrus-imapd/ctl_cyrusdb
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: /cyrus/imap/db: 
> Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: 
> /cyrus/imap/db/__db.001: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: dbenv->open 
> '/cyrus/imap/db' failed: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on berkeley
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: writing 
> /cyrus/imap/db/skipstamp: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on skiplist
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: recovering cyrus databases
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: IOERROR: opening 
> /cyrus/imap/mailboxes.db: Permission denied
> Feb  3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: opening 
> /cyrus/imap/mailboxes.db: cyrusdb error
> Feb  3 16:20:34 navi master[13825]: process 13827 exited, status 75
> Feb  3 16:20:34 navi master[13828]: about to exec /usr/lib/cyrus-imapd/idled
> Feb  3 16:20:34 navi idled[13828]: DBERROR: dbenv->open '/cyrus/imap/db' 
> failed: Permission denied
> Feb  3 16:20:34 navi idled[13828]: DBERROR: init() on berkeley
> Feb  3 16:20:34 navi idled[13828]: DBERROR: reading 
> /cyrus/imap/db/skipstamp, assuming the worst: Permission denied
> 
> And it goes on until I stop the service.
> 
> The files and directories are owned by cyrus, so the permissions issue
> seems odd.  E..g.
> 
> ls -l /cyrus/imap/
> total 100
> -rw------- 1 cyrus mail  144 Feb  3 16:15 annotations.db
> drwx------ 2 cyrus mail 4096 Feb  3 16:20 db
> drwx------ 2 cyrus mail 4096 Feb  3 16:15 db.backup1
> -rw------- 1 cyrus mail 8192 Feb  3 16:15 deliver.db
> drwx------ 2 cyrus mail 4096 Feb  3 13:40 log
> -rw------- 1 cyrus mail  144 Feb  3 16:15 mailboxes.db
> drwx------ 2 cyrus mail 4096 Feb  3 13:40 msg
> drwx------ 2 cyrus mail 4096 Feb  3 16:17 proc
> drwx------ 2 cyrus mail 4096 Feb  3 13:40 ptclient
> drwx------ 2 cyrus mail 4096 Feb  3 16:20 rpm
> drwxr-x--- 2 cyrus mail 4096 Feb  3 16:15 socket
> drwx------ 2 cyrus mail 4096 Feb  3 13:40 sync
> 
> I have one other Redhat server running this OK, but I don't know what 
> the difference is.
> For this reason, I'd rather not fix the problem by building from source
> and having different styles of cyrus running.
> 
> Does anyone have a pointer?


What does the following commands output?

ls -ld /cyrus
ls -ld /cyrus/imap




> 
> --Donald
> 
> 
> ------------------------------------------------------------------------
> 
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html



More information about the Info-cyrus mailing list