Upgrade: Unable to find initial version: Difference between revisions

(Created page with "{{ZC}}{{Article Infobox|{{admin}}||{{ZCS 8.0}} {{ZCS 7.0}} {{ZCS 6.0}} {{ZCS 5.0}}|}} = Description = On upgrade, you get an upgrade error stating the following: ERROR: Una...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ZC}}{{Article Infobox|{{admin}}||{{ZCS 8.0}} {{ZCS 7.0}} {{ZCS 6.0}} {{ZCS 5.0}}|}}
{{BC|Certified}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=Upgrade: Unable to find initial version=
{{KB|{{ZC}}|{{ZCS 8.0}}|{{ZCS 7.0}}|}}
{{WIP}}


= Description =
= Description =
Line 136: Line 141:


----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
{{Article Footer|ZCS 8.0 ZCS 7.0 |04/04/2014}}
{{Article Footer|ZCS 8.0 ZCS 7.0|04/04/2014}}


[[Category:Troubleshooting Upgrade]]
[[Category:Troubleshooting Upgrade]]
[[Category:ZCS 8.0]]
[[Category:ZCS 8.0]]
[[Category:ZCS 7.0]]
[[Category:ZCS 7.0]]

Latest revision as of 02:05, 11 July 2015

Upgrade: Unable to find initial version

   KB 20894        Last updated on 2015-07-11  




0.00
(0 votes)


Description

On upgrade, you get an upgrade error stating the following:

ERROR: Unable to find initial version to upgrade from.
      This indicates a corrupted /opt/zimbra/.install_history file.
      DO NOT ATTEMPT UPGRADING AGAIN UNTIL THE FILE IS FIXED.
UPGRADE FAILED - exiting.

Problem

Upgrade fails with this type of error:

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save

  HOSTNAME=mail.example.com
  LDAPHOST=mail.example.com
  LDAPPORT=389
  SNMPTRAPHOST=mail.example.com
  SMTPSOURCE=admin@mail.example.com
  SMTPDEST=admin@mail.mail.example.com
  SNMPNOTIFY=yes
  SMTPNOTIFY=yes
  LDAPROOTPW=abcdef0123
  LDAPZIMBRAPW=abcdef0123
  LDAPPOSTPW=abcdef0123
  LDAPREPPW=abcdef0123
  LDAPAMAVISPW=abcdef0123
  LDAPNGINXPW=abcdef0123

Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done Operations logged to /tmp/zmsetup.04042014-193226.log Upgrading from to 8.0.7_GA_6020 Stopping zimbra services...done. Starting mysql...done. ERROR: Unable to find initial version to upgrade from.

      This indicates a corrupted /opt/zimbra/.install_history file.
      DO NOT ATTEMPT UPGRADING AGAIN UNTIL THE FILE IS FIXED.

UPGRADE FAILED - exiting.

Solution

The file /opt/zimbra/.install_history is damaged. After the CONFIGURED section, the .install_history must contain lines that state "CONFIGURED END" and "CONFIG SESSION COMPLETE"

For example:

1346131288: CONFIGURED END
1346131288: CONFIG SESSION COMPLETE

There may also be other problems for a damaged or missing .install_history file. A full file example is provided below.

.install_history example

Following is a full example of the required lines for the most recent upgrade in .install_history. The specific lines may vary for each upgrade, but in general you should see an "INSTALL" section followed by a "CONFIGURED" section:

1391146320: INSTALL SESSION START
1391146365: UPGRADED zimbra-core-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146374: UPGRADED zimbra-ldap-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146386: UPGRADED zimbra-logger-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146401: UPGRADED zimbra-mta-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146406: UPGRADED zimbra-snmp-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146450: UPGRADED zimbra-store-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146460: UPGRADED zimbra-apache-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146467: UPGRADED zimbra-spell-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146474: UPGRADED zimbra-convertd-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146479: UPGRADED zimbra-memcached-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146484: UPGRADED zimbra-proxy-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146490: UPGRADED zimbra-archiving-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146490: INSTALL SESSION COMPLETE
1390711250: CONFIG SESSION START
1390711250: CONFIGURED BEGIN
1390711272: CONFIGURED configLCValues
1390711289: CONFIGURED configCASetup
1390711309: CONFIGURED configCreateCert
1390711325: CONFIGURED configInstallCertStore
1390711325: CONFIGURED configInstallCertMTA
1390711325: CONFIGURED configInstallCertLDAP
1390711325: CONFIGURED configInstallCertProxy
1390711363: CONFIGURED configSetupLdap
1390711373: CONFIGURED configCreateServerEntry
1390711386: CONFIGURED configSaveCA
1390711395: CONFIGURED configSaveCert
1390711399: CONFIGURED configSpellServer
1390711411: CONFIGURED configSetServicePorts
1390711505: CONFIGURED configSetInstalledSkins
1390711520: CONFIGURED zimbraFeatureTasksEnabled
1390711525: CONFIGURED zimbraFeatureBriefcasesEnabled
1390711574: CONFIGURED configSetMtaAuthHost
1390711579: CONFIGURED zimbraPrefTimeZoneId
1390711602: CONFIGURED configInitMta
1390711612: CONFIGURED configSetEnabledServices
1390711721: CONFIGURED configCreateDomain
1390711750: CONFIGURED configInitSql
1390711757: CONFIGURED configInitLogger
1390711760: CONFIGURED configInitSnmp
1390711770: CONFIGURED configInitIM
1390711778: CONFIGURED setupSyslog
1390712085: CONFIGURED configInstallZimlets
1390712137: CONFIGURED setupCrontab
1390712156: CONFIGURED END
1391146484: UPGRADED zimbra-proxy-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146490: UPGRADED zimbra-archiving-8.0.6_GA_5922.RHEL6_64-20131203103753.x86_64.rpm
1391146490: INSTALL SESSION COMPLETE
1391146498: CONFIG SESSION START
1391146498: CONFIGURED BEGIN
1391146534: CONFIGURED LdapUpgraded8.0.0_BETA3
1391148313: CONFIGURED configLCValues
1391148313: CONFIGURED configInitCore
1391148319: CONFIGURED configCASetup
1391148352: CONFIGURED configCreateCert
1391148368: CONFIGURED configInstallCertStore
1391148382: CONFIGURED configInstallCertMTA
1391148424: CONFIGURED configInstallCertLDAP
1391148438: CONFIGURED configInstallCertProxy
1391148495: CONFIGURED configSetupLdap
1391148518: CONFIGURED configCreateServerEntry
1391148532: CONFIGURED configSaveCA
1391148547: CONFIGURED configSaveCert
1391148553: CONFIGURED configSpellServer
1391148571: CONFIGURED configSetServicePorts
1391148582: CONFIGURED zimbraPrefUseKeyboardShortcuts
1391148598: CONFIGURED zimbraFeatureTasksEnabled
1391148609: CONFIGURED zimbraFeatureBriefcasesEnabled
1391148652: CONFIGURED configSetMtaAuthHost
1391148658: CONFIGURED zimbraPrefTimeZoneId
1391148668: CONFIGURED configInitMta
1391148695: CONFIGURED configSetEnabledServices
1391148719: CONFIGURED configCreateDomain
1391148719: CONFIGURED configInitSql
1391148732: CONFIGURED configInitLogger
1391148738: CONFIGURED configInitSnmp
1391148746: CONFIGURED setupSyslog
1391149194: CONFIGURED configInstallZimlets
1391149255: CONFIGURED setupCrontab
1391149272: CONFIGURED END
1391149272: CONFIG SESSION COMPLETE

Verified Against: ZCS 8.0 ZCS 7.0 Date Created: 04/04/2014
Article ID: https://wiki.zimbra.com/index.php?title=Upgrade:_Unable_to_find_initial_version Date Modified: 2015-07-11



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search