Unable to Configure HVR Agent for Setup Mode
Issue
When running the hvragentconfig command on a new Windows Server 2022 cluster as a domain service account, an "Access is denied" error appears. The error may include a message such as:
Delete of file ... failed after 10 EBUSY retries
Environment
- Product: Fivetran HVR (High-Volume Agent)
- OS: Windows Server 2022, clustered
- HVR installed and configured as a domain service account
Resolution
To resolve this issue, run the Command Prompt as Administrator:
- Fully close any open Command Prompt windows.
- Right-click Command Prompt and select Run as Administrator.
- Re-run the HVR configuration command:
hvragentconfig Setup_Mode_Timed_Until=now+1h.
If this doesn't resolve the issue, confirm that the service account:
- Is a member of the Administrators group.
- Has "Log on as a service" rights.
- Is not restricted by any local group policy or antivirus or EDR tools for file system changes in the install path.
If the issue persists, contact our support team.
Cause
This issue occurs when the domain service account running hvragentconfig doesn't have sufficient privileges to modify protected files such as hvragent.conf. Even when logged in as the service account, Windows restricts file operations unless the Command Prompt is explicitly run as Administrator.