So, I tried a two step upgrade
Upgrade from latest 8.8.15_P45 to 10.0.5_GAT100005C100005ITS
Upgrade from 10.0.5_GAT100005C100005ITS to 10.0.6_GAT100006C100006ITS
and it looks like there is an issue with having anything after the _GA
For the initial upgrade, all appears to have gone well.However, for the subsequent upgrade, the updates to LDAP failed with "Updating global config and COS's with attributes introduced after 10.0.5_GAT100005C100005ITS...failed."
The process subsequently continued all the way to the end but, obviously, the LDAP database hasn't been properly updated.
From searching for that error string, the command being run is in zmupgrade.pmin zmupgrade.pm, it has the followingand that runAttributeUpgrade is So, it seems that having any additional text directly after the _GA breaks this process.
As a test, I logged in as the zimbra user, and ran the following manually.and got the following which seems to confirm that having additional version information attached after the _GA is what caused the process to stop.
Interestingly, I tried again adding an additional _ after the _GA
This looks to have worked OK.
Will create multiple builds tomorrow with an extra _ in the name and try the process again.
By the way, this is on Rocky 8 (RHEL8_64 build). No idea about Debian/Ubuntu behaviour.
Upgrade from latest 8.8.15_P45 to 10.0.5_GAT100005C100005ITS
Upgrade from 10.0.5_GAT100005C100005ITS to 10.0.6_GAT100006C100006ITS
and it looks like there is an issue with having anything after the _GA
For the initial upgrade, all appears to have gone well.
Code:
.....Stopping mysql...done.Updating zimbraLDAPSchemaVersion to version '1673397105'Applying updates for 8.8.15_GAapplying 8815GA upgrade changesUpdating OWASP LC configUpdating global config and COS's with attributes introduced after 8.8.15_GA...done.Stopping ldap...done.Upgrade complete.[zimbra@mail ~]$ zmcontrol -vRelease 10.0.5_GAT100005C100005ITS_1000.RHEL8_64_20240416144954 RHEL8_64 FOSS edition.[zimbra@mail ~]$
Code:
.....Upgrade from 10.0.5_GAT100005C100005ITS to 10.0.6_GAT100006C100006ITSRestoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...doneOperations logged to /tmp/zmsetup.20240416-163048.logAdding /opt/zimbra/conf/ca/ca.pem to cacertsUpgrading from 10.0.5_GAT100005C100005ITS_1000 to 10.0.6_GAT100006C100006ITS_1000Stopping zimbra services...done.This appears to be 10.0.5_GAT100005C100005ITSStarting 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 '1673397105'Updating global config and COS's with attributes introduced after 10.0.5_GAT100005C100005ITS...failed.Stopping ldap...done.Upgrade complete.
From searching for that error string, the command being run is in zmupgrade.pm
Code:
[root@mail zimbra]# grep -ir "with attributes introduced after" *libexec/zmupgrade.pm: main::progress("Updating global config and COS's with attributes introduced after $startVersion...");
Code:
if ($isLdapMaster) { main::progress("Updating global config and COS's with attributes introduced after $startVersion..."); main::progress((&runAttributeUpgrade($startVersion)) ? "failed.\n" : "done.\n"); main::setLdapGlobalConfig("zimbraVersionCheckLastResponse", ""); }
Code:
sub runAttributeUpgrade($) { my ($startVersion) = @_; my $rc = main::runAsZimbra("zmjava com.zimbra.cs.account.ldap.upgrade.LdapUpgrade -b 27075 -v $startVersion"); return $rc;}
As a test, I logged in as the zimbra user, and ran the following manually.
Code:
[zimbra@mail ~]$ zmjava com.zimbra.cs.account.ldap.upgrade.LdapUpgrade -b 27075 -v 10.0.5_GA
Code:
--------------com.zimbra.cs.account.ldap.upgrade.LdapUpgrade -b 27075 -v 10.0.5_GA--------------------------------------------Upgrading global config:Checking global config attribute: zimbraHelpModernURL[11.0.0] skipping - does not have a default valueChecking global config attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0------------------------------Upgrading cos default:Checking cos default attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos default attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos default attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos default attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos default attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos default attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos defaultExternal:Checking cos defaultExternal attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos defaultExternal attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos defaultExternal attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos defaultExternal attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos defaultExternal attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos defaultExternal attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos ftp:Checking cos ftp attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos ftp attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos ftp attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos ftp attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos ftp attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos ftp attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos limitedAccess:Checking cos limitedAccess attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos limitedAccess attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos limitedAccess attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos limitedAccess attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos limitedAccess attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos limitedAccess attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos normal:Checking cos normal attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos normal attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos normal attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos normal except email zimlet:Checking cos normal except email zimlet attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal except email zimlet attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal except email zimlet attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos normal except email zimlet attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos normal except email zimlet attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos normal except email zimlet attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE------------------------------Upgrading cos sortation:Checking cos sortation attribute: zimbraFeatureModernVideoEnabled[11.0.0] skipping - already has value: FALSEChecking cos sortation attribute: zimbraFeatureDelayedIndexEnabled[11.0.0] skipping - already has value: FALSEChecking cos sortation attribute: zimbraFeatureModernChatEnabled[11.0.0] skipping - already has value: FALSEChecking cos sortation attribute: zimbraMailSieveScriptMaxSize[11.0.0] skipping - already has value: 0Checking cos sortation attribute: zimbraBlockEmailSendFromImapPop[11.0.0] skipping - already has value: FALSEChecking cos sortation attribute: zimbraFeatureCustomUIDEnabled[11.0.0] skipping - already has value: FALSE--------------done 27075--------------
Interestingly, I tried again adding an additional _ after the _GA
Code:
[zimbra@mail ~]$ zmjava com.zimbra.cs.account.ldap.upgrade.LdapUpgrade -b 27075 -v 10.0.5_GA_T100005C100005ITS
Will create multiple builds tomorrow with an extra _ in the name and try the process again.
By the way, this is on Rocky 8 (RHEL8_64 build). No idea about Debian/Ubuntu behaviour.
Statistics: Posted by liverpoolfcfan — Tue Apr 16, 2024 4:16 pm