Re: How to find mailbox name from id

2020-09-15 Thread Marco

On 14/09/2020 11:43, Ismaël Tanguy has written:

Hello,

cyrus-imapd-3.0.7-16.el8.src.rpm installed on Centos 8.2

An user fails to receive an email from  a mailing list of 1000 subscribers.
 From SMTP server, I found the uid of the mail and look for it in the 
IMAP store logs.


While the delivery is OK for the most part, I found 5 mistakes :

# grep 280aa530-f9a0-c1fd-b100-51201aa6b2fc /var/log/maillog | grep -v 
Delivered


dupelim: eliminated duplicate message to i21mdycbfokfu8yq6jul3hvt id 
<280aa530-f9a0-c1fd-b100-51201aa6b2fc>

[...]

Hello,
 good question!

btw... on Cyrus 2.4 these logs told me the mailbox name too. On Cyrus 
3.x this info disappears. Ouch :(


If you delete the mailbox the syslog shows the mailbox name and the 
uniqueid together, only dupelim lacks of this info.


Cheers
Marco

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka

Before I proceed, I am seeking advice.

This is on Cyrus IMAP Murder v2.4.18-Debian-2.4.18-3

On one of our back-end servers sync started failing.  I restarted 
sync_server on the replication, and on the backend server, which did not 
work.  There are the following errors in the logs


Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: Processing sync log 
file /var/lib/cyrus/sync/l

og-29665 failed: Bad protocol
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1581 
File handles still open a

t environment close
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.001
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.002
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB1582 
Open file handle: /var/li

b/cyrus/db/__db.003
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR db5: BDB0060 
PANIC: fatal region error

 detected; run recovery
Sep 15 10:04:52 imap-be6 cyrus/sync_client[29665]: DBERROR: critical 
database situation


...


Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.travi

t
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.sutto

e
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.maran

v


On the replication server I have:

Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.linr7.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.kjells.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.ngang.mboxkey: No such file or directory

When I try to process the sync/log- files.


Any pointers or help appreciated.  IMAP is functioning as far as I can 
tell, and only the replication process is failing.


Thank you,

MIke


--
--
Michael D. Sofka   sof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka
Okay, these errors may be admin error. In running the old logs I 
specified -u, instead of -m.


I am still concerned about the DBERROR, but those did not appear after I 
restarted cyrus.  And rolling replication is still not working.


Mike

On 9/15/20 10:49 AM, Michael Sofka wrote:


Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.travi

t
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.sutto

e
Sep 15 10:21:18 imap-be6 cyrus/sync_client[19816]: Inbox missing on 
master for MAILBOX user.maran

v


On the replication server I have:

Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.linr7.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.kjells.mboxkey: No such file or directory
Sep 15 10:34:40 imap-be5 cyrus/syncserver[31550]: cannot unlink 
/var/lib/cyrus/user/m/MAILBOX use

r.ngang.mboxkey: No such file or directory

When I try to process the sync/log- files.


Any pointers or help appreciated.  IMAP is functioning as far as I can 
tell, and only the replication process is failing.


Thank you,

MIke



--
--
Michael D. Sofka   sof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sync failing. Possible db corruption

2020-09-15 Thread Michael Sofka
I have confirmed that running sync_client on individual mailboxes works, 
as does running sync on the accumulated log files.  But rolling 
replication is not working.   After sync_client is restarted there is a 
burst of sync activity on the accumulated log, then nothing.  The new 
log file continues to accumulate, sync_client continues to run, but is 
not processing anything so far as I can determine.


Sep 15 15:59:17 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: replica 
uid:7451 modseq:19935 last_updated:1600023598 internaldate:1600023598 
flags:( \Seen)
Sep 15 15:59:17 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (1487 > 1484) user.jins4.Sent
Sep 15 15:59:18 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (182427 > 182409) user.newelj
Sep 15 15:59:18 imap-be6 cyrus/sync_client[22370]: SYNCERROR: only 
exists on replica user.newelj 121180 
(a27c1dffed0326fb930b072fd85f04a8c2cbdf24)
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: inefficient 
replication (5598 > 5571) user.berryk3
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: record 
mismatch with replica: user.berryk3 more recent on master
Sep 15 15:59:23 imap-be6 cyrus/sync_client[22370]: SYNCNOTICE: master 
uid:2614 modseq:5636 last_updated:1600191010 internaldate:1599245383 
flags:(\Seen)


From the previous day's log I see:

Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: MAILBOX received NO 
response: System I/O error
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: do_folders(): update 
failed: user.chauhs2 'The remote Server(s) denied the operation'
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user swankd 
opened /var/lib/cyrus/user/s/swankd.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user edena2 
opened /var/lib/cyrus/user/e/edena2.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: seen_db: user searsm2 
opened /var/lib/cyrus/user/s/searsm2.seen
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: USER received NO 
response: System I/O error
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Error in do_sync(): 
bailing out! The remote Server(s) denied the operation
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Processing sync log 
file /var/lib/cyrus/sync/log-29665 failed: The remote Server(s) denied 
the operation
Sep 15 06:25:11 imap-be6 cyrus/sync_client[29665]: Reprocessing sync log 
file /var/lib/cyrus/sync/log-29665



I have not seen a repeat of the DBERROR, and have since restarted cyrus 
services.  So I'm not sure a ctl_cyrusdb -r is needed, or even it it 
would fix things.




--
--
Michael D. sofkasof...@rpi.edu
ITI Software Architect,   Email, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.http://www.rpi.edu/~sofkam/


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus