<?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 server fails to start in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110296#M73144</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; In my case, when I experienced the error it was because my ambari database user did not have any privileges on the ambari database. (Postgresql 9.5) I added the ambari role to postgres role and  it worked.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 19:21:51 GMT</pubDate>
    <dc:creator>omwengan</dc:creator>
    <dc:date>2018-08-15T19:21:51Z</dc:date>
    <item>
      <title>Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110284#M73132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I downloaded the sandbox from Hortonworks site and installed it successfully. As the ambari server wasn't running automatically, I installed the ambari server through command line and tried to start the server.&lt;/P&gt;&lt;P&gt;I am receiving the following error in the server log. I did connect using the same user and performed select on table successfully that is mentioned in the log. Any help is much appreciated.&lt;/P&gt;&lt;P&gt;16 Feb 2017 18:35:13,319  INFO [main] AmbariServer:913 - Getting the controller
16 Feb 2017 18:35:15,883 ERROR [main] AmbariServer:927 - Failed to run the Ambari Server
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: &lt;STRONG&gt;ERROR: could not read block 0 of relation base/16384/16953: read only 0 of 8192 bytes&lt;/STRONG&gt;
&lt;STRONG&gt;Error Code: 0
Call: SELECT "metainfo_key", "metainfo_value" FROM metainfo WHERE ("metainfo_key" = ?)
        bind =&amp;gt; [1 parameter bound]
Query: ReadObjectQuery(name="readMetainfoEntity" referenceClass=MetainfoEntity sql="SELECT "metainfo_key", "metainfo_value" FROM metainfo WHERE ("metainfo_key" = ?)")&lt;/STRONG&gt;
        at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
        at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:684)&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# psql -U ambari -d ambari; &lt;/P&gt;&lt;P&gt;Password for user ambari: &lt;/P&gt;&lt;P&gt;psql (8.4.20)
