Notifications

134 views

Description

Symptoms

MID Server Service Starts but MID Server Status shows as Down. When starting your MID Server you see the following in the agent log

 

03/28/19 08:20:53 (707) MIDServer SEVERE *** ERROR *** Unexpected exception, terminating the MID server

java.lang.RuntimeException: Unable to unsecure parameter mid.instance.password: Problem while decrypting

        at com.service_now.mid.services.Config.getProperty(Config.java:509)

        at com.service_now.mid.services.Config.getProperty(Config.java:535)

        at com.service_now.mid.services.Config$InstanceConnectionConfig.getUserPassword(Config.java:843)

        at com.service_now.mid.Instance.getUserPassword(Instance.java:537)

        at com.service_now.mid.Instance.setupFactory(Instance.java:486)

        at com.service_now.mid.Instance.init(Instance.java:74)

        at com.service_now.mid.services.Instances.ensurePrimaryInstance(Instances.java:101)

        at com.service_now.mid.services.Instances.ensureInstances(Instances.java:89)

        at com.service_now.mid.services.Instances.getPrimaryInstance(Instances.java:62)

        at com.service_now.mid.probe.event.RestCallerImpl.<init>(RestCallerImpl.java:39)

        at com.service_now.mid.probe.event.SNEventBulkSender.startSending(SNEventBulkSender.java:268)

        at com.service_now.mid.probe.event.SNEventBulkSender.<init>(SNEventBulkSender.java:149)

        at com.service_now.mid.MIDModule.configure(MIDModule.java:52)

        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)

        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)

        at com.google.inject.spi.Elements.getElements(Elements.java:101)

        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)

        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)

        at com.google.inject.Guice.createInjector(Guice.java:95)

        at com.google.inject.Guice.createInjector(Guice.java:72)

        at com.google.inject.Guice.createInjector(Guice.java:62)

        at com.service_now.mid.MIDServer.createInjector(MIDServer.java:267)

        at com.service_now.mid.MIDServer.run(MIDServer.java:196)

        at com.service_now.mid.Main.runMID(Main.java:74)

        at com.service_now.mid.Main.handleStart(Main.java:33)

        at com.service_now.mid.Main.main(Main.java:27)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:405)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.IllegalStateException: Problem while decrypting

        at com.glide.util.AESCodec.decrypt(AESCodec.java:227)

        at com.service_now.mid.services.config.DefaultMidServerEncrypter.decrypt(DefaultMidServerEncrypter.java:63)

        at com.service_now.mid.services.config.DefaultMidServerEncrypter.decrypt(DefaultMidServerEncrypter.java:45)

        at com.service_now.mid.services.config.DefaultSecuredConfigProvider.unsecuredParameterValue(DefaultSecuredConfigProvider.java:54)

        at com.service_now.mid.services.Config.getProperty(Config.java:506)

        ... 31 more

 

Cause

There is a problem with the password in the config.xml file

Resolution

1. Open the config.xml file

2. Re enter the user's password. (By default, this will be encrypted after you restart the service) 

3. Start or Restart the MID Server service.

 

What you should be seeing from a normal startup without this issue is as follows:

03/26/19 11:37:40 (297) MIDServer Creating injector...
03/26/19 11:37:40 (815) MIDServer Using configuration: C:\ServiceNowTemp\agent\config.xml
03/26/19 11:37:40 (925) MIDServer Logger config: root=INFO
03/26/19 11:37:40 (925) MIDServer Refreshing LoggerFactory cache
03/26/19 11:37:41 (018) MIDServer Loaded credentials provider: com.service_now.mid.keypairs.provider.standard.StandardKeyPairsProvider
03/26/19 11:37:41 (034) MIDServer ThreadPool-Interactive started with corePoolSize: 10, maxPoolSize: 10, maximumQueueSize: 40
03/26/19 11:37:41 (034) MIDServer ThreadPool-Expedited started with corePoolSize: 20, maxPoolSize: 20, maximumQueueSize: 400
03/26/19 11:37:41 (034) MIDServer ThreadPool-Standard started with corePoolSize: 25, maxPoolSize: 25, maximumQueueSize: 500
03/26/19 11:37:41 (034) MIDServer ExtensionContainer ThreadPool started with corePoolSize: 25, maximumPoolSize: 25, maximumQueueSize: 500
03/26/19 11:37:44 (837) MIDServer Setting basic authentication with user admin
03/26/19 11:37:45 (134) MIDServer MIDCredentialsConfigProvider initialized with com.service_now.mid.creds.provider.standard.StandardCredentialsProvider
03/26/19 11:37:45 (244) MIDServer MID Server starting
03/26/19 11:37:45 (275) MIDServer Agent home path: C:\ServiceNowTemp\agent
03/26/19 11:37:45 (478) MIDServer MID Server started

Article Information

Last Updated:2019-08-02 20:47:32
Published:2019-03-29