Error: "Failed to grab execution mutex. System error 258" During Installation
Symptom
When attempting to install, upgrade, or uninstall the EPM Agent, the process fails with the following error message:
Failed to grab execution mutex. System error 258
When the endpoint is in this state, the system cannot start any MSI installations, not just EPM.
Environment
EPM Windows Agent
-
Idira Endpoint Privilege Manager (EPM)
-
Windows Agent
-
Windows Installer (MSI)
Cause
This error indicates that the Windows Installer service (msiexec.exe) is currently busy processing another software installation or uninstallation in the background.
"System error 258" specifically translates to an OS-level wait timeout. The EPM installer attempts to get a lock on the global Windows Installer mutex to safely proceed. Because another process is actively holding that lock, the EPM installer eventually times out and fails.
Resolution
To resolve this issue, the Windows Installer service must finish its current task or be reset so it can release the mutex lock. Proceed with the following steps until the EPM installation succeeds:
-
Allow Background Tasks to Complete Another software update (such as a silent Windows Update or a third-party application deployment) may be legitimately running. Wait a few minutes to allow it to finish, then retry the EPM installation.
-
Terminate Hung Installer Processes If the previous installation is stuck, it will hold the lock indefinitely.
-
Open Windows Task Manager.
-
Go to the Details tab.
-
Locate any running
msiexec.exeprocesses and end the tasks.
-
-
Restart the Windows Installer Service
-
Open the Windows Services console (
services.msc). -
Locate the Windows Installer service.
-
Right-click and select Restart (or Start if it has stopped responding).
-
-
Reboot the Endpoint If the mutex lock remains stuck in the operating system and the above steps fail, reboot the Windows machine. This will completely clear the global execution mutex and allow fresh MSI installations to proceed.