Failed to replace agent
When you try to connect to an endpoint after upgrading to a new ControlUp Real-Time Console version, the Console is trying to upgrade the agent but fails with error:
Failed to replace files to match version X. Failed to terminate the server agent machine X.
The reasons for this issue could be:
- WMI repository issue
To troubleshoot connection issues, you can use ControlUp's integrated diagnostics tools against the remote machine:
- Ping to test connectivity
- Admin$ to verify administrative rights
- Test WMI - to check the WMI repository
In case you have connection issues, refer to the Troubleshooting Connections Issues To Managed Computers article.
By running the Test WMI diagnostics, you are trying to execute the following command:
wmic /NODE:computername /user:domain\username SERVICE list Full
If it fails, try to run the command locally on the target endpoint to verify this is not a connection issue and is a WMI issue.
If you see that the WMI repository on the remote machine where you want to upgrade the agent is corrupt, we suggest you run
winmgmt /salvagerepository in a command prompt on the remote machine.
To verify the issue is resolved, you can run
wmic service list full and see if you get results back: