Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22544

Upgrade from Ambari 2.5.2 to 2.6.0 fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.1
    • 2.6.1
    • ambari-server
    • None

    Description

      When upgrading from Ambari 2.5.2 to Ambari 2.6.0, we hit this error preventing from completing the ambari-server upgrade.

      20 Nov 2017 11:39:08,115 ERROR [main] SchemaUpgradeHelper:202 - Upgrade failed.
      com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`ambari_01`.`clusters`, CONSTRAINT `FK_clusters_upgrade_id` FOREIGN KEY (`upgrade_id`) REFERENCES `upgrade` (`upgrade_id`))
      

      To get around this, he had to restore the db backup from 2.5.3 and adjust a table in mysql with ‘update clusters set upgrade_id = null’ so a record in the ‘upgrades’ table could be removed.

      Attachments

        Issue Links

          Activity

            People

              mpapirkovskyy Papirkovskyy Myroslav
              mpapirkovskyy Papirkovskyy Myroslav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: