Ambari Forum

Unable to start PostgreSQL server

  • #52218
    Kevin Zhang

    I try to set up Ambari server on CentOs 6.2. The version of Ambari I ‘m installing is 1.5.1.

    I got error like following:

    “About to start PostgreSQL
    ERROR: Exiting with exit code 1.
    REASON: Unable to start PostgreSQL server. Exiting”

    I tried re-installing postgresql with command
    “yum install postgresql”

    But after that, i still got same error.

    Any ideas?


to create new topics or reply. | New User Registration

  • Author
  • #53947
    Vincent Wylenzek

    Hi Kevin,

    I am getting the same error (exit code 127) on RHEL 5.9 – Ambari 1.5.1:
    While installing Ambari-server on an offline RHEL 5.9 server through a Red Hat satellite server I am getting the issue below:

    Checking JDK…
    Do you want to change Oracle JDK [y/n] (n)? n
    Completing setup…
    Configuring database…
    Enter advanced database configuration [y/n] (n)? n
    Default properties detected. Using built-in database.
    Checking PostgreSQL…
    Running initdb: This may take upto a minute.
    About to start PostgreSQL
    ERROR: Exiting with exit code 127.
    REASON: Unable to start PostgreSQL server. Exiting

    PostgreSQL is successfully running, initdb works and the version is correct (installed by yum install ambari-server).
    Postgres has been installed by the default dir /var/lib/pgsql etc.

    Did you solve this issue?

    Jeff Sposetti

    If you run “service postgresql start”, what do you get?

    Jeff Sposetti

    Also, can you check the log file in here /var/lib/pgsql/data/pg_log and check the content in here /var/lib/pgsql/pgstartup.log ?

    Vincent Wylenzek

    –> In initdb is started with env in stead of /sbin/env, modified the .py script and it’s rocking now!

    Nilesh Dhamanekar

    Please see if /var/log has enough space. I got the above error as /var log was 100%.

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.