<?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 unable to start postgres for ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/unable-to-start-postgres-for-ambari/m-p/154311#M116767</link>
    <description>&lt;P&gt;I am trying to start ambari and it fails while starting postgres on the sandbox.&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ambari-server restart
Using python  /usr/bin/python2
Restarting ambari-server Using python  /usr/bin/python2 Stopping ambari-server
Ambari Server is not running
Using python  /usr/bin/python2
Starting ambari-server
Ambari Server running with administrator privileges.
Running initdb: This may take upto a minute.
About to start PostgreSQL
ERROR: Exiting with exit code 3.
REASON: Unable to start PostgreSQL server. Status stopped. . Exiting&lt;/P&gt;&lt;P&gt;I tried to start postgres&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# service postgresql start
Starting postgresql service:                               [FAILED]&lt;/P&gt;&lt;P&gt;Then I ran a postgres status:&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# service postgresql status
postmaster is stopped&lt;/P&gt;&lt;P&gt;I am not sure how to start postmaster.  I tried &lt;/P&gt;&lt;P&gt;[root@sandbox ~]# pg_ctl start
pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 19:20:20 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-06-23T19:20:20Z</dc:date>
  </channel>
</rss>

