Anypoint Monitoring Directory Watcher service restart loop
Not fixed yet. Salesforce has scheduled a fix.
Summary
The AM agent scripts unconditionally use sudo for PID file operations and service management, even when already running as root. On RHEL 8 systems with the default Defaults requiretty sudoers policy, sudo fails because systemd services do not have a TTY. This prevents the PID file from being created, causing the am-directory-watcher service to enter an infinite restart loop.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Scheduled with 2 reports
Nov 30, 2026
Also open in Anypoint Monitoring
Custom Metrics not working on runtimes 4.7+
Solution ScheduledMuleSoft / Anypoint MonitoringWinter '25Reported Aug 14, 202434 reports34reports
False High Memory Utilization Alerts due to Dynamic JVM Heap Calculation
Solution ScheduledMuleSoft / Anypoint MonitoringReported Jul 23, 202519 reports19reports
Anypoint Monitoring landing page does not load correctly or getting stuck
Solution in ProgressMuleSoft / Anypoint MonitoringReported Sep 5, 202415 reports15reports
Anypoint Monitoring Custom Dashboards: Custom time range reverts to "Past 1 hour"
Solution ScheduledMuleSoft / Anypoint MonitoringWinter '27Reported Jun 5, 202613 reports13reports