<?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 Ambari server startup error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105788#M68666</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting following error message in the log file "/var/log/ambari-server/ambari-server.log" during ambari server startup.&lt;/P&gt;&lt;P&gt;I performed all the steps as mentioned in "https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_reference_guide/content/_using_ambari_with_postgresql.html".&lt;/P&gt;&lt;P&gt;14 Feb 2017 21:21:49,597  INFO [main] ClasspathScannerUtils:64 - Found class [class org.apache.ambari.server.audit.request.eventcreator.ViewPrivilegeEventCreator]
14 Feb 2017 21:21:51,229 ERROR [main] DBAccessorImpl:109 - Error while creating database accessor
org.postgresql.util.PSQLException: FATAL: database "AMBARIDATABASE" does not exist
        at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:574)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.&amp;lt;init&amp;gt;(AbstractJdbc2Connection.java:138)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.&amp;lt;init&amp;gt;(AbstractJdbc3Connection.java:29)
        at org.postgresql.jdbc3g.AbstractJdbc3gConnection.&amp;lt;init&amp;gt;(AbstractJdbc3gConnection.java:21)
        at org.postgresql.jdbc4.AbstractJdbc4Connection.&amp;lt;init&amp;gt;(AbstractJdbc4Connection.java:31)
        at org.postgresql.jdbc4.Jdbc4Connection.&amp;lt;init&amp;gt;(Jdbc4Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:410)
        at org.postgresql.Driver.connect(Driver.java:280)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at org.apache.ambari.server.orm.DBAccessorImpl.&amp;lt;init&amp;gt;(DBAccessorImpl.java:89)&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 03:55:59 GMT</pubDate>
    <dc:creator>manish_raj_anan</dc:creator>
    <dc:date>2017-02-15T03:55:59Z</dc:date>
    <item>
      <title>Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105788#M68666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting following error message in the log file "/var/log/ambari-server/ambari-server.log" during ambari server startup.&lt;/P&gt;&lt;P&gt;I performed all the steps as mentioned in "https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_reference_guide/content/_using_ambari_with_postgresql.html".&lt;/P&gt;&lt;P&gt;14 Feb 2017 21:21:49,597  INFO [main] ClasspathScannerUtils:64 - Found class [class org.apache.ambari.server.audit.request.eventcreator.ViewPrivilegeEventCreator]
14 Feb 2017 21:21:51,229 ERROR [main] DBAccessorImpl:109 - Error while creating database accessor
org.postgresql.util.PSQLException: FATAL: database "AMBARIDATABASE" does not exist
        at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:574)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.&amp;lt;init&amp;gt;(AbstractJdbc2Connection.java:138)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.&amp;lt;init&amp;gt;(AbstractJdbc3Connection.java:29)
        at org.postgresql.jdbc3g.AbstractJdbc3gConnection.&amp;lt;init&amp;gt;(AbstractJdbc3gConnection.java:21)
        at org.postgresql.jdbc4.AbstractJdbc4Connection.&amp;lt;init&amp;gt;(AbstractJdbc4Connection.java:31)
        at org.postgresql.jdbc4.Jdbc4Connection.&amp;lt;init&amp;gt;(Jdbc4Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:410)
        at org.postgresql.Driver.connect(Driver.java:280)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
        at org.apache.ambari.server.orm.DBAccessorImpl.&amp;lt;init&amp;gt;(DBAccessorImpl.java:89)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 03:55:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105788#M68666</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T03:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105789#M68667</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;It seems the postgres database with the name  "AMBARIDATABASE" is not existing in your environment.&lt;/P&gt;&lt;P&gt;Crosscheck your ambari server config file.  Usually the db name will be "ambari"&lt;/P&gt;&lt;P&gt;cat /etc/ambari-server/conf/ambari.properties | grep -i server.jdbc.database_name&lt;/P&gt;&lt;P&gt;server.jdbc.database_name=ambari&lt;/P&gt;&lt;P&gt;To verify the postgres database name available,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;[root@conf]# su - postgres&lt;/P&gt;&lt;P&gt;-bash-4.1$ psql&lt;/P&gt;&lt;P&gt;psql (8.4.20)&lt;/P&gt;&lt;P&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;postgres=# \list &lt;/P&gt;&lt;P&gt;                                  List of databases&lt;/P&gt;&lt;P&gt;  Name    |  Owner   | Encoding |  Collation  |    Ctype    |   Access privileges   &lt;/P&gt;&lt;P&gt;-----------+----------+----------+-------------+-------------+-----------------------&lt;/P&gt;&lt;P&gt; ambari    | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres&lt;/P&gt;&lt;P&gt;                                                            : postgres=CTc/postgres&lt;/P&gt;&lt;P&gt;                                                            : ambari=CTc/postgres&lt;/P&gt;&lt;P&gt; hive      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | &lt;/P&gt;&lt;P&gt; postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | &lt;/P&gt;&lt;P&gt; template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres&lt;/P&gt;&lt;P&gt;                                                            : postgres=CTc/postgres&lt;/P&gt;&lt;P&gt; template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres&lt;/P&gt;&lt;P&gt;                                                            : postgres=CTc/postgres&lt;/P&gt;&lt;P&gt;(5 rows)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 06:34:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105789#M68667</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-02-15T06:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105790#M68668</link>
      <description>&lt;P&gt;@Rajesh&lt;/P&gt;&lt;P&gt;I performed the check and I do see the database name "AMBARIDATABASE".&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# cat /etc/ambari-server/conf/ambari.properties | grep -i server.jdbc.database_name
