<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari upgrade 2.1.1 to 2.4 ProvisionException in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/122856#M43147</link>
    <description>&lt;P&gt;@Edgar&lt;/P&gt;&lt;P&gt;This is kind of bug refer the link:-&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/AMBARI-17622" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-17622&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 03:13:06 GMT</pubDate>
    <dc:creator>ashneesharma88</dc:creator>
    <dc:date>2016-10-11T03:13:06Z</dc:date>
    <item>
      <title>Ambari upgrade 2.1.1 to 2.4 ProvisionException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/122855#M43146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem after upgrading Ambari from version 2.1.1 to 2.4. My HDP version is 2.3.2.0-2950. During command "ambari-server upgrade" I got the following error:&lt;/P&gt;&lt;PRE&gt;Upgrading database schema
Error output from schema upgrade command:
com.google.inject.ProvisionException: Guice provision errors:


1) null returned by binding at org.apache.ambari.server.state.ServiceComponentHostFactory.createExisting()
 but parameter 2 of org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.&amp;lt;init&amp;gt;() is not @Nullable
  while locating org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity annotated with @com.google.inject.assistedinject.Assisted(value=)
    for parameter 2 at org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.&amp;lt;init&amp;gt;(ServiceComponentHostImpl.java:805)
  while locating org.apache.ambari.server.state.ServiceComponentHost annotated with interface com.google.inject.assistedinject.Assisted


1 error
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
        at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
        at com.sun.proxy.$Proxy20.createExisting(Unknown Source)
        at org.apache.ambari.server.state.ServiceComponentImpl.&amp;lt;init&amp;gt;(ServiceComponentImpl.java:166)
        at org.apache.ambari.server.state.ServiceComponentImpl$$EnhancerByGuice$$e3b47c2a.&amp;lt;init&amp;gt;(&amp;lt;generated&amp;gt;)
        at org.apache.ambari.server.state.ServiceComponentImpl$$EnhancerByGuice$$e3b47c2a$$FastClassByGuice$$6e28fac3.newInstance(&amp;lt;generated&amp;gt;)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
        at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:260)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
        at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
        at com.sun.proxy.$Proxy19.createExisting(Unknown Source)
        at org.apache.ambari.server.state.ServiceImpl.&amp;lt;init&amp;gt;(ServiceImpl.java:163)
        at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$23f59064.&amp;lt;init&amp;gt;(&amp;lt;generated&amp;gt;)
        at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$23f59064$$FastClassByGuice$$9947c704.newInstance(&amp;lt;generated&amp;gt;)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
        at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:260)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
        at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
        at com.sun.proxy.$Proxy15.createExisting(Unknown Source)
        at org.apache.ambari.server.state.cluster.ClusterImpl.loadServices(ClusterImpl.java:456)
        at org.apache.ambari.server.state.cluster.ClusterImpl.getServices(ClusterImpl.java:1044)
        at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.addNewConfigurationsFromXml(AbstractUpgradeCatalog.java:384)
        at org.apache.ambari.server.upgrade.UpgradeCatalog212.executeDMLUpdates(UpgradeCatalog212.java:157)
        at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:899)
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:234)
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:353)


Adjusting ambari-server permissions and ownership...
Ambari Server 'upgrade' completed successfully.
&lt;/PRE&gt;&lt;P&gt;After that I can start ambari-server but only with option --skip-database-check which is not a good solution. I am using Postgres. The problem occurs also when I restore my db.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 18:51:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/122855#M43146</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-10-10T18:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari upgrade 2.1.1 to 2.4 ProvisionException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/122856#M43147</link>
      <description>&lt;P&gt;@Edgar&lt;/P&gt;&lt;P&gt;This is kind of bug refer the link:-&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/AMBARI-17622" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-17622&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 03:13:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/122856#M43147</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-10-11T03:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari upgrade 2.1.1 to 2.4 ProvisionException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/288079#M43148</link>
      <description>&lt;P&gt;I faced the same exception with Ambari 2.7.1 with different scenario. The scenario happens like that: I was trying to install Apache Solr with HDP Search as mpack. I wrongly installed the old version of mpack and when I restart the Ambari, Ambari couldn't open. I looked into ambari-server.log and the error was like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;An unexpected error occured during starting Ambari Server.&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;com.google.inject.ProvisionException: Unable to provision, see the following errors:&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;1) Error injecting method, java.lang.NullPointerException&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:250)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:123)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;while locating org.apache.ambari.server.api.services.AmbariMetaInfo&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;for field at org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:179)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:179)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;while locating org.apache.ambari.server.controller.AmbariServer&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;1 error&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1101)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;Caused by: java.lang.NullPointerException&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.stack.StackModule.mergeRoleCommandOrder(StackModule.java:1336)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.stack.StackModule.finalizeModule(StackModule.java:244)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.stack.StackManager.fullyResolveStacks(StackManager.java:413)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.stack.StackManager.&amp;lt;init&amp;gt;(StackManager.java:186)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at org.apache.ambari.server.stack.StackManager$$FastClassByGuice$$33e4ffe0.newInstance(&amp;lt;generated&amp;gt;)&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;I&gt;at&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to start ambari-server as you said with &lt;EM&gt;--skip-database-check&lt;/EM&gt; but it still couldn't open. Then I install the mpack with the same version before it down again, with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="code panel pdl conf-macro output-block"&gt;&lt;DIV class="codeContent panelContent pdl"&gt;&lt;DIV&gt;&lt;DIV class="syntaxhighlighter sh-rdark nogutter  bash"&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="container"&gt;&lt;DIV class="line number1 index0 alt2"&gt;sudo&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ambari-server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;install-mpack --mpack=/tmp/hdf-ambari-mpack-3.2.0.0-520.tar.gz --verbose&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I restart the ambari-server. Then ambari-server works without problem and I can access Ambari&amp;nbsp; from web. Perhaps it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 08:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-upgrade-2-1-1-to-2-4-ProvisionException/m-p/288079#M43148</guid>
      <dc:creator>mervezeybel</dc:creator>
      <dc:date>2020-01-22T08:44:24Z</dc:date>
    </item>
  </channel>
</rss>

