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 &quot;/kolab/bin/cyrreconstruct -rfx user/[email protected]&quot;</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;">&gt; No, I ran it as root.&nbsp; 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;">&gt; on disk (they belong to cyrus:mail).</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; On 2023-06-09 20:27, marko wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; Are you running it as the kolab user?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; 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;">&gt; &gt;&gt; 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;">&gt; &gt;&gt; my</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; user. I ran:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; # /usr/lib/cyrus-imapd/reconstruct -rf user/eric</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; #</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; 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;">&gt; &gt;&gt; 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;">&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; Eric</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; On 2023-06-09 06:23, Tom Reijnders wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt; 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;">&gt; &gt;&gt; &gt; 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;">&gt; &gt;&gt; &gt; 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;">&gt; &gt;&gt; &gt; 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;">&gt; &gt;&gt; &gt; mlocate'.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt; Tom</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt; 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;">&gt; &gt;&gt; &gt;&gt; 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;">&gt; &gt;&gt; &gt;&gt; is</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; 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;">&gt; &gt;&gt; &gt;&gt; cyrus-common package from the ubuntu repos (which contains</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; reconstruct)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; without breaking the kolab provided cyrus-imapd package. :/</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; 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;">&gt; &gt;&gt; &gt;&gt; 22.04.&gt;&gt;</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt; On 2023-06-01 10:00, Tom Reijnders wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; Did you run reconstruct?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; See</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; https://serverfault.com/questions/531916/reconstructing-cyrus-mailbox</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; es-&gt; &gt;&gt;&gt; with-sub-folders.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; Tom</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt; Op 27-5-2023 om 16:36 schreef Josh:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; Greetings kolabers,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; 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;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; Kolab16 latest, recreated my user, then restored</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; /var/spool/mail/doman</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; folder from a recent backup.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; 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;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; are shown to imap clients.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; Am I missing something?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; Please advise,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; Josh.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; _______________________________________________</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; users mailing list</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; [email protected]</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; &gt;&gt;&gt;&gt; https://lists.kolab.org/mailman/listinfo/users</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; _______________________________________________</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; users mailing list</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; [email protected]</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt;&gt; https://lists.kolab.org/mailman/listinfo/users</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; _______________________________________________</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; users mailing list</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; [email protected]</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; https://lists.kolab.org/mailman/listinfo/users</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; _______________________________________________</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; users mailing list</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; [email protected]</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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==--