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

Upgrade fails because of Stale alert definitions.

    XMLWordPrintableJSON

    Details

      Description

      Upgrade fails with below exception

      06 Nov 2017 04:31:26,826 ERROR [main] SchemaUpgradeHelper:437 - Exception occurred during upgrade, failed
      org.apache.ambari.server.AmbariException: Service not found, clusterName=testcluster, serviceName=GANGLIA
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:234)
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:424)
      Caused by: org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=testcluster, serviceName=GANGLIA
      	at org.apache.ambari.server.state.cluster.ClusterImpl.getService(ClusterImpl.java:864)
      	at org.apache.ambari.server.api.services.AmbariMetaInfo.reconcileAlertDefinitions(AmbariMetaInfo.java:1240)
      	at org.apache.ambari.server.upgrade.UpdateAlertScriptPaths.executeDMLUpdates(UpdateAlertScriptPaths.java:46)
      	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:938)
      	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:231)
      

      few users are reporting this problem -reporting these stale alert definitions in DBConsistency check would avoid upgrade failures.

        Attachments

          Activity

            People

            • Assignee:
              apappu@hortonworks.com amarnath reddy pappu
              Reporter:
              apappu@hortonworks.com amarnath reddy pappu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h
                5h