Type "help" for help. &lt;/P&gt;&lt;P&gt;ambari=&amp;gt; SELECT "metainfo_key", "metainfo_value" FROM metainfo; &lt;/P&gt;&lt;P&gt;  metainfo_key | metainfo_value &lt;/P&gt;&lt;P&gt;--------------+---------------- &lt;/P&gt;&lt;P&gt;(0 rows)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 00:16:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110284#M73132</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T00:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110285#M73133</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;@Manish Anand&lt;/A&gt;
"metainfo" table should contain the ambari version and the HDP/HDP-UTIL repository informations.  In your case it seems to be missing.&lt;/P&gt;&lt;P&gt;But the error &lt;EM&gt;&lt;STRONG&gt;"ERROR: could not read block 0 of relation base/16384/16953: read only 0 of 8192 bytes Error Code:" &lt;/STRONG&gt;&lt;/EM&gt;indicates more of a Database issue, Not directly related to ambari.&lt;/P&gt;&lt;P&gt;If it is a test system then may be you should try to recover any old ambari DB dump if you already have it.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:09:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110285#M73133</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T09:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110286#M73134</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Would it be possible for you to provide me the ambari version and the HDP/HDP-UTIL repository information so that I can insert it into "metainfo" and test again?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:33:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110286#M73134</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110287#M73135</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988" target="_blank"&gt;@Manish Anand
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some default values you can find from the SQL files like:&lt;/P&gt;&lt;PRE&gt;# grep -A3 'INSERT INTO metainfo'  /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
INSERT INTO metainfo(metainfo_key, metainfo_value) VALUES
('version','2.4.2');
COMMIT;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;However i till believe that there is a Database Corruption based on the error message "&lt;EM&gt;&lt;STRONG&gt;could not read block 0 of relation base/16384/16953: read only&lt;/STRONG&gt;&lt;/EM&gt;".  So i guess even if you restore that particular table still you will be facing the same issue, As "metainfo" is one of the first table that ambari looks at during the start.... so later you might find the same issue with other tables as well.&lt;/P&gt;&lt;P&gt;I will suggest if you have any prior DB dump then try to recover it.&lt;/P&gt;&lt;P&gt;- My "metainfo" table entry might not help... but sharing to show how it looks like normally:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12612-metainfo.png" style="width: 1656px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23320iE0989C7E6090FF94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12612-metainfo.png" alt="12612-metainfo.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.
&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988" target="_blank"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:27:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110287#M73135</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-19T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110288#M73136</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I do agree to your point that database is corrupted. I tried performing the insert to metainfo and received the same error:&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; INSERT INTO metainfo(metainfo_key, metainfo_value) VALUES ('version','2.4.0'); &lt;/P&gt;&lt;P&gt;ERROR:  could not read block 0 of relation base/16384/16953: read only 0 of 8192 bytes &lt;/P&gt;&lt;P&gt;How shall I proceed as I don't have any prior DB dump?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:55:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110288#M73136</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110289#M73137</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;@Manish Anand
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Without having an earlier DB dump it is hard to recover the DB.&lt;/P&gt;&lt;P&gt;However it is good that we isolated that the issue is actually with the "Postgres", Not with ambari.  Postgres forums might have some quick workarounds for such corruption scenarios to fix the DB.&lt;/P&gt;&lt;P&gt;From Ambari side i do not think we have much to do.   &lt;/P&gt;&lt;P&gt;If your cluster is just a test cluster (with minimal configuration) then may be you can do recreate fresh cluster.  Or if you have any other cluster at your end then may be you can try recovering the entries on "metainfo"   (it might help if only the "metainfo" table is corrupted)&lt;/P&gt;&lt;P&gt;I will share if i find something from Postgres side.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:59:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110289#M73137</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T11:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110290#M73138</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;@Manish Anand&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Also please see if you can recreate the index on metainfo table.   Something like described in: &lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/6895736/error-could-not-read-block-4707-of-relation-1663-16384-16564-success"&gt;http://stackoverflow.com/questions/6895736/error-could-not-read-block-4707-of-relation-1663-16384-16564-success&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:02:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110290#M73138</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T12:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110291#M73139</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't see any index defined on the metainfo table. How about migrating to MySQL and performing the ambari setup? Any suggestion?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:24:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110291#M73139</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T12:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110292#M73140</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;@Manish Anand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In MySQL also you will have no data ... because you do not have a dump. (Hence using MySQL / Postgres both are same in this scenario)&lt;/P&gt;&lt;P&gt;The current cluster information is anyway lost due to postgres table/db corruption.   In this case you can try running the following command to reset postgres ambari DB &lt;EM&gt;&lt;STRONG&gt;(it will clear all previous data)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;ambari-server reset&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:38:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110292#M73140</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110293#M73141</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I have performed the ambari server reset. What shall I do next for configuring the Ambari server and running the cluster wizard.?&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ambari-server reset &lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python
Resetting ambari-server
**** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard. &lt;/P&gt;&lt;P&gt;Are you SURE you want to perform the reset [yes/no] (no)? yes &lt;/P&gt;&lt;P&gt;Confirm server reset [yes/no](no)? yes &lt;/P&gt;&lt;P&gt;Resetting the Server database...
Connecting to local database...done. &lt;/P&gt;&lt;P&gt;WARNING: Non critical error in DDL, use --verbose for more information
Ambari Server 'reset' completed with warnings. &lt;/P&gt;&lt;P&gt;[root@sandbox ~]#&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:48:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110293#M73141</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110294#M73142</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;@Manish Anand
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Start ambari-server and then you should be able to now, login to ambari and then setup cluster.
&lt;A rel="user" href="https://community.cloudera.com/users/15988/manishrajanand.html" nodeid="15988"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:51:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110294#M73142</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110295#M73143</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The server is up and running and I am able to open the ambari login page. Thanks a lot and I appreciate you for all the guidance you provided.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 12:55:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110295#M73143</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-17T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server fails to start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110296#M73144</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; In my case, when I experienced the error it was because my ambari database user did not have any privileges on the ambari database. (Postgresql 9.5) I added the ambari role to postgres role and  it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:21:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-fails-to-start/m-p/110296#M73144</guid>
      <dc:creator>omwengan</dc:creator>
      <dc:date>2018-08-15T19:21:51Z</dc:date>
    </item>
  </channel>
</rss>

