Urgent: Cyrus troube after upgrade

Matthias Wulkow matthias.wulkow at webpluseins.de
Tue Feb 16 11:21:58 EST 2010


Hi Patrick & Adam,

well I have restartet cyrus (master) and deleted ther deliver.db file.

Until now I have no error messages in the logs anymore.

And the mails from fetchmail come in again.

At least the things work properly again.

THANK YOU BOTH!!!

Now I will have to check what is wrong with the init script, maybe 
restart works now - it seems this .db file was hurting...

Best regards,

MW

Am 16.02.10 16:53, schrieb Patrick Boutilier:
> On 02/16/2010 11:48 AM, Matthias Wulkow wrote:
>> Hello Adam,
>>
>> > If you just try to run "/usr/lib/cyrus-imapd/cyrus-master
>> > -C /etc/imapd.conf -M /etc/cyrus.conf -p /var/run/cyrus-master.pid">
>> > does the master daemon start?
>>
>> This works but I have to append& to make run in the background.
>> Probably I should run it with NOHUP or so..
>
>
> Can you post your /etc/init.d/cyrus-imapd start file?
>
>>
>> The users can now access to the mailboxes.
>>
>> I still get quite few errors in the logs.
>> Mails which are downloaded via fetchmail do not reach the mailbox
>> anymore. I guess that this is the deliver.db part from the error log.
>>
>
>
> Stop Cyrus and move/remove /var/lib/imap/deliver.db . Then start Cyrus
> again.
>
>
>
>
>
>> tail /var/log/maillog
>>
>> Feb 16 16:40:27 linux lmtpunix[3535]: DBERROR: opening
>> /var/lib/imap/deliver.db: cyrusdb error
>> Feb 16 16:40:27 linux lmtpunix[3535]: FATAL: lmtpd: unable to init
>> duplicate delivery database
>> Feb 16 16:40:37 linux master[3096]: process 3535 exited, status 75
>> Feb 16 16:40:37 linux master[3096]: service lmtpunix pid 3535 in READY
>> state: terminated abnormally
>> Feb 16 16:40:37 linux master[3538]: about to exec
>> /usr/lib/cyrus-imapd/lmtpd
>> Feb 16 16:40:37 linux lmtpunix[3538]: executed
>> Feb 16 16:40:37 linux lmtpunix[3538]: skiplist: invalid magic header:
>> /var/lib/imap/deliver.db
>> Feb 16 16:40:37 linux lmtpunix[3538]: skiplist: closed while still locked
>> Feb 16 16:40:37 linux lmtpunix[3538]: DBERROR: opening
>> /var/lib/imap/deliver.db: cyrusdb error
>> Feb 16 16:40:37 linux lmtpunix[3538]: FATAL: lmtpd: unable to init
>> duplicate delivery database
>>
>> I use postfix as MTA and I do not use lmtp but the cyrus transport
>> mailbox_transport = cyrus
>>
>> And yes, I have /sbin/runuser "installed".
>>
>> Thank you for your help.
>>
>> MW
>>
>>> On Tue, 2010-02-16 at 15:59 +0100, Matthias Wulkow wrote:
>>>> Hello Adam,
>>>> > (a) disable selinux
>>>> SELinux is disabled already.
>>>> > (b) make sure the cyrus user account is not disabled.
>>>> How can I enable/disable a cyrus accounts?
>>>> The user(s) are set as system users and identified by sasl. No mysql
>>>> configuation.
>>>> The system was fully working BEFORE the upgrade. Didn't do anything
>>>> except the upgrade (which seems to have broken something).
>>>>> On Tue, 2010-02-16 at 15:49 +0100, Matthias Wulkow wrote:
>>>>>> Hello,
>>>>>> I manually upgraded cyrus 2.3.7 (CentOS 5.4) to cyrus 2.3.16.
>>>>>> Note: I created the cyrus 2.3.16 rpm myself with the rpm src from
>>>>>> here:
>>>>>> http://www.invoca.ch/pub/packages/cyrus-imapd/
>>>>>> doing just rpmbuild --rebuild xxx.rpm
>>>>>> Now when I want to start cyrus:
>>>>>> /etc/init.d/cyrus-imapd start
>>>>>> or
>>>>>> service cyrus-imapd start
>>>>>> I get following error:
>>>>>> cyrus-imapd Datenbanken importieren: This account is currently not
>>>>>> available.
>>>>>> Can somebody tell me what I now can do?
>>>
>>> "service cyrus-imapd start" and "/etc/init.d/cyrus-imapd start" are the
>>> exact same thing; as "/etc/init.d/cyrus-imapd start" is what "service
>>> cyrus-imapd start" does. The init script does a "$RUNUSER - cyrus
>>> -c ...." I believe this error indicates that $RUNUSER is failing.
>>> RUNUSER is "/sbin/runuser" (if that file exists) or else it is "su".
>>> [Assuming your run scripts are the same as mine, I've using the Invoca
>>> packages]. If you just try to run "/usr/lib/cyrus-imapd/cyrus-master
>>> -C /etc/imapd.conf -M /etc/cyrus.conf -p /var/run/cyrus-master.pid" does
>>> the master daemon start?
>>
>> ----
>> 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



More information about the Info-cyrus mailing list