Re: disaster recovery process
marko <[email protected]> Mon, 12 Jun 2023 15:43:46 +1000
| Newsgroups | gmane.comp.kde.devel.kroupware |
|---|---|
| Organization | Mechtron Systems |
| Message-ID | <2151711.irdbgypaU6__19353.1421989732$1686548713$gmane$org@chambourcin> |
This is a multi-part message in MIME format. --===============2287017562277545573== Content-Type: multipart/alternative; boundary="nextPart13288612.uLZWGnKmhe" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart13288612.uLZWGnKmhe Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" root won't work, you need to be the kolab restricted user. from my 2016 notes, probably on centos 6 when I was migrating a lot of kolab: /su - kolab-r -c "/kolab/bin/cyrreconstruct -rfx user/[email protected]"/ cheers Marko On Sunday, 11 June 2023 11:23:19 PM AEST Eric B Munson wrote: > No, I ran it as root. The kolab user cannot read or write the mailbox files > on disk (they belong to cyrus:mail). > On 2023-06-09 20:27, marko wrote: > > Are you running it as the kolab user? > > > > On Saturday, 10 June 2023 10:07:58 AM AEST Eric B Munson wrote: > >> Thanks for the pointer, I found it but get no output from running it on > >> my > >> user. I ran: > >> > >> # /usr/lib/cyrus-imapd/reconstruct -rf user/eric > >> # > >> > >> I am sure that means I am using is wrong but I cannot find any indication > >> of how. AFAICT this is what the manpage says to do. > >> > >> Eric > >> > >> On 2023-06-09 06:23, Tom Reijnders wrote: > >> > Are you siure it's not installed? By default it's not in the path, but > >> > somewhere in the cyrus installation, so you would need the full path > >> > to the executable. Try running 'locate reconstruct'. If locate is not > >> > installeed, you should be able to install it using 'apt-get install > >> > mlocate'. > >> > > >> > Tom > >> > > >> > Op 8-6-2023 om 17:39 schreef Eric B Munson: > >> >> I am having the same problem and would like to run reconstruct, but it > >> >> is > >> >> not installed when using Ubuntu 18.04 and I cannot install the > >> >> cyrus-common package from the ubuntu repos (which contains > >> >> reconstruct) > >> >> without breaking the kolab provided cyrus-imapd package. :/ > >> >> > >> >> Guess it's time to see if they have finally fixed builds for 20.04 or > >> >> 22.04.>> > >> >> > >> >> On 2023-06-01 10:00, Tom Reijnders wrote: > >> >>> Did you run reconstruct? > >> >>> > >> >>> See > >> >>> https://serverfault.com/questions/531916/reconstructing-cyrus-mailbox > >> >>> es-> >>> with-sub-folders. > >> >>> > >> >>> Tom > >> >>> > >> >>> Op 27-5-2023 om 16:36 schreef Josh: > >> >>>> Greetings kolabers, > >> >>>> > >> >>>> After a server catastrophic disk failure I reinstalled CentOS7 and > >> >>>> Kolab16 latest, recreated my user, then restored > >> >>>> /var/spool/mail/doman > >> >>>> folder from a recent backup. > >> >>>> > >> >>>> Inbox contents showed up correctly but no previously created folders > >> >>>> are shown to imap clients. > >> >>>> > >> >>>> Am I missing something? > >> >>>> > >> >>>> Please advise, > >> >>>> Josh. > >> >>>> _______________________________________________ > >> >>>> users mailing list > >> >>>> [email protected] > >> >>>> https://lists.kolab.org/mailman/listinfo/users > >> > >> _______________________________________________ > >> users mailing list > >> [email protected] > >> https://lists.kolab.org/mailman/listinfo/users > > > > _______________________________________________ > > users mailing list > > [email protected] > > https://lists.kolab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > [email protected] > https://lists.kolab.org/mailman/listinfo/users --nextPart13288612.uLZWGnKmhe Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii" <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">root won't work, you need to be the kolab restricted user.</p> <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">from my 2016 notes, probably on centos 6 when I was migrating a lot of kolab:</p> <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Hack;"><em>su - kolab-r -c "/kolab/bin/cyrreconstruct -rfx user/[email protected]"</em></span></p> <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">cheers</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Marko</p> <br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Sunday, 11 June 2023 11:23:19 PM AEST Eric B Munson wrote:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> No, I ran it as root. The kolab user cannot read or write the mailbox files</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> on disk (they belong to cyrus:mail).</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> On 2023-06-09 20:27, marko wrote:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Are you running it as the kolab user?</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > On Saturday, 10 June 2023 10:07:58 AM AEST Eric B Munson wrote:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> Thanks for the pointer, I found it but get no output from running it on</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> my</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> user. I ran:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> # /usr/lib/cyrus-imapd/reconstruct -rf user/eric</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> #</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> I am sure that means I am using is wrong but I cannot find any indication</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> of how. AFAICT this is what the manpage says to do.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> Eric</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> On 2023-06-09 06:23, Tom Reijnders wrote:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > Are you siure it's not installed? By default it's not in the path, but</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > somewhere in the cyrus installation, so you would need the full path</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > to the executable. Try running 'locate reconstruct'. If locate is not</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > installeed, you should be able to install it using 'apt-get install</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > mlocate'.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > Tom</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> > Op 8-6-2023 om 17:39 schreef Eric B Munson:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> I am having the same problem and would like to run reconstruct, but it</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> is</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> not installed when using Ubuntu 18.04 and I cannot install the</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> cyrus-common package from the ubuntu repos (which contains</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> reconstruct)</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> without breaking the kolab provided cyrus-imapd package. :/</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> Guess it's time to see if they have finally fixed builds for 20.04 or</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> 22.04.>></p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >> On 2023-06-01 10:00, Tom Reijnders wrote:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> Did you run reconstruct?</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> See</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> https://serverfault.com/questions/531916/reconstructing-cyrus-mailbox</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> es-> >>> with-sub-folders.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> Tom</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>> Op 27-5-2023 om 16:36 schreef Josh:</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Greetings kolabers,</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> After a server catastrophic disk failure I reinstalled CentOS7 and</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Kolab16 latest, recreated my user, then restored</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> /var/spool/mail/doman</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> folder from a recent backup.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Inbox contents showed up correctly but no previously created folders</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> are shown to imap clients.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Am I missing something?</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Please advise,</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> Josh.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> _______________________________________________</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> users mailing list</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> [email protected]</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> >>>> https://lists.kolab.org/mailman/listinfo/users</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> _______________________________________________</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> users mailing list</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> [email protected]</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> https://lists.kolab.org/mailman/listinfo/users</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > _______________________________________________</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > users mailing list</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > [email protected]</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > https://lists.kolab.org/mailman/listinfo/users</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> _______________________________________________</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> users mailing list</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> [email protected]</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> https://lists.kolab.org/mailman/listinfo/users</p> <br /><br /></body> </html> --nextPart13288612.uLZWGnKmhe-- --===============2287017562277545573== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ users mailing list [email protected] https://lists.kolab.org/mailman/listinfo/users --===============2287017562277545573==--