Midserver down issue

Rajesh M1
Giga Guru

Hello Team,

I am facing issue with mid-server. once we start the mid-server, status changes to up but within no time it again changes back to down state.

Below are the latest log statements from agentlog file:

06/01/16 11:27:06 (752) ECCSender.1 Sending ecc_queue.1550b43a3190000001.xml

06/01/16 11:27:07 (783) ECCSender.1 Sending ecc_queue.1550b43a4900000001.xml

06/01/16 11:27:08 (096) ECCSender.1 Sending ecc_queue.1550b43a5c90000001.xml

06/01/16 11:27:08 (424) ECCSender.1 Sending ecc_queue.1550b43a6b30000001.xml

06/01/16 11:27:08 (752) ECCSender.1 Sending ecc_queue.1550b43a8f50000001.xml

06/01/16 11:27:09 (127) ECCSender.1 Sending ecc_queue.1550b43ab370000001.xml

06/01/16 11:27:09 (439) ECCSender.1 Sending ecc_queue.1550b45a2420000001.xml

06/01/16 11:27:09 (752) ECCSender.1 Sending ecc_queue.1550b45a87c0000001.xml

06/01/16 11:27:10 (017) ECCSender.1 Sending ecc_queue.1550b45aa8f0000001.xml

06/01/16 11:27:10 (580) ECCSender.1 Sending ecc_queue.1550b45ac450000001.xml

06/01/16 11:27:11 (299) WrapperListener_stop_runner Running under Java version: 1.6.0_45, java PID: 7900, args: stop

06/01/16 11:27:11 (299) WrapperListener_stop_runner Stopping MID server

06/01/16 11:27:11 (299) WrapperListener_stop_runner Destroying injector...

06/01/16 11:27:11 (314) WrapperListener_stop_runner Closing com.service_now.mid.extension.container.ExtensionContainer

06/01/16 11:27:11 (314) WrapperListener_stop_runner ExtensionContainer is shutting down...

06/01/16 11:27:11 (314) WrapperListener_stop_runner ...waiting a maximum shutdown time of 1000ms

06/01/16 11:27:11 (314) WrapperListener_stop_runner ExtensionContainer is cleanly shut down

06/01/16 11:27:11 (314) ECCSender.1 Sending ecc_queue.1550b45ace10000001.xml

06/01/16 11:27:11 (392) MIDServer MID Server stopping

06/01/16 11:27:12 (174) MIDServer interrupting thread ECCSender.1

06/01/16 11:27:12 (267) MIDServer interrupting thread ECCQueueMonitor.15

06/01/16 11:27:12 (346) MIDServer interrupting thread LogStatusMonitor.60

06/01/16 11:27:12 (408) MIDServer interrupting thread RefreshMonitor.65

06/01/16 11:27:12 (471) MIDServer interrupting thread StatusMonitor.600

06/01/16 11:27:12 (549) MIDServer interrupting thread FileSyncer.1

06/01/16 11:27:12 (611) MIDServer interrupting thread AutoUpgrade.3600

06/01/16 11:27:12 (705) ECCSender.1 Sending ecc_queue.1550b45ad5e0000001.xml

06/01/16 11:27:12 (814) MIDServer Shutting down SSHProtocolEngine

06/01/16 11:27:12 (830) SSHProtocolEngine SSH Protocol engine interrupted. Terminating.

06/01/16 11:27:12 (830) SSHProtocolEngine Shutting down SSHClientEngine

06/01/16 11:27:12 (924) MIDServer MID Server stopped

06/01/16 11:27:12 (924) MIDServer Destroying injector...

06/01/16 11:27:13 (002) ECCSender.1 Sending ecc_queue.1550b45ae0a0000001.xml

06/01/16 11:27:13 (002) ECCSender.1 SEVERE *** ERROR *** instance URL is null!

java.lang.IllegalArgumentException: instance URL is null!

  at com.glide.communications.RemoteGlideRecord.<init>(RemoteGlideRecord.java:106)

  at com.service_now.mid.MIDRemoteGlideRecord.<init>(MIDRemoteGlideRecord.java:25)

  at com.service_now.mid.MIDRemoteGlideRecordFactory.newRemoteGlideRecord(MIDRemoteGlideRecordFactory.java:44)

  at com.glide.communications.RemoteGlideRecordFactory.newGlideRecord(RemoteGlideRecordFactory.java:53)

  at com.glideapp.ecc.ECCMessage.getNewRecord(ECCMessage.java:203)

  at com.glideapp.ecc.ECCMessage.fromXML(ECCMessage.java:181)

  at com.service_now.monitor.ECCSenderCache.sendMessage(ECCSenderCache.java:176)

  at com.service_now.monitor.ECCSenderCache.sendFile(ECCSenderCache.java:154)

  at com.service_now.monitor.ECCSenderCache.sendFiles(ECCSenderCache.java:98)

  at com.service_now.monitor.ECCSender.run(ECCSender.java:84)

  at com.service_now.monitor.AMonitor.runit(AMonitor.java:140)

  at com.service_now.monitor.AMonitor.access$100(AMonitor.java:37)

  at com.service_now.monitor.AMonitor$MonitorTask.runMonitor(AMonitor.java:130)

  at com.service_now.monitor.AMonitor$MonitorTask.run(AMonitor.java:110)

  at java.util.TimerThread.mainLoop(Unknown Source)

  at java.util.TimerThread.run(Unknown Source)

06/01/16 11:27:13 (314) Thread-1 Shutdown hook entered

Please suggest the root cause for this issue.

Best Regards,

Rajesh M.

4 REPLIES 4

Mike Allen
Mega Sage

Has it ever worked?


Through these lines:



06/01/16 11:27:13 (002) ECCSender.1 SEVERE *** ERROR *** instance URL is null!


java.lang.IllegalArgumentException: instance URL is null!



I would think your config file is incorrect.


Linux:


Change to the /servicenow/<mid server name>/agent directory, and edit the config.xml file as follows:


Windows:


Edit the config.xml file with a text editor such as WordPad:


Rajesh M1
Giga Guru

Hi Mike,



Yes, Mid-server was functioning fine till recent time.



From yesterday we are facing this issue.



Best Regards,


Rajesh M.


Hi Rajesh,



I would suggest stopping and staring the MID server from the command line.



Either Windows CMD/PowerShell and see if any errors are reported when the commands are run:



<path_to_MIDserver>\agent\stop.bat


<path_to_MIDserver>\agent\start.bat



Regards,


Tony