Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
MID Server stuck in 30 minute restart loop when there are multiple JAR File records with attachments having the same file name - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • MID Server stuck in 30 minute restart loop when there are multiple JAR File records with attachments having the same file name
KB0754296

MID Server stuck in 30 minute restart loop when there are multiple JAR File records with attachments having the same file name


808 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

When there are multiple MID Server "JAR File" (ecc_agent_jar) records with the same file name attached, the MID Server can be stuck in a 30 minute restart loop.

The startup sequencer will run JAR file sync, and compare the file on the MID Server disk with the date in the non-matching record in the instance, and then re-download the same jar from the matching record, so that after restart nothing has changed and we repeat.

One scenario where this happens is if CyberArkIT test creates a new jar file for synch, when you already have an existing jar.

Steps to Reproduce

Create two JAR file records for the same filename. e.g. JavaPasswordSDK.jav
Start up a mid server.
It restarts endlessly with the following clues in the agent logs:

On MID Server startup:

06/19/19 11:08:15 (404) File sync worker: ecc_agent_jar Downloading D:\Mid_Server\agent\extlib\JavaPasswordSDK.jar from https://<instance_name>.service-now.com/sys_attachment.do?sys_id=04d6dbf96f374300c015f46abb3ee420
06/19/19 11:08:15 (748) File sync worker: ecc_agent_jar WARNING *** WARNING *** Could not complete file synchronization: 0
06/19/19 11:08:15 (748) File sync worker: ecc_agent_jar Finishing file synchronization: ecc_agent_jar
06/19/19 11:08:15 (748) File sync worker: ecc_agent_jar Setting countdown to 1800 seconds in com.service_now.mid.filesync.JarSyncer

30 minutes later:

06/19/19 06:01:34 (125) FileSyncer.1 Setting countdown to 150 seconds in com.service_now.mid.filesync.JarSyncer
06/19/19 06:01:35 (125) File sync worker: ecc_agent_jar Starting file synchronization: ecc_agent_jar
06/19/19 06:01:35 (297) File sync worker: ecc_agent_jar Deleting D:\Mid_Server\agent\extlib\JavaPasswordSDK.jar
06/19/19 06:01:35 (297) File sync worker: ecc_agent_jar Finishing file synchronization: ecc_agent_jar
06/19/19 06:01:36 (297) Wrapper-Restarter Running under Java version: 1.8.0_152, java PID: 2384, args: stop
06/19/19 06:01:36 (297) Wrapper-Restarter Stopping MID server

And then begin the startup again, and again...

Workaround

After carefully considering the severity and frequency of this problem, and risk of attempting a fix, it has been decided to not address this issue in any current or future releases. We do not make these decisions lightly, and we apologize for any inconvenience. If you have any questions regarding this problem, contact ServiceNow Technical Support.

Possible Workarounds.

  1. Deactivate the original JAR File record, keeping only the most recent active.
  2. If both JAR files are required, then rename one of them.

Related Problem: PRB719895

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.