On Wed, May 14, 2008 at 11:44 PM, Derrick Seymour <[EMAIL PROTECTED]> wrote: > Blake, > > --- Blake Hudson <[EMAIL PROTECTED]> wrote: > >> >> >> -------- Original Message -------- >> Subject: Cyrus questions, lost emails, reconstruct >> From: Derrick Seymour <[EMAIL PROTECTED]> >> To: info-cyrus@lists.andrew.cmu.edu >> Date: Wednesday, May 14, 2008 10:20:28 AM >> > I have been having a few problems as of late. >> > >> > First, lost emails. Well they aren't really lost, >> i >> > have located them in the imap mail store under the >> > users name, kind of hidden i guess you would say. >> not >> > sure why that is. >> > >> > This happens randomly with incoming emails, maybe >> one >> > out of a couple thousand. >> > >> > My fix to this was to reconstruct the user box. >> > >> ... >> > while this works, it seems to corrupt the inbox, >> only >> > the inbox all other folders stay intack. >> > >> ... >> > sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -i >> > >> > and of course this fixes the problem of the mail >> box >> > does not exist but i always seems to lose some >> emails >> > in the process, usually one or two users at random >> > >> > You can probably see a very bad cycle here. >> > >> ... >> >> Sounds like bad RAM maybe corrupting the cyrus >> databases... Any other >> indication of file corruption or system >> locking/freezing/rebooting >> (things associated with bad memory) ? >> >> In a PC I'd run memtest86, dunno if that option is >> available to you. >> >> -Blake >> ---- >> 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 >> > > No signs of bad memory, the server operates off a > fiber channel RAID and there are no warnings or > failures with that either. There are a couple of > utilities i can try to test the memory, but i will not > have an answer on that until this weekend. > > Why would reconstruct -i work (minus the few > disappearing emails) and reconstruct -r user/short > name corrupt the inbox?
What is the -i for ? The -r was broken until last last 2.3.12 ! You must use $ reconstruct -r user/shortname/* to take care of subdirectories and add -f to discover unknown directories. Can you give more information about your system ? OS, cyrus version ? How long did it operate without problems ? Did you change anything ? Even something you thing is unreleated ? > I have to assume if the inbox > didn't get corrupted that the missing emails in > question would be there. I have tried to copy emails > from inbox to a folder in side the usernames folder, > upon a reconstruct -r those emails are now viewable, > but the main inbox is still corrupt. Try to reset the cyrus.index file before to reconstruct, because cyreconstruct could try to reuse it. something like # echo > cyrus.index or just delete it Regards > > Just a few things I tried if any of this helps. > > Thanks again for you help in advance > > Derrick > ---- > 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 > -- Alain Spineux aspineux gmail com May the sources be with you ---- 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