Maldua's Zimbra FOSS Builds - 2025 Year Feedback [Archive]

Ask questions about your setup or get help installing ZCS server (ZD section below).
umashankar.avagadda
Zimbra Employee
Zimbra Employee
Posts: 163
Joined: Wed Apr 05, 2023 6:29 am

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by umashankar.avagadda »

expert_az wrote: Tue Aug 12, 2025 12:07 pm Hello,
Getting issue below while upgrading from 10.1.7 to 10.1.9p1,even after this error zimbra working well after OS reboot.

Running mysql_upgrade...done.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/data/tmp/mysql/mysql.sock' (111 "Connection refused")
Tue Aug 12 14:38:31 2025: Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=blablabla --database=zimbra --batch --skip-column-names'.





lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
If you encounter this error, run the below command and then execute /opt/zimbra/libexec/zmsetup.pl to continue with the upgrade.

Code: Select all

echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
expert_az
Posts: 38
Joined: Fri Sep 12, 2014 11:13 pm

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by expert_az »

Adrian thank you for quick response ,here is my vm hardware config:
zubuntu.jpg
zubuntu.jpg (55.37 KiB) Viewed 11802 times
User avatar
adrian.gibanel.btactic
Outstanding Member
Outstanding Member
Posts: 557
Joined: Thu Jan 30, 2014 11:13 am
Contact:

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by adrian.gibanel.btactic »

umashankar.avagadda wrote: Wed Aug 13, 2025 5:04 am
expert_az wrote: Tue Aug 12, 2025 12:07 pm Running mysql_upgrade...done.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/data/tmp/mysql/mysql.sock' (111 "Connection refused")
Tue Aug 12 14:38:31 2025: Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=blablabla --database=zimbra --batch --skip-column-names'.
If you encounter this error, run the below command and then execute /opt/zimbra/libexec/zmsetup.pl to continue with the upgrade.

Code: Select all

echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
Thank you very much!
User avatar
adrian.gibanel.btactic
Outstanding Member
Outstanding Member
Posts: 557
Joined: Thu Jan 30, 2014 11:13 am
Contact:

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by adrian.gibanel.btactic »

umashankar.avagadda wrote: Wed Aug 13, 2025 5:04 am
expert_az wrote: Tue Aug 12, 2025 12:07 pm Running mysql_upgrade...done.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/data/tmp/mysql/mysql.sock' (111 "Connection refused")
Tue Aug 12 14:38:31 2025: Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=blablabla --database=zimbra --batch --skip-column-names'.
If you encounter this error, run the below command and then execute /opt/zimbra/libexec/zmsetup.pl to continue with the upgrade.

Code: Select all

echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
Do you mean:

Code: Select all

echo "10.1.25-MariaDB" > /opt/zimbra/db/data/mysql_upgrade_info
instead?

In my Zimbra Test VM the file contents is:

Code: Select all

10.1.25-MariaDB
and after running your command it would become:

Code: Select all

10.1.25-MariaDB10.1.25-MariaDB
which does not seem to be right.
umashankar.avagadda
Zimbra Employee
Zimbra Employee
Posts: 163
Joined: Wed Apr 05, 2023 6:29 am

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by umashankar.avagadda »

The file should contain only 10.1.25-MariaDB, which is the current MariaDB version.

echo "10.1.25-MariaDB" > /opt/zimbra/db/data/mysql_upgrade_info
expert_az
Posts: 38
Joined: Fri Sep 12, 2014 11:13 pm

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by expert_az »

Dear umashankar.avagadda your solution working for me,just tried.,here is log

root@posta:/opt/install/zcs-10.1.9_GA_4200001.UBUNTU22_64.20250721164603# echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
root@posta:/opt/install/zcs-10.1.9_GA_4200001.UBUNTU22_64.20250721164603# /opt/zimbra/libexec/zmsetup.pl
Operations logged to /tmp/zmsetup.20250813-124446.log
Adding /opt/zimbra/conf/ca/ca.pem to cacerts
Upgrading from 10.1.4_GA_4200000 to 10.1.9_GA_4200001
Stopping zimbra services...done.
This appears to be 10.1.4_GA
Starting mysql...done.
Checking ldap status...not running.
Checking ldap status...not running.
Starting ldap...done.
Running mysql_upgrade...done.
Stopping mysql...done.
Updating zimbraLDAPSchemaVersion to version '1739786767'
Updating global config and COS's with attributes introduced after 10.1.4_GA...done.
Stopping ldap...done.
Upgrade complete.

Checking ldap status....not running.
Starting ldap...done.
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.


Note

The previous configuration appears to have failed to complete

