Re: Best install path for Redhat Enterprise 5

2009-02-04 Thread D G Teed
On Tue, Feb 3, 2009 at 10:59 PM, John Thomas
gmane-2006-04...@jt-socal.comwrote:

 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.

 Perhaps rebuilding Simon's rpm will ease your pain:
 http://www.invoca.ch/pub/packages/cyrus-imapd/


Thanks.  That would be useful for working from the latest
or at least more current sources.

I found the problem.  SELinux !

On Redhat 5.3 (Enterprise), with a minimal OS install, there is no
Redhat installer question asking what level of SELinux we want.
By default it is enabled and Enforcing.  This is what caused the
permissions errors accessing the DB files in their non-default location.

I disabled SELinux, rebooted and now the init for cyrus-imapd runs as
expected.

--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

Re: Best install path for Redhat Enterprise 5

2009-02-03 Thread Patrick Boutilier
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


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


Re: Best install path for Redhat Enterprise 5

2009-02-03 Thread D G Teed
On Tue, Feb 3, 2009 at 4:31 PM, Patrick Boutilier bouti...@ednet.ns.cawrote:


 What does the following commands output?

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


Hey, another Bluenoser on the list.  Cool.

# ls -ld /cyrus/
drwxr-xr-x 5 cyrus root 4096 Feb  3 13:40 /cyrus/
# ls -ld /cyrus/imap/
drwx-- 11 cyrus mail 4096 Feb  3 16:20 /cyrus/imap/

That probably isn't as tidy as I'd leave it, but this
is the current state, after trying several angles
and running out of the office with the storm coming
on heavy today.

--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

Re: Best install path for Redhat Enterprise 5

2009-02-03 Thread John Thomas
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.

Perhaps rebuilding Simon's rpm will ease your pain:
http://www.invoca.ch/pub/packages/cyrus-imapd/


-- 
Sincerely,
John Thomas

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