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 on machine X"
The reasons for this issue could be:
- WMI repository issue
To troubleshoot the connection issue, please use ControlUp's diagnostics tools:
- Ping - to test connection
- Admin$ - to see if you have administrative rights on the target end point
- Test WMI - to check the target end point's WMI repository functionality
In case you have connection issue please refer to the article Troubleshooting Connections Issues To Managed Computers and if the issue is with admin access, please refer to Missing Admin Rights.
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 discover that the WMI repository is corrupt on the servers that would not allow a push of the new agent, we suggest you run 'winmgmt /salvagerepository' at an elevated command prompt.
To verify the issue is resolved you can run 'wmic service list full' and see that now it works.