Installed MID server but I'm getting a "duplicate name" error in the logs and the MID won't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 06:33 AM
I have a new, clean London dev instance and downloaded the mid, set up the install and it worked just fine. I gave my MID a totally unique name and it's logging in via my admin credential (I know, I know, but it's just a dev instance). I do the startup, the MID shows up in my instance, I validate, but then I get this:
10/30/18 09:14:51 (244) StartupSequencer WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.] in ensuring agent record on the instance. Retry...
10/30/18 09:14:51 (244) StartupSequencer Waiting to retry in 5 minutes. Attempt 1 of 3.
10/30/18 09:19:51 (879) StartupSequencer WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.] in ensuring agent record on the instance. Retry...
10/30/18 09:19:51 (880) StartupSequencer Waiting to retry in 5 minutes. Attempt 2 of 3.
10/30/18 09:24:52 (486) StartupSequencer WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.] in ensuring agent record on the instance. Retry...
10/30/18 09:24:52 (486) StartupSequencer Waiting to retry in 5 minutes. Attempt 3 of 3.
10/30/18 09:29:54 (424) StartupSequencer WARNING *** WARNING *** Encountered error: [An active MID Server with a duplicate name detected.] in ensuring agent record on the instance. Retry...
10/30/18 09:29:55 (210) StartupSequencer Stopping MID Server due to exceeding retry attempts.
Then it shuts down for good. I absolutely do not have another MID by the same name. I DO have another mid that still exists from a prior install, but it is confirmed that the service is inactive and definitely a different name.
Any ideas?
Edit: In the MID unresolved issues, this came up: "A MID Server with a duplicate name or sys_id was prevented from connecting. Install path: C:\agent-london. This issue must be manually resolved."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2018 08:37 AM
FWIW I tried updating Java to the newest 64-bit release. Same issue.
I had a coworker try to install a MID into my instance from HIS computer using the same MID zip. His was successful and has none of the errors I see. This leads me to believe it's something weird in my computer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2018 07:05 AM
Anyone have any ideas? This is still happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2018 05:56 AM
Hi Toby
I doubt that the issue could be related to the host machine... we have in the same system two MID servers (one for Evanios and one for Discovery).
The one dedicated to Evanios is OK, and the one dedicated to Discovery is showing the same problem than yours.
We've noticed that in our case, it occurs after an internal Java error (below I've added the extract...) and the server tries to restart itself.... not sure if in your case is the same (you are using Discovery as well or after an internal crash)...
Let's see if at least we found a pattern that help us to address it....
KR
Miguel
Here the log extract:
12/27/18 20:49:14 (809) SSHClientEngine WARNING *** WARNING *** Unexpectedly high SSHClientEngine select polling period: 9.0s 12/27/18 20:49:20 (903) ECCQueueMonitor.40 WARNING *** WARNING *** javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2018 03:26 PM
Seems to be related to the way how the MID server is stoped. If you set the server manually to "Down" before the MID is stated, it just starts fine.
Guess the SIGTERM or SIGINT is not properly catchend to first sync the stop status with ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2019 04:01 PM
Stumbled upon this issue, and found the solution and figured I would share as it was rather strange solution. The issue was the directory structure which apparently is what is set for mid_sys_id. For example:
I had 3 servers with a directory structure like this:
/opt/servicenow/mid/agent/<contents of extracted mid-london zip>
The mid server takes the directory "mid" and sets it as the mid_sys_id which was throwing the error above.
By renaming the "mid" directory to something like the hostname, it was able to fix the issue:
SERVER 1 ==> /opt/servicenow/wpos-u1604/agent
SERVER 2 ==> /opt/servicenow/ospos-u1604/agent
SERVER 3 ==> /opt/servicenow/webapp-00/agent
Hope this helps 🙂