server.jdbc.database_name=AMBARIDATABASE &lt;/P&gt;&lt;P&gt;[root@sandbox ~]# su - postgres &lt;/P&gt;&lt;P&gt;-bash-4.1$ psql &lt;/P&gt;&lt;P&gt;psql (8.4.20) &lt;/P&gt;&lt;P&gt;Type "help" for help. &lt;/P&gt;&lt;P&gt;postgres=# \list &lt;/P&gt;&lt;P&gt;                                     List of databases
      Name      |  Owner   | Encoding |  Collation  |    Ctype    |    Access privileges
----------------+----------+----------+-------------+-------------+------------------------- &lt;/P&gt;&lt;P&gt; ambari         | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres
                                                                  : postgres=CTc/postgres
                                                                  : ambari=CTc/postgres&lt;/P&gt;&lt;P&gt;ambaridatabase | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres
                                                                  : postgres=CTc/postgres
                                                                  : ambariuser=CTc/postgres &lt;/P&gt;&lt;P&gt; postgres       | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | &lt;/P&gt;&lt;P&gt; template0      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                                  : postgres=CTc/postgres &lt;/P&gt;&lt;P&gt; template1      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                                  : postgres=CTc/postgres &lt;/P&gt;&lt;P&gt;(5 rows) &lt;/P&gt;&lt;P&gt;postgres=#&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 06:41:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105790#M68668</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105791#M68669</link>
      <description>&lt;P&gt;@Manish&lt;/P&gt;&lt;P&gt;The database name is case sensitive.  &lt;/P&gt;&lt;P&gt;Can you change it to "ambaridatabase" in your /etc/ambari-server/conf/ambari.properties file and restart ambari server.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 06:47:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105791#M68669</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-02-15T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105792#M68670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I performed the modification as you mentioned but its still throwing the same error message.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:31:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105792#M68670</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T08:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105793#M68671</link>
      <description>&lt;P&gt;The interesting part - Even after changing the parameter to 'ambari' in the properties file, the error log is still throwing the error on 'AMBARIDATABASE'.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:35:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105793#M68671</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T08:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105794#M68672</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt;&lt;IMG src="https://ip1.i.lithium.com/03c92c84767a4a84a66ca1c778b7ab8e241c18ed/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f31333332626236363835373439613963633134643830323466313762313965343f643d6964656e7469636f6e26723d504726733d3234" alt="avatar image" style="width: 24px;" /&gt;&lt;/A&gt;&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt;Manish Anand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;what is the Ambari version? if it is 2.4.0 then kill Ambari server process and start again.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105794#M68672</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-02-15T08:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105795#M68673</link>
      <description>&lt;P&gt;The version is 2.4.0&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# rpm -qa|grep ambari-server
