You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "amarnath reddy pappu (JIRA)" <ji...@apache.org> on 2017/11/21 23:20:00 UTC
[jira] [Created] (AMBARI-22494) Unable to install the cluster
amarnath reddy pappu created AMBARI-22494:
---------------------------------------------
Summary: 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
Customer has installed Ambari 2.6 and trying to install the cluster. in the hosts page it keeps loading for hostcheck results and never loads/enables Next button.
It fails out with JS error like below,
{noformat}
##
Uncaught TypeError: _hostPackagesData.installedPackages.forEach is not a function
at Class.<anonymous> (app.js:40783)
at Array.forEach (<anonymous>)
at Class.parseHostCheckWarnings (app.js:40746)
at Class.getHostInfoSuccessCallback (app.js:41079)
at Class.opt.success (app.js:177567)
at o (vendor.js:106)
at Object.fireWith [as resolveWith] (vendor.js:106)
at w (vendor.js:108)
##
{noformat}
If the API response is like below,
{noformat}
{
"Requests" : {
"id" : 18,
"inputs" : "{\"jdk_location\":\"https://HOST:8443/resources/\",\"threshold\":\"20\",\"HAS_RESOURCE_FILTERS\":\"true\",\"check_execute_list\":\"last_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-agent/cache/custom_actions/scripts/check_host.py\", line 170, in actionexecute\n installed_packages, repos = self.execute_existing_repos_and_installed_packages_check(config)\n File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 233, in execute_existing_repos_and_installed_packages_check\n installedPackages = self.pkg_provider.all_installed_packages()\n File \"/usr/lib/python2.6/site-packages/resource_management/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 = self._lookup_packages([AMBARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packages\")\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('@') == 0:\nIndexError: list index out of range\nNo handlers could be found for logger \"ambari_agent.HostCheckReportFileHandler\"\nTraceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/ambari_agent/HostCheckReportFileHandler.py\", line 74, in writeHostChecksCustomActionsFile\n items.append(itemDetail['name'])\nTypeError: string indices 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_packages,existing_repos,transparentHugePage\n2017-11-20 15:53:39,422 - Last Agent Env check started.\n2017-11-20 15:53:39,469 - Last Agent Env check completed successfully.\n2017-11-20 15:53:39,469 - Installed packages and existing repos checks started.\n2017-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-agent/cache/custom_actions/scripts/check_host.py\", line 170, in actionexecute\n installed_packages, repos = self.execute_existing_repos_and_installed_packages_check(config)\n File \"/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py\", line 233, in execute_existing_repos_and_installed_packages_check\n installedPackages = self.pkg_provider.all_installed_packages()\n File \"/usr/lib/python2.6/site-packages/resource_management/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 = self._lookup_packages([AMBARI_SUDO_BINARY, \"yum\", \"list\", \"installed\"], \"Installed Packages\")\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('@') == 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,846 - 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)