Error while reinstalling MDM server

Read this page to troubleshoot the error while reinstalling an MDM server after uninstalling the same.

Problem

After uninstalling an MDM server from a RHEL VM, when a user tries to reinstall the same MDM server again, the WebUI throws the following error Something went wrong, the specified server already has keys uploaded and the WebUI action does not start.

Cause

If the credentials of the uninstalled MDM server are not removed automatically as expected, when the user tries to reinstall the same MDM server, this error is shown.

Solution

As a workaround, to fix this issue, after uninstalling MDM Server, complete the following steps:
  1. From WebUI, go to MCM > Admin.
  2. From the left navigation pane, explore MDM Plugins and select Remove Credentials.
  3. From the Remove Credentials drop down, select the MDM Server for which you want to remove the credentials.
  4. Click Delete.