ambari-server-2.4.0.0-1225.x86_64&lt;/P&gt;&lt;P&gt;The ambari server isn't starting up. Which process do you you want me to kill??&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:43:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105795#M68673</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T08:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105796#M68674</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt;&lt;IMG src="https://ip1.i.lithium.com/03c92c84767a4a84a66ca1c778b7ab8e241c18ed/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f31333332626236363835373439613963633134643830323466313762313965343f643d6964656e7469636f6e26723d504726733d3234" alt="avatar image" style="width: 24px;" /&gt;&lt;/A&gt;&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt;Manish Anand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a bug in 2.4.0 - server some times does not get restart when you do "ambari-server stop"&lt;/P&gt;&lt;P&gt;Run&lt;/P&gt;&lt;P&gt;ps -aef | grep ambari-server&lt;/P&gt;&lt;P&gt;it gives you PID - kill -9 PID&lt;/P&gt;&lt;P&gt;then start again and check&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 08:47:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105796#M68674</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-02-15T08:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105797#M68675</link>
      <description>&lt;P&gt;There isn't any process running. What shall I do next?&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ps -aef | grep ambari-server &lt;/P&gt;&lt;P&gt;root     17872 17671  0 02:54 pts/0    00:00:00 grep ambari-server &lt;/P&gt;&lt;P&gt;[root@sandbox ~]#&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 10:56:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105797#M68675</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T10:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105798#M68676</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt;Manish Anand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you share/attach latest ambari-server.log (or error snippet)&lt;A href="https://community.hortonworks.com/users/15988/manishrajanand.html"&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 10:57:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105798#M68676</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-02-15T10:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105799#M68677</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11311/apappu.html" nodeid="11311"&gt;@apappu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12418-ambari-server-log.txt"&gt;ambari-server-log.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:08:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105799#M68677</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T11:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105800#M68678</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;Just for testing try the following:&lt;/P&gt;&lt;STRONG&gt;0. Stop ambari-server and take the Posgtres DB dump using "pg_dump" utility.
&lt;/STRONG&gt;&lt;PRE&gt;  ambari-server stop&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;   1. Rename the database "AMBARIDATABASE" to lowercase "ambari" (or something else like "xyzdb")&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;  alter database "AMBARIDATABASE" RENAME TO "ambari";&lt;/PRE&gt;&lt;P&gt;
&lt;STRONG&gt;2. Edit the "/etc/ambari-server/conf/ambari.properties" and change the database name to the new one.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;  server.jdbc.database_name=ambari &lt;/PRE&gt;&lt;P&gt;
&lt;STRONG&gt;3. Start ambari-server.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;  ambari-server start&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:21:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105800#M68678</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-15T11:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105801#M68679</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 performed the above steps. The server log is still showing the same error. I have in fact dropped the "AMBARIDATABASE". While performing the ambari server setup, I remember mentioning the "AMBARIDATABASE" and its schema and user details. Can you please let me know if this can be the issue and how to clean this up?&lt;/P&gt;&lt;P&gt;postgres=# drop database "ambaridatabase";
DROP DATABASE
postgres=# \list
                                  List of databases
   Name    |  Owner   | Encoding |  Collation  |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 ambari    | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres
                                                             : postgres=CTc/postgres
                                                             : ambari=CTc/postgres &lt;/P&gt;&lt;P&gt; postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | &lt;/P&gt;&lt;P&gt; template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres &lt;/P&gt;&lt;P&gt; template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
                                                             : postgres=CTc/postgres &lt;/P&gt;&lt;P&gt;(4 rows)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:06:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105801#M68679</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105802#M68680</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;You mentioned that &lt;EM&gt;[The server log is still showing the same error. I have in fact dropped the "AMBARIDATABASE".]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Are you checking the latest log?&lt;/P&gt;&lt;P&gt;Can you clear the  "/var/log/ambari-server/*" directory old logs and then freshly start ambari server sothat we can see the latest log.&lt;/P&gt;&lt;P&gt;Also please try the run the following command to findout from where is it getting that name ?&lt;/P&gt;&lt;PRE&gt;# cd /etc/ambari-server/conf/
