System Recovery as totally inaccessible

I have Zimbra on Rocky 8.10 and it works perfectly. But then the situation is different from yours, since yours came from CentOS and ended up broken due to some dependency issue I don’t have with my installation.

Zimbra supports both RHEL and Rocky, they even provide official paid versions for it.

Note that there is no CentOS 8.x download available, so that would clearly show that CentOS is unsupported.

Your dependency issue is due to unstable OS upgrade. Normally to fix a broken Zimbra installation or when migrating from one system to another, you do something like:

./install.sh -s

which installs Zimbra without configuring it (on whatever OS you are going to use, eg: Rocky or Debian). It’s important at that moment that the version you install is the same as your broken installation. Then you copy/restore your Zimbra data to /opt/zimbra. At this point you can then do:

./install.sh

to get it to run a pseudo upgrade to get your data back and Zimbra running. There’s plenty of cases on the Zimbra forums or also on the internet with that procedure. It’s usually used to move from one OS to the other. Eg: when I moved an installation from Ubuntu to RHEL. Or back when I was using Zimbra 6 and moved it from Debian to Ubuntu when Debian became unsupported.

If you are going to copy it back to the system, then there are LDAP sparse files that you can’t just copy. ZImbra’s documentation has specific rsync commands to do this correctly.

Carbonio is based on Zimbra, so it’s pretty much the same. I got bored of managing and maintaining my own personal email server and migrated to a paid service where I pay effectively 1 euro a month for a 10gb mailbox, and have all my domains connected to it. Since I only had a server with 5 mailboxes and a load of aliases, it made sense to do that than waste my time managing a server and upgrading it, etc. I no longer have to worry about that, and just get on with using email and that’s it.

Ah very interesting!

Thank you so much…

Which version of Zimbra is this that is compatible with Rocky 8?

I am using the Open Source version 8.8 edition.

My plan was to simply copy the /top/zimbra (backup) directory back to /opt after a dummy install

Hmm…

I found a link and it’s the Network Edition and not Open Source one?

Yeah 8.8.15 assuming it’s that version is really old. I doubt very much you are going to get that upgraded now, since Zimbra officially stopped providing the OSE/FOSS version a year or two back. Rocky was supported officially from either 9.x or 10.x I can’t remember which one. But people who build the OSE/FOSS version themselves (like myself) got it patched and built before Zimbra offered it. Purely because Rocky is effectively RHEL so you can use the RHEL builds on it.

Zimbra then added to their zm-build scripts on github support for building Rocky. Although those of us that were building it ourselves patched their scripts and built it anyway before the official support was added.

You would need to get 8.8.15 working again before you could even think of upgrading it. And since it would require upgrading to 9.x or 10.0 first it’s going to be near impossible unless you can find those builds available. If you have the package downloaded from when you installed/upgraded Zimbra initially, so the tar.gz of Zimbra 8.8.15 then you’ll be able to fix it. Otherwise, it’s going to be pretty much impossible. Even Zimbra don’t have it in their archive, only 9.x and that is the Network Edition (paid).

Zimbra 8 hasn’t been supported for at least 3 years if not more.

I’ve got the tgz of the 8.8.15 OSE Zimbra no problem…

Currently I am kind of toying with installing CentOS 8 again then reinstalling Zimbra then somehow migrating away… (if I am ever able to fix the MySQL tables within Zimbra)

That’s why I was thinking about Carbonio…

If it can be installed on Say Rocky 9 and is Open Source and active

I guess that’s my only option?

I dunno about Carbonio, never used it. But you can ask on their forums.

First though, you need to get your existing 8.8.15 sane by doing the things I mentioned above which is the install with the -s parameter to get the packages installed and inplace and all registered with the system permission wise. Then after that, put your data over the top of it and re-run install normally to get your data active. After that you can look at migration once it’s all running stable depending on what options are available.

