Community Articles
Find and share helpful community-sourced technical articles
Labels (1)
Cloudera Employee

Error Stack is below.

Package Manager failed to install packages. Error: (4, 'Interrupted system call')
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/", line 376, in install_packages
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 155, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 124, in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 58, in action_upgrade
    self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 56, in upgrade_package
    return self.install_package(name, use_repos, skip_repos, is_upgrade)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 51, in install_package
    self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 86, in checked_call_with_retries
    return self._call_with_retries(cmd, is_checked=True, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 98, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 251, in _call
    ready, _, _ =, [], [], 1)
error: (4, 'Interrupted system call')

1) Navigate to "/etc/yum.repos.d"

a) Check if there are any other HDP repositories present other than current version and target version repos.

b) Remove all other HDP repositories from "/etc/yum.repos.d" directory.

c) Run "yum clean all"

d) retry the installation from Ambari UI.

2) Manually run "yum info <package name>" on the node and verify the package information is being listed within expected timeframe.

a) If response from yum is slow, please check the "load average" on the node using "top" command.

b) If the load average is high, that could cause the system to slow down and hence yum commands to hang.

c) Please identify the cause using ‘Sysstat’ Utilities.

3) Increase package installation timeout.

a) Login to Ambari server terminal session.

b) vi /etc/ambari-server/conf/

c) Increase the timeout value for "agent.package.install.task.timeout".

d) Run "ambari-server restart"