You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2014/03/24 16:42:45 UTC

[jira] [Resolved] (AMBARI-5186) On EC2, AMI for RHEL 5.7 does not start postgres on setup

     [ https://issues.apache.org/jira/browse/AMBARI-5186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Onischuk resolved AMBARI-5186.
-------------------------------------

    Resolution: Fixed

Committed to trunk

> On EC2, AMI for RHEL 5.7 does not start postgres on setup
> ---------------------------------------------------------
>
>                 Key: AMBARI-5186
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5186
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 1.5.0
>
>
> 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] (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] (y)?
>     Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] (n)?
>     Adjusting ambari-server permissions and ownership...
>     Checking iptables...
>     Checking JDK...
>     Do you want to change Oracle JDK [y/n] (n)?
>     Completing setup...
>     Configuring database...
>     Enter advanced database configuration [y/n] (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 ~]# 
>     



--
This message was sent by Atlassian JIRA
(v6.2#6252)