Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5186

On EC2, AMI for RHEL 5.7 does not start postgres on setup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      Using a RHEL-5.7_GA-x86_64-3-Hourly2 (ami-83573eea). Would not start postgres
      in "ambari-server setup".

      Enter advanced database configuration [y/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 1.
      REASON: Unable to start PostgreSQL server. Exiting

      So I manually started postgres, and then re-ran setup and it worked...

      [root@ip-10-38-174-183 ~]# service postgresql start
      Starting postgresql service: [ OK ]
      [root@ip-10-38-174-183 ~]# ambari-server setup -s
      Using python /usr/bin/python2.6
      Setup ambari-server
      Checking SELinux...
      SELinux status is 'enabled'
      SELinux mode is 'permissive'
      WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
      OK to continue [y/n] ?
      Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] ?
      Adjusting ambari-server permissions and ownership...
      Checking iptables...
      Checking JDK...
      Do you want to change Oracle JDK [y/n] ?
      Completing setup...
      Configuring database...
      Enter advanced database configuration [y/n] ?
      Default properties detected. Using built-in database.
      Checking PostgreSQL...
      Configuring local database...
      Connecting to the database. Attempt 1...
      Configuring PostgreSQL...
      Restarting PostgreSQL
      Ambari Server 'setup' completed successfully.
      [root@ip-10-38-174-183 ~]#

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: