You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "guluo (Jira)" <ji...@apache.org> on 2025/11/27 13:59:00 UTC
[jira] [Created] (AMBARI-26560) Unable to execute alert because of mistakenly ambari-agent cache_dir
guluo created AMBARI-26560:
------------------------------
Summary: Unable to execute alert because of mistakenly ambari-agent cache_dir
Key: AMBARI-26560
URL: https://issues.apache.org/jira/browse/AMBARI-26560
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Reporter: guluo
Assignee: guluo
ambari-agent periodically fails to execute several alerts, and the following error appears in /var/log/ambari-agent/ambari-alert.log
ERROR 2025-05-07 16:00:21,537 base_alert.py:141 - [Alert][ambari_agent_ulimit] Unable to execute alert. Unable to find 'alert_ulimit.py' as an absolute path or part of /tmp/stacks or /tmp/host_scripts
Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/ambari_agent/alerts/base_alert.py", line 120, in collect
res = self._collect()
File "/usr/lib/ambari-agent/lib/ambari_agent/alerts/script_alert.py", line 96, in _collect
cmd_module = self._load_source()
File "/usr/lib/ambari-agent/lib/ambari_agent/alerts/script_alert.py", line 176, in _load_source
self.path, self.stacks_dir, self.host_scripts_dir
The Reason:
ambari-agent.ini defines a custom cache_dir, but ambari-agent does not correctly update this value when loading configuration in AmbariConfig.py.
As a result, the agent always falls back to the default cache directory (/tmp), causing script lookup failures.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org