Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7B8A6200C00 for ; Wed, 18 Jan 2017 14:55:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7A298160B59; Wed, 18 Jan 2017 13:55:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C08EA160B3A for ; Wed, 18 Jan 2017 14:55:37 +0100 (CET) Received: (qmail 52808 invoked by uid 500); 18 Jan 2017 13:55:33 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 52001 invoked by uid 99); 18 Jan 2017 13:55:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 13:55:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EA83FC01E4 for ; Wed, 18 Jan 2017 13:55:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OEROeT8j99H0 for ; Wed, 18 Jan 2017 13:55:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4881F5F47A for ; Wed, 18 Jan 2017 13:55:28 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8BA68E0479 for ; Wed, 18 Jan 2017 13:55:27 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6C8DB24E02 for ; Wed, 18 Jan 2017 13:55:26 +0000 (UTC) Date: Wed, 18 Jan 2017 13:55:26 +0000 (UTC) From: "Vitaly Brodetskyi (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-19612) ambari-server setup failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Jan 2017 13:55:38 -0000 [ https://issues.apache.org/jira/browse/AMBARI-19612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitaly Brodetskyi updated AMBARI-19612: --------------------------------------- Attachment: AMBARI-19612.patch > ambari-server setup failed > -------------------------- > > Key: AMBARI-19612 > URL: https://issues.apache.org/jira/browse/AMBARI-19612 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.5.0 > Reporter: Vitaly Brodetskyi > Assignee: Vitaly Brodetskyi > Priority: Critical > Fix For: 2.5.0 > > Attachments: AMBARI-19612.patch > > > ambari-server setup failed > found this issue in logs > {noformat} > sing python /usr/bin/python > Setup ambari-server > Checking SELinux... > WARNING: Could not run /usr/sbin/sestatus: OK > Customize user account for ambari-server daemon [y/n] (n)? Adjusting ambari-server permissions and ownership... > Checking firewall status... > Checking JDK... > Do you want to change Oracle JDK [y/n] (n)? input not recognized, please try again: > Do you want to change Oracle JDK [y/n] (n)? Completing setup... > Configuring database... > Enter advanced database configuration [y/n] (n)? Configuring database... > Default properties detected. Using built-in database. > Configuring ambari database... > Checking PostgreSQL... > Configuring local database... > Configuring PostgreSQL... > Backup for pg_hba found, reconfiguration not required > Creating schema and user... > ERROR: Failed to execute command:['ambari-sudo.sh', 'su', 'postgres', '-', '--command=psql -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql -v username=\'"ambari"\' -v password="\'bigdata\'" -v dbname="ambari"'] > ERROR: stderr:could not change directory to "/root" > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? > ERROR: stdout: > process_pid=28571 > failed to execute queries ...retrying (1) > Creating schema and user... > ERROR: Failed to execute command:['ambari-sudo.sh', 'su', 'postgres', '-', '--command=psql -f /var/lib/ambari-server/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql -v username=\'"ambari"\' -v password="\'bigdata\'" -v dbname="ambari"'] > ERROR: stderr:could not change directory to "/root" > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? > ERROR: stdout: > process_pid=28580 > failed to execute queries ...retrying (2) > Creating schema and user... > ERROR: Exiting with exit code 2. > REASON: Running database init script failed. Exiting.{noformat} > The same result when try to do it manually -- This message was sent by Atlassian JIRA (v6.3.4#6332)