<h2>MID Server upgrade error "An active MID Server with a duplicate name detected" in agent logs</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-position: inside;"><li>During MID Server Upgrade, we see below error getting added to the agent logs file.<br /> <pre>10/19/19 01:46:08 (827) StartupSequencer User _mid_server_user_i has all necessary roles<br />10/19/19 01:46:08 (921) StartupSequencer Getting instance ACLs for table: ecc_agent<br />10/19/19 01:46:09 (358) StartupSequencer <span style="background-color: #ff9900;">WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.]</span><br />in ensuring agent record on the instance. Retry...<br />10/19/19 01:46:09 (358) StartupSequencer <span style="background-color: #99cc00;">Waiting to retry in 5 minutes. Attempt 1 of 3</span>. <br />10/19/19 01:51:09 (450) StartupSequencer <span style="background-color: #ff9900;">WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.]</span> <br />in ensuring agent record on the instance. Retry... <br />10/19/19 01:51:09 (450) StartupSequencer Waiting to retry in 5 minutes. Attempt 2 of 3.</pre> </li><li>This article will demonstrate the investigations and probable use cases, hence in the future, if a similar error occurs then this can be one of the causes and worth trying to fix.</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-position: inside;"><li>In General, there exist no mid servers which share the same name thus the error we see is for the same mid server which is upgrading. In order to fix this issue, below steps considered.<br /> <ul style="list-style-position: inside;"><li>Resolve all the issues present under "MID Server Issues" tab</li><li>Set the status of MID to down (if it is already not present.)</li><li>Restart the Mid Server Service.<br /><br /></li></ul> </li><li>Please review the below screenshot for the changes to be made.<br /><br /></li></ul> <p style="padding-left: 80px;"><img style="border: 2px solid black; align: baseline;" src="sys_attachment.do?sys_id=8440acc11b007414f34d33bc1d4bcb9e" width="743" height="500" align="baseline" border="2" /></p> <ul style="list-style-position: inside;"><li>Once the suggested changes are made and MID Server Service is restarted then MID Server will initiate the upgrade and gets completed successfully.</li></ul></section></div></article></div>