Re: script to check quota failed
Hi, seems that there is a problem with your cyrus quota tree (/var/lib/cyrus/quota) or at least some of its files. Maybe strace command may help you find which files are corrupt: su - cyrus -c "strace /usr/lib/cyrus-imapd/quota user" Anthony Prades On 3/18/19 2:32 PM, Stephane Branchoux wrote: > Hello, > > We run cyrus-imapd-2.3.16-6 on a Red Hat Enterprise Linux Server > release 6.10. > > 2 days ago, a power crash occured in our Datacenter. > > After reboot of cyrus imap, all seems ok except our script to check > quota : > > su - cyrus -c "/usr/lib/cyrus-imapd/quota user" > failed building quota list for 'user': System I/O error: %m > > I tried : > > su - cyrus -c "/usr/lib/cyrus-imapd/quota -f" > failed building quota list for '*': System I/O error: %m > > Any idea ? > > Many thanks in advance > > > > 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 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: Which imap command to rename a root mailbox while maintaining its partition
Sorry, bad thread... On 3/18/19 4:49 PM, Anthony Prades via Info-cyrus wrote: > Hi, > > seems that there is a problem with your cyrus quota tree > (/var/lib/cyrus/quota) or at least some of its files. > > Maybe strace command may help you find which files are corrupt: > su - cyrus -c "strace /usr/lib/cyrus-imapd/quota user" > > Anthony Prades > > > On 3/18/19 10:13 AM, Marco wrote: >> Il 18/03/2019 08:25, Thomas Cataldo ha scritto: >>> Hi, >>> >>> On cyrus 2.4.x we used to run >>> A1 RENAME mbox1 mbox2 our_partition >>> >>> When we run that on cyrus 3.0.8 we get : >>> A1 NO Cross-server or cross-partition move w/rename not supported >>> >>> Is there a way to do this rename with one command with cyrus3. >>> If we run A1 RENAME mbox1 mbox2 >>> the mailbox is renamed as expected but it moves from our_partition to >>> default which is not what we want. >>> >>> Any suggestion ? >> Hello, no suggestions, I verified too. :( But if you have a mailbox with: >> >> folder1 --> part1 >> folder2 --> part2 >> >> then you can do: >> >> A1 RENAME folder1 folder2/folder1 >> >> and folder1 is now on part2. So, under some circumstances, a cross >> partition rename seems to be still supported... >> >> Bye >> Marco >> >> Ps: on the above example unixhierarchysep: 1 >> >> 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 > > 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 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: Which imap command to rename a root mailbox while maintaining its partition
Hi, seems that there is a problem with your cyrus quota tree (/var/lib/cyrus/quota) or at least some of its files. Maybe strace command may help you find which files are corrupt: su - cyrus -c "strace /usr/lib/cyrus-imapd/quota user" Anthony Prades On 3/18/19 10:13 AM, Marco wrote: > Il 18/03/2019 08:25, Thomas Cataldo ha scritto: >> Hi, >> >> On cyrus 2.4.x we used to run >> A1 RENAME mbox1 mbox2 our_partition >> >> When we run that on cyrus 3.0.8 we get : >> A1 NO Cross-server or cross-partition move w/rename not supported >> >> Is there a way to do this rename with one command with cyrus3. >> If we run A1 RENAME mbox1 mbox2 >> the mailbox is renamed as expected but it moves from our_partition to >> default which is not what we want. >> >> Any suggestion ? > > Hello, no suggestions, I verified too. :( But if you have a mailbox with: > > folder1 --> part1 > folder2 --> part2 > > then you can do: > > A1 RENAME folder1 folder2/folder1 > > and folder1 is now on part2. So, under some circumstances, a cross > partition rename seems to be still supported... > > Bye > Marco > > Ps: on the above example unixhierarchysep: 1 > > 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 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: cyrus 2.4 and DBERROR
Hi, Try db_recover tool in /var/lib/cyrus, somithing like (depends of your install): -- stop cyrus -- cd /var/lib/cyrus && db_recover -v -h /var/lib/cyrus/db -- start cyrus -- or herder version: -- stop cyrus -- cd /var/lib/cyrus && db_recover -c -v -h /var/lib/cyrus/db -- start cyrus -- If problem persists, you may convert your db file to flat, then flat to db using cvt_cyrusdb tool - something like: -- stop cyrus -- cvt_cyrusdb /var/lib/cyrus/mailboxes.db skiplist /tmp/mailboxes flat mv /var/lib/cyrus/mailboxes.db /var/lib/cyrus/mailboxes.db.orig cvt_cyrusdb /tmp/mailboxes flat /var/lib/cyrus/mailboxes.db skiplist chown cyrus:mail /var/lib/cyrus/mailboxes.db -- start cyrus -- Note: do backup before... Anthony On 12/1/18 8:20 AM, chose wrote: Good morning, what caused this and how to recover. All files in db/ directory were deleted and cyrus restarted, still no progress. Dec 1 07:57:44 email11 imap[4498]: DBERROR db4: PANIC: fatal region error detected; run recovery Dec 1 07:57:44 email11 imap[4498]: DBERROR: critical database situation Dec 1 07:57:44 email11 idled[4422]: DBERROR db4: PANIC: fatal region error detected; run recovery Dec 1 07:57:44 email11 idled[4422]: DBERROR: critical database situation Dec 1 07:57:44 email11 imap[4428]: DBERROR db4: PANIC: fatal region error detected; run recovery Dec 1 07:57:44 email11 imap[4428]: DBERROR: critical database situation Dec 1 07:57:44 email11 imap[4482]: DBERROR db4: PANIC: fatal region error detected; run recovery Cyrus imap is working, but it si slow. Thanks and best regards J.Karliak 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: DBERROR error fetching user.toto cyrusdb error
On 03/26/2013 04:15 PM, Sabine GOUDARD wrote: Hello, Last Saturday, my database shutdown I restart my server, a checkdisk was done and all was ok but only one mailbox was corrupted I could open the mailbox, but I couldn't delete mail etc etc ... All message for this mailbox were suspended with I/O Error I managed to save /var/spool/cyrus/t/user/toto Cyrus restarted without any error I created user.toto with cyradm and sam user.toto cyrus all When I try to set quota I have setquota : System I/O error Hi, check file system rights on: - /var/lib/cyrus/quota/t/*toto* - /var/lib/cyrus/user/t/toto* - /var/spool/cyrus/t/user/toto/* Anthony If I try to acess to mailbox I have DBERROR error fetching user.toto cyrusdb error in syslog But all the other boxes work without any error What can I do ? have you got any idea about how to solve this problem ? I never had these errors and i'm afraid to broken more ... I'm confused about the state of my database and i have no idea about how to solve this problem Cyrus 2.2 * **Sabine Goudard* Service Informatique et Multimédia Tél : 04 77 42 37 20 *Ecole Nationale Supérieure d’Architecture de Saint-Étienne* 1, rue Buisson BP 94 42003 Saint-Étienne Cedex 1 Fax : 04 77 42 35 40 http://www.st-etienne.archi.fr 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 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