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 EA311200D41 for ; Wed, 22 Nov 2017 11:29:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E8A61160BDA; Wed, 22 Nov 2017 10:29:10 +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 145F5160BFD for ; Wed, 22 Nov 2017 11:29:09 +0100 (CET) Received: (qmail 69560 invoked by uid 500); 22 Nov 2017 10:29:04 -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 69551 invoked by uid 99); 22 Nov 2017 10:29:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Nov 2017 10:29:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7A5C9180777 for ; Wed, 22 Nov 2017 10:29:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MySkt1dtK35D for ; Wed, 22 Nov 2017 10:29:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BBAC361174 for ; Wed, 22 Nov 2017 10:29:01 +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 117E7E257B for ; Wed, 22 Nov 2017 10:29:01 +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 68E16255AF for ; Wed, 22 Nov 2017 10:29:00 +0000 (UTC) Date: Wed, 22 Nov 2017 10:29:00 +0000 (UTC) From: "Andrii Tkach (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-22494) Unable to install the cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Nov 2017 10:29:11 -0000 [ https://issues.apache.org/jira/browse/AMBARI-22494?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrii Tkach updated AMBARI-22494: ---------------------------------- Attachment: AMBARI-22494_trunk.patch > Unable to install the cluster > ----------------------------- > > Key: AMBARI-22494 > URL: https://issues.apache.org/jira/browse/AMBARI-22494 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.6.0 > Reporter: amarnath reddy pappu > Assignee: Andrii Tkach > Attachments: AMBARI-22494.patch, AMBARI-22494_trunk.patch > > > Customer has installed Ambari 2.6 and trying to install the cluster. in t= he hosts page it keeps loading for hostcheck results and never loads/enable= s Next button. > It fails out with JS error like below, > {noformat} > ##=20 > Uncaught TypeError: _hostPackagesData.installedPackages.forEach is not a = function=20 > at Class. (app.js:40783)=20 > at Array.forEach ()=20 > at Class.parseHostCheckWarnings (app.js:40746)=20 > at Class.getHostInfoSuccessCallback (app.js:41079)=20 > at Class.opt.success (app.js:177567)=20 > at o (vendor.js:106)=20 > at Object.fireWith [as resolveWith] (vendor.js:106)=20 > at w (vendor.js:108)=20 > ##=20 > {noformat} > If the API response is like below, > {noformat} > { > "Requests" : { > "id" : 18, > "inputs" : "{\"jdk_location\":\"https://HOST:8443/resources/\",\"thre= shold\":\"20\",\"HAS_RESOURCE_FILTERS\":\"true\",\"check_execute_list\":\"l= ast_agent_env_check,installed_packages,existing_repos,transparentHugePage\"= }", > "request_status" : "COMPLETED" > }, > "tasks" : [ > { > "Tasks" : { > "command_detail" : "check_host ACTIONEXECUTE", > "error_log" : "/var/lib/ambari-agent/data/errors-178.txt", > "host_name" : "host.net", > "id" : 178, > "status" : "COMPLETED", > "stderr" : "2017-11-20 15:53:40,844 - There was an unknown error = while checking installed packages and existing repositories: list index out= of range\nTraceback (most recent call last):\n File \"/var/lib/ambari-age= nt/cache/custom_actions/scripts/check_host.py\", line 170, in actionexecute= \n installed_packages, repos =3D self.execute_existing_repos_and_install= ed_packages_check(config)\n File \"/var/lib/ambari-agent/cache/custom_acti= ons/scripts/check_host.py\", line 233, in execute_existing_repos_and_instal= led_packages_check\n installedPackages =3D self.pkg_provider.all_install= ed_packages()\n File \"/usr/lib/python2.6/site-packages/resource_managemen= t/core/providers/package/yumrpm.py\", line 222, in all_installed_packages\n= return self._get_installed_packages(None)\n File \"/usr/lib/python2.6/= site-packages/resource_management/core/providers/package/yumrpm.py\", line = 157, in _get_installed_packages\n packages =3D self._lookup_packages([AM= BARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packages\"= )\n File \"/usr/lib/python2.6/site-packages/resource_management/core/provi= ders/package/yumrpm.py\", line 191, in _lookup_packages\n if items[i + 2= ].find('@') =3D=3D 0:\nIndexError: list index out of range\nNo handlers cou= ld be found for logger \"ambari_agent.HostCheckReportFileHandler\"\nTraceba= ck (most recent call last):\n File \"/usr/lib/python2.6/site-packages/amba= ri_agent/HostCheckReportFileHandler.py\", line 74, in writeHostChecksCustom= ActionsFile\n items.append(itemDetail['name'])\nTypeError: string indice= s must be integers, not str", > "stdout" : "2017-11-20 15:53:39,422 - Host checks started.\n2017-= 11-20 15:53:39,422 - Check execute list: last_agent_env_check,installed_pac= kages,existing_repos,transparentHugePage\n2017-11-20 15:53:39,422 - Last Ag= ent Env check started.\n2017-11-20 15:53:39,469 - Last Agent Env check comp= leted successfully.\n2017-11-20 15:53:39,469 - Installed packages and exist= ing repos checks started.\n2017-11-20 15:53:40,844 - There was an unknown e= rror while checking installed packages and existing repositories: list inde= x out of range\nTraceback (most recent call last):\n File \"/var/lib/ambar= i-agent/cache/custom_actions/scripts/check_host.py\", line 170, in actionex= ecute\n installed_packages, repos =3D self.execute_existing_repos_and_in= stalled_packages_check(config)\n File \"/var/lib/ambari-agent/cache/custom= _actions/scripts/check_host.py\", line 233, in execute_existing_repos_and_i= nstalled_packages_check\n installedPackages =3D self.pkg_provider.all_in= stalled_packages()\n File \"/usr/lib/python2.6/site-packages/resource_mana= gement/core/providers/package/yumrpm.py\", line 222, in all_installed_packa= ges\n return self._get_installed_packages(None)\n File \"/usr/lib/pytho= n2.6/site-packages/resource_management/core/providers/package/yumrpm.py\", = line 157, in _get_installed_packages\n packages =3D self._lookup_package= s([AMBARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packa= ges\")\n File \"/usr/lib/python2.6/site-packages/resource_management/core/= providers/package/yumrpm.py\", line 191, in _lookup_packages\n if items[= i + 2].find('@') =3D=3D 0:\nIndexError: list index out of range\n2017-11-20= 15:53:40,845 - Transparent huge page check started.\n2017-11-20 15:53:40,8= 46 - Transparent huge page check completed.\n2017-11-20 15:53:40,847 - Host= checks completed.\n\nCommand completed successfully!\n", > "structured_out" : { > "installed_packages" : { > "exit_code" : 1, > "message" : "list index out of range" > }, > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)