Support Questions
Find answers, ask questions, and share your expertise

Ambari server upgrade failed

I am Getting this issue when upgrading 2.4 to 2.6.

Ambari Server configured for Embedded Postgres. Confirm you have made a backup of the Ambari Server database [y/n] (y)? y
INFO: Upgrading database schema
INFO: Return code from schema upgrade command, retcode = 1
ERROR: Error executing schema upgrade, please check the server logs.
ERROR: Error output from schema upgrade command:
ERROR: Exception in thread "main" org.apache.ambari.server.AmbariException: Unable to find any CURRENT repositories.
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:203)
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:418)
Caused by: org.apache.ambari.server.AmbariException: Unable to find any CURRENT repositories.
        at org.apache.ambari.server.upgrade.UpgradeCatalog260.getCurrentVersionID(UpgradeCatalog260.java:510)
        at org.apache.ambari.server.upgrade.UpgradeCatalog260.executeDDLUpdates(UpgradeCatalog260.java:194)
        at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:923)
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:200)
        ... 1 more




ERROR: Ambari server upgrade failed. Please look at /var/log/ambari-server/ambari-server.log, for more details.
ERROR: Exiting with exit code 11.
REASON: Schema upgrade failed.


3 REPLIES 3

Re: Ambari server upgrade failed

Super Collaborator

I would look at /var/log/ambari-server/ambari-server.log next.

Re: Ambari server upgrade failed

@ @Sam Red Looks same issue as the one described here:

https://community.hortonworks.com/questions/154978/error-upgrade-ambari-to-260-with-hdp-and-hdf-inst...

You maybe hitting AMBARI-22469

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.

Re: Ambari server upgrade failed

Super Collaborator

You could also be seeing the issue described here:

https://community.hortonworks.com/questions/166963/upgrade-ambari-server-252-to-261.html

Basically, if your cluster's state is not CURRENT, the upgrade won't know what repository to work with when adjusting foreign keys and whatnot.