Attempt to complete configuration now? [yes]
Saving config in /opt/zimbra/config.938715...done.
Operations logged to /tmp/zmsetup.20250813-124446.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for posta.blabla.com...already exists.
Setting Zimbra IP Mode...done.
Saving CA in ldap...done.
Saving SSL Certificate in ldap...done.
Setting service ports on posta.blabla.com...done.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on posta.blabla.com...done.
Adding posta.blabla.com to zimbraMailHostPool in default COS...done.
Creating user spam.eauqpjpn9x@blabla.com...already exists.
Creating user ham.vvlt4lzk1@blabla.com...already exists.
Creating user virus-quarantine.qeklpwp1z1@blabla.com...already exists.
Setting spam training and Anti-virus quarantine accounts...done.
Setting up syslog.conf...done.
Setting zimbraReverseProxySSLProtocols...done.
Setting mailboxd_java_options...done.
Setting zimbra_zmjava_options...done.
Setting ldap_common_tlsciphersuite...done.
Setting ldap_common_tlsprotocolmin...done.
Setting amavis_sslversion...done.
Setting java options...done.
Checking ldap status....not running.
Starting ldap...done.
Starting servers...done.
Enabling jetty logging...done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Installing common zimlets...
com_zimbra_attachmail...done.
com_zimbra_phone...done.
com_zimbra_bulkprovision...done.
com_zimbra_viewmail...done.
com_zimbra_srchhighlighter...done.
com_zimbra_mailarchive...done.
com_zimbra_tooltip...done.
com_zimbra_gotourl...done.
com_zimbra_cert_manager...done.
com_zimbra_date...done.
com_zimbra_attachcontacts...done.
com_zimbra_adminversioncheck...done.
com_zimbra_webex...done.
com_zimbra_email...done.
com_zimbra_ymemoticons...done.
com_zimbra_proxy_config...done.
com_zimbra_url...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Skipping creation of default domain GAL sync account - existing install detected.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
The VERSION of zcs installed (10.1.9_GA_4200001_UBUNTU22_64)
The ADMIN EMAIL ADDRESS created (admin@blabla.com)

Notify Zimbra of your installation? [Yes] No
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.20250813-124446.log to /opt/zimbra/log


Configuration complete - press return to exit
User avatar
adrian.gibanel.btactic
Outstanding Member
Outstanding Member
Posts: 557
Joined: Thu Jan 30, 2014 11:13 am
Contact:

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by adrian.gibanel.btactic »

expert_az wrote: Wed Aug 13, 2025 11:48 am root@posta:/opt/install/zcs-10.1.9_GA_4200001.UBUNTU22_64.20250721164603# echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
Wouldn't you have a VM snapshot prior to that workaround being applied where you can share with us the contents of /opt/zimbra/db/data/mysql_upgrade_info ?

I'm curious to know what's the value there.
expert_az
Posts: 38
Joined: Fri Sep 12, 2014 11:13 pm

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by expert_az »

Adrian it's interesting,there was no any file like /opt/zimbra/db/data/mysql_upgrade_info

in my case echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info just created file.
User avatar
adrian.gibanel.btactic
Outstanding Member
Outstanding Member
Posts: 557
Joined: Thu Jan 30, 2014 11:13 am
Contact:

mysql_upgrade_info fix available?

Post by adrian.gibanel.btactic »

umashankar.avagadda wrote: Wed Aug 13, 2025 5:04 am
expert_az wrote: Tue Aug 12, 2025 12:07 pm Running mysql_upgrade...done.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/data/tmp/mysql/mysql.sock' (111 "Connection refused")
Tue Aug 12 14:38:31 2025: Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=blablabla --database=zimbra --batch --skip-column-names'.
If you encounter this error, run the below command and then execute /opt/zimbra/libexec/zmsetup.pl to continue with the upgrade.

Code: Select all

echo "10.1.25-MariaDB" >> /opt/zimbra/db/data/mysql_upgrade_info
So... umashankar.avagadda . Has this properly fixed in the Zimbra codebase (maybe in some development branch) ? I don't see anything relevant in zm-build.

If that's not the case... what would be the rough draft on fixing that?
I mean,... I know that adding this strings helps but I'm not sure it needs to be hardcoded always, specially, if it might generate errors when upgrading from old Zimbra versions with old Mysql versions (not tested, just speculation), or in the future when never Mariadb versions (higher than the 10.1.25 one) are the default.

Thank you!
User avatar
halfgaar
Outstanding Member
Outstanding Member
Posts: 251
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 22.04, Maldua/Btactic FOSS
Contact:

Re: Maldua's Zimbra FOSS Builds - Share your feedback

Post by halfgaar »

A bit late, but I updated 10.1.7 to 10.1.9 on Ubuntu 22.04 using 'zcs-10.1.9_GA_4200001.UBUNTU22_64.20250721164603.tgz', and it worked. This includes the embargoed patches, as I understand it.

I had waited with updating the zimbra* packages from the apt repo because of the known problem that it installs an Nginx that doesn't work, but doing it all at the same time worked.

👍
Consider seriously: because of the history of exploits: block Zimbra web interface with VPN, firewall or HTTP proxy.
Post Reply