Worst case, if the Zimbra Admin panel has the migration tool still there, you should be able to sync it across to another Zimbra install on a second server. Or Carbonio.

Or even more worst case, use the console imapsync tool, to migrate the mailboxes to something else entirely. I used that to migrate all my mail to the paid service that I’m now using.

I’ll give your solution a try while on Rocky

But as I’ve already posted above, I was unable to install things like ldap and imap

Ok so if I don’t use the “–platform-override” flag

I get:

[code]

zcs-8.8.15_GA_3953.RHEL8_64.20200629025823]# ./install.sh -s

Operations logged to /tmp/install.log.08oDBUPo
Checking for existing installation…
zimbra-drive…NOT FOUND
zimbra-imapd…NOT FOUND
zimbra-patch…NOT FOUND
zimbra-mta-patch…NOT FOUND
zimbra-proxy-patch…NOT FOUND
zimbra-license-tools…NOT FOUND
zimbra-license-extension…NOT FOUND
zimbra-network-store…NOT FOUND
zimbra-network-modules-ng…NOT FOUND
zimbra-chat…NOT FOUND
zimbra-talk…NOT FOUND
zimbra-ldap…NOT FOUND
zimbra-logger…NOT FOUND
zimbra-mta…NOT FOUND
zimbra-dnscache…NOT FOUND
zimbra-snmp…NOT FOUND
zimbra-store…NOT FOUND
zimbra-apache…NOT FOUND
zimbra-spell…NOT FOUND
zimbra-convertd…NOT FOUND
zimbra-memcached…NOT FOUND
zimbra-proxy…NOT FOUND
zimbra-archiving…NOT FOUND
zimbra-core…NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. (“SYNACOR”) WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for this Zimbra Collaboration Suite Software:

https://www.zimbra.com/license/zimbra-public-eula-2-6.html

Do you agree with the terms of the software license agreement? [N] y

Use Zimbra’s package repository [Y]

./util/utilfunc.sh: line 2316: print: command not found

[/code]

Well:

dnf provides *bin/print

should help you find out what dependency you are missing. But Zimbra 8.8.15 was only supported on RHEL7 or CentOS 7 so doubt very much you’ll get it working on Rocky 8. You will have to get it working again on RHEL7 or CentOS 7 before you can even think about migrating. And you should be upgrading it on RHEL7 to a newer version before then attempting to migrate to RHEL8 or Rocky8. But that is a Zimbra issue, nothing to do with Rocky. You can’t expect an older Zimbra version to work on Rocky 8 or even RHEL8.

That’s a bit confusing because this is actually meant for RHEL 8 as is written in the installer?

Eh?

[code]

dnf provides *bin/print
Last metadata expiration check: 3:56:25 ago on Mon 07 Sep 2026 04:14:47 PM BST.
Error: No Matches found

[/code]

Yeah that should work then. The real question is for which minor release of RHEL8. Because it could be anywhere between 8.0 and 8.10. I couldn’t remember what releases Zimbra 8 supported, especially since nothing is available to download for it now.

I expect the issues you are having is when 8.10 is installed, and it was made for a prior minor release. Instead of Zimbra building it for the major release of a package, it probably got built for the minor, this making it more difficult to run it on 8.10.

Ideally it would be better to ask on the Zimbra forums for assistance in how to get that working again.

Some extra info, whilst asked for on Ubuntu, it should be still possible to upgrade Zimbra 8 to 10, see: Zimbra 8.8.15 to Zimbra 10.1 Upgrade - Zimbra Forums

Thank you so much for all the help and advice!

I do have a Cent installer for 8.5? I think I’m gona try that…

You are probably correct in that 8.10 is not supported because “print” is clearly available on my system but probably part of a different package.

Sigh…let’s see what we can do!!

From my test system:

root@zimbra10:~# cat /etc/redhat-release 
Rocky Linux release 8.10 (Green Obsidian)

