<?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: While Setting up Ambari Server, getting the error: &amp;quot;exit code:3 ambari server not running&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159234#M121625</link>
    <description>&lt;P&gt;This solution worked for me. Thanks! &lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 03:13:35 GMT</pubDate>
    <dc:creator>Amanda</dc:creator>
    <dc:date>2017-02-10T03:13:35Z</dc:date>
    <item>
      <title>While Setting up Ambari Server, getting the error: "exit code:3 ambari server not running"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159231#M121622</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/6222-screen-shot-2016-08-01-at-160940.png"&gt;screen-shot-2016-08-01-at-160940.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 17:40:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159231#M121622</guid>
      <dc:creator>Abhirup</dc:creator>
      <dc:date>2016-08-01T17:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: While Setting up Ambari Server, getting the error: "exit code:3 ambari server not running"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159232#M121623</link>
      <description>&lt;P&gt;Could you follow below process&lt;/P&gt;&lt;P&gt;1)# sudo service postgresql start&lt;/P&gt;&lt;P&gt;Starting
postgresql service:[FAILED]&lt;/P&gt;&lt;P&gt;If failed &lt;/P&gt;&lt;P&gt;2))Moved
the data directory to &lt;/P&gt;&lt;P&gt;[root@centos
pgsql]# cd /var/lib/pgsql&lt;/P&gt;&lt;P&gt;[root@centos
pgsql]# mv -f data/ data_bkp&lt;/P&gt;&lt;P&gt;[root@centos
pgsql]# pwd&lt;/P&gt;&lt;P&gt;/var/lib/pgsql&lt;/P&gt;&lt;P&gt;3) Check how your postgresql address how its listening &lt;/P&gt;&lt;P&gt;$ grep listen /var/lib/pgsql/data/postgresql.conf&lt;/P&gt;&lt;P&gt;if 'localhost' change to "*" &lt;/P&gt;&lt;P&gt;4) Start the postgresql database&lt;/P&gt;&lt;P&gt;# sudo service postgresql start ( It should be ok) &lt;/P&gt;&lt;P&gt;Then proceed with install ambari and setup the server.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 17:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159232#M121623</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2016-08-01T17:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: While Setting up Ambari Server, getting the error: "exit code:3 ambari server not running"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159233#M121624</link>
      <description>&lt;P&gt;Hi Abhirup, &lt;/P&gt;&lt;P&gt;In order to solve this issue, please follow the below steps:-&lt;/P&gt;&lt;P&gt;1) Run your ambari-server setup in verbose and you will see where exactly this fails. &lt;/P&gt;&lt;P&gt;INFO: about to run command: /usr/bin/env service postgresql status &lt;/P&gt;&lt;P&gt;Running initdb: This may take upto a minute. &lt;/P&gt;&lt;P&gt;INFO: about to run command: /usr/bin/env service postgresql initdb &lt;/P&gt;&lt;P&gt;About to start PostgreSQL
INFO: about to run command: /usr/bin/env service postgresql status &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Exiting with exit code 3.
REASON: Unable to start PostgreSQL server. Exiting
Now, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you manually try and run the below command, you will get the exact cause of the issue. &lt;/P&gt;&lt;P&gt;
[root@robin-lab-1 ~]# /&lt;STRONG&gt;usr/bin/env service postgresql initdb
Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists
                                                           [FAILED] &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Solution: Go inside /var/lib/pgsql/, backup and remove the data folder and re-run the ambari-server setup. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 17:53:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159233#M121624</guid>
      <dc:creator>rpatel</dc:creator>
      <dc:date>2016-08-01T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: While Setting up Ambari Server, getting the error: "exit code:3 ambari server not running"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159234#M121625</link>
      <description>&lt;P&gt;This solution worked for me. Thanks! &lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 03:13:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/While-Setting-up-Ambari-Server-getting-the-error-quot-exit/m-p/159234#M121625</guid>
      <dc:creator>Amanda</dc:creator>
      <dc:date>2017-02-10T03:13:35Z</dc:date>
    </item>
  </channel>
</rss>