# find . -name "*.*" | xargs grep -i "AMBARIDATABASE"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 12:31:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105802#M68680</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-15T12:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105803#M68681</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;Thanks for this step. I was able to locate the issue in "ambari.properties" file.&lt;/P&gt;&lt;P&gt;./ambari.properties:server.jdbc.rca.url=jdbc:postgresql://sandbox.hortonworks.com:5432/AMBARIDATABASE
./ambari.properties:server.jdbc.url=jdbc:postgresql://sandbox.hortonworks.com:5432/AMBARIDATABASE&lt;/P&gt;&lt;P&gt;I have modified the above entries and now pointing it to "ambari". The earlier error is resolved now but the server startup is failing in database consistency check. I have attached the log file for reference. Can you please take a look and let me know what might be missing?&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12513-ambari-server-check-database.txt"&gt;ambari-server-check-database.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:55:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105803#M68681</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-15T23:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105804#M68682</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 tried to start the ambari server by skipping database consistency check (ambari-server start --skip-database-check) and got the following error.&lt;/P&gt;&lt;P&gt;15 Feb 2017 17:53:38,668  INFO [main] AmbariServer:913 - Getting the controller
15 Feb 2017 17:53:41,285 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: ERROR: relation "metainfo" does not exist
  Position: 46
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" = ?)")
        at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
        at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:684)
        at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:560)
        at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2055)
        at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:570)&lt;/P&gt;&lt;P&gt;How can I fix these issues? Can you please help? Is skipping database consistency check recommended?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105804#M68682</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-16T02:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105805#M68683</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;looks like your tables are not visible to ambari user. please login with that user and then try to see if you can do "select * from metainfo"&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:08:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105805#M68683</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-02-16T02:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105806#M68684</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/11311/apappu.html" nodeid="11311"&gt;@apappu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have corrected the "ambari.properties" file with correct user and also updated the "password.dat" file.&lt;/P&gt;&lt;P&gt;Looks like the server started successfully but upon checking the server status the message says its not running.&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ambari-server start --skip-database-check &lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python &lt;/P&gt;&lt;P&gt;Starting ambari-server &lt;/P&gt;&lt;P&gt;Ambari Server running with administrator privileges. &lt;/P&gt;&lt;P&gt;Organizing resource files at /var/lib/ambari-server/resources... &lt;/P&gt;&lt;P&gt;Ambari Server is starting with the database consistency check skipped. Do not make any changes to your cluster topology or perform a cluster upgrade until you correct the database consistency issues. See "/var/log/ambari-server/ambari-server-check-database.log" for more details on the consistency issues.
Server PID at: /var/run/ambari-server/ambari-server.pid &lt;/P&gt;&lt;P&gt;Server out at: /var/log/ambari-server/ambari-server.out &lt;/P&gt;&lt;P&gt;Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.................... &lt;/P&gt;&lt;P&gt;Ambari Server 'start' completed successfully. &lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ambari-server status &lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python
Ambari-server status
Ambari Server not running. &lt;/P&gt;&lt;P&gt;Stale PID File at: /var/run/ambari-server/ambari-server.pid&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 03:22:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105806#M68684</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-16T03:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server startup error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105807#M68685</link>
      <description>&lt;P&gt;I verified the log file and got the following error message:&lt;/P&gt;&lt;P&gt;15 Feb 2017 19:23:32,044 ERROR [main] AmbariJpaLocalTxnInterceptor:180 - [DETAILED ERROR] Rollback reason:
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: ERROR: could not read block 0 of relation base/16384/16567: read only 0 of 8192 bytes
Error Code: 0
Call: SELECT cluster_id, current_cluster_state, current_stack_id FROM clusterstate WHERE (cluster_id = ?)
        bind =&amp;gt; [1 parameter bound]
Query: ReadObjectQuery(name="clusterStateEntity" referenceClass=ClusterStateEntity )&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 03:25:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-server-startup-error/m-p/105807#M68685</guid>
      <dc:creator>manish_raj_anan</dc:creator>
      <dc:date>2017-02-16T03:25:37Z</dc:date>
    </item>
  </channel>
</rss>