root@zimbra10:~# /etc/init.d/zimbra status
Host zimbra10.local
	amavis                  Running
	antispam                Running
	antivirus               Running
	dnscache                Running
	ldap                    Running
	logger                  Running
	mailbox                 Running
	memcached               Running
	mta                     Running
	opendkim                Running
	proxy                   Running
	service webapp          Running
	snmp                    Running
	spell                   Running
	stats                   Running
	zimbra webapp           Running
	zimbraAdmin webapp      Running
	zimlet webapp           Running
	zmconfigd               Running
root@zimbra10:~# 

But yeah no print available, which means that was a specific dependency for Zimbra 8. Maybe available in an earlier RHEL release, but I’m not sure. Certainly not now anyway. Incidently also not available on my RHEL8 system either.

The above is Zimbra 10, so just showing it does work, but as for Zimbra 8, well not sure what to offer on that. Hope you get it worked out.

This might be relevant: install.sh print not found [Solved] - Zimbra Forums

Could be problems with /etc/os-release. The post above had the same issue, so if something doesn’t match for the platform it’s expecting, then it’s not going to install.

Obviously since Zimbra 8.8.15 didn’t support Rocky 8, but did support RHEL8, you could substitute the content in /etc/os-release and put RHEL8 data to fool it.

If you wanted to do something like that, then take a copy of /etc/os-release and /etc/redhat-release so that you can revert later. Then put in those files the below:

root@rhel8:~# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.10 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.10 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://issues.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.10
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"

and:

root@rhel8:~# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.10 (Ootpa)

you could also play with variations by replacing 8.10 with an earlier number until it works. Then get upgraded from Zimbra 8 to 10 and then revert the files.

The lack of the print command would suggest that it’s not recognising the distro, and thus failing to run the install.sh.

Wow! That did the trick and it installed…

Yeah I think it didn’t understand about RL8.10

So… I backed up both original files. I will reinstall them. Hopefully this won’t be a problem for Zimbra?

Now I have /opt/zimbra again.

I think now my first line of attack on this will be to restore the original /opt/zimbra folder then run a zmfispermissions on it

From there I should be able to cross-fingers – hopefully – repair the broken MySQL tables and get the install up and running again.

Ah hangon…

os-release is a sym link?

[code]

-rw-r–r–. 1 root root 517 Sep 7 22:39 os-release
lrwxrwxrwx. 1 root root 21 May 13 13:01 os-release.rhel → ../usr/lib/os-release

[/code]

Yep it won’t because Rocky wasn’t available back then, nor supported until Zimbra 9 or 10.

Only a problem for Zimbra when you revert it and still on Zimbra 8. Once upgraded to Zimbra 9 or 10 you can revert the files. The files are owned by rocky-release package, so you can also reinstall that package and it should revert them as well.

Yes, so you can symlink it to something else temporarily, or replace the symlink in /etc/os-release with a file instead. Then put the symlink back later once on Zimbra 9 or 10. Or as mentioned if you don’t have them backed up, reinstall rocky-release to reset them. If you end up with os-release.rpmnew instead, then you can just rename that to the os-release file and it will then be OK.

Well, assuming you first did the install.sh -s command to just install Zimbra but not configure it, since this will create all the users that Zimbra requires. Then zmfixperms will work. If you restore your Zimbra directory before running the install command, then the users won’t exist, and it won’t reset the permissions correctly. So you need to do:

install.sh -s
restore your /opt/zimbra directory
install.sh
zimfixperms -verbose -extended

Fantastic!

I am at least installed and now with fixed permissions…

sadly my MySQL db is still screwed?

I remember a long time ago I turned this into a script:

[code]

mysqlcheck -A -S /opt/zimbra/data/tmp/mysql/mysql.sock -u root --auto-repair -p

[/code]

[code]

Error : Table ‘mboxgroup7.purged_messages’ doesn’t exist in engine
status : Operation failed

[/code]

Maybe I should take this more specifically to the Zimbra forums?