Unable to Upgrade MID Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 01:24 PM
Hi Everyone,
Our instance recently got upgraded from Eureka to Geneva.
MID Server status became down and the version does not match the Build number in the stats.
I was told that the MID Server will auto upgrade which didn't happened. I am using a proxy server to connect, when I tried communicating with the instance through the server it is working however I assume the service or application installed is not able to communicate with the instance.
I created a new service and it worked perfectly for 1 min however after that the status of it became down.
Then I tried changing the configurations of old services however no good.
Now the services are running fine however in the config file in the mid_sys_id section mid server details not getting populated and the status of the MID Server in the instance is always down.
Do I need to change any properties in the instance?
Since I use proxy server do I need to remove the comment line of the auto upgrade through proxy section or can I leave that blank?
What is the issue here? Why my MID Server is not getting upgraded? Kindly help me.. If possible an explanation with screen shot would be much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 01:35 PM
Yes if you need to use a proxy then you need to add in the parameters for autoupgrade around the proxy. Check here for the parameters needed: MID Server upgrade parameters
Also make sure your MID server are going to be able to reach the http://install.service-now.com to download the needed files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 08:07 PM
Thanks for the response Jake,
Ok will update the paramaters, however after configuring the service status of the MID Server is up why it is getting down after a min?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 10:46 PM
I installed a new service this is what I got
STATUS | wrapper | 2016/08/09 21:23:19.484 | Launching a JVM...
INFO | jvm 1 | 2016/08/09 21:23:20.768 | WrapperManager: Initializing...
INFO | jvm 1 | 2016/08/09 21:23:21.469 | Aug 09, 2016 9:23:21 PM com.snc.dist.mid_upgrade.UpgradeMain$1 start
INFO | jvm 1 | 2016/08/09 21:23:21.547 | INFO: WrapperListener.start()
INFO | jvm 1 | 2016/08/09 21:23:21.594 | Aug 09, 2016 9:23:21 PM com.snc.dist.mid_upgrade.UpgradeMain logArguments
INFO | jvm 1 | 2016/08/09 21:23:21.672 | INFO: Command-line arguments: --dist-file=C:\Windows\Temp\1470766948610-0\mid-upgrade.2016-05-21-0850.universal.universal.zip --mode=dist-upgrade --current-dir=C:\Snow Mid Server 2\agent
INFO | jvm 1 | 2016/08/09 21:23:21.812 | Aug 09, 2016 9:23:21 PM com.snc.dist.mid_upgrade.UpgradeMain run
INFO | jvm 1 | 2016/08/09 21:23:21.890 | INFO: MID Server upgrade v2.0 starting...
INFO | jvm 1 | 2016/08/09 21:23:21.937 | Aug 09, 2016 9:23:21 PM com.snc.dist.mid_upgrade.UpgradeMain run
INFO | jvm 1 | 2016/08/09 21:23:22.015 | INFO: Upgrading MID `C:\Snow Mid Server 2\agent` with contents from `C:\Windows\Temp\1470766948610-0\agent`.
INFO | jvm 1 | 2016/08/09 21:23:22.139 | Aug 09, 2016 9:23:21 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:22.202 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | wrapper | 2016/08/09 21:23:22.732 | Waiting to start...
INFO | jvm 1 | 2016/08/09 21:23:22.607 | Aug 09, 2016 9:23:22 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:22.685 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:23.199 | Aug 09, 2016 9:23:23 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:23.277 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
STATUS | wrapper | 2016/08/09 21:23:23.745 | ServiceNow Platform Distribution Upgrade (salo-mid-dev-geneva) started.
INFO | jvm 1 | 2016/08/09 21:23:23.901 | Aug 09, 2016 9:23:23 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:23.979 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:24.602 | Aug 09, 2016 9:23:24 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:24.680 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:25.194 | Aug 09, 2016 9:23:25 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:25.272 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:25.896 | Aug 09, 2016 9:23:25 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:25.974 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:26.597 | Aug 09, 2016 9:23:26 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:26.675 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:27.299 | Aug 09, 2016 9:23:27 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:27.376 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:27.891 | Aug 09, 2016 9:23:27 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:27.969 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:28.577 | Aug 09, 2016 9:23:28 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:28.639 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:29.231 | Aug 09, 2016 9:23:29 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:29.309 | WARNING: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll is not safe to delete: C:\Snow Mid Server 2\agent\lib\sigar-amd64-winnt.dll (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:30.260 | Aug 09, 2016 9:23:30 PM com.snc.dist.mid_upgrade.UpgradeMain missingOrCanDelete
INFO | jvm 1 | 2016/08/09 21:23:30.338 | WARNING: C:\Snow Mid Server 2\agent\bin\wrapper-windows-x86-64.exe is not safe to delete: C:\Snow Mid Server 2\agent\bin\wrapper-windows-x86-64.exe (The process cannot access the file because it is being used by another process)
INFO | jvm 1 | 2016/08/09 21:23:31.195 | Aug 09, 2016 9:23:31 PM com.snc.dist.mid_upgrade.UpgradeMarker markService
INFO | jvm 1 | 2016/08/09 21:23:31.273 | INFO: Added service `snc-platform-dist-upgrade-salo-mid-dev-geneva` to upgrade marker file.
INFO | jvm 1 | 2016/08/09 21:23:35.403 | Aug 09, 2016 9:23:35 PM com.snc.dist.mid_upgrade.UpgradeMain deleteJreDirIfSourced
INFO | jvm 1 | 2016/08/09 21:23:35.466 | INFO: Removing previous MID JRE at `C:\Snow Mid Server 2\agent\jre`.
INFO | jvm 1 | 2016/08/09 21:23:36.416 | Aug 09, 2016 9:23:36 PM com.snc.dist.mid_upgrade.UpgradeMain migrateToTarget
INFO | jvm 1 | 2016/08/09 21:23:36.479 | INFO: Copying files to MID server installation path.
INFO | jvm 1 | 2016/08/09 21:23:36.526 | Aug 09, 2016 9:23:36 PM com.snc.dist.mid_upgrade.UpgradeMain run
INFO | jvm 1 | 2016/08/09 21:23:36.603 | SEVERE: com.snc.dist.mid_upgrade.UpgradeException: java.io.FileNotFoundException: C:\Snow Mid Server 2\agent\bin\mid.bat (Access is denied)
INFO | jvm 1 | 2016/08/09 21:23:36.713 | com.snc.dist.mid_upgrade.UpgradeException: java.io.FileNotFoundException: C:\Snow Mid Server 2\agent\bin\mid.bat (Access is denied)
INFO | jvm 1 | 2016/08/09 21:23:36.822 | at com.snc.dist.mid_upgrade.UpgradeMain.migrateToTarget(UpgradeMain.java:778)
INFO | jvm 1 | 2016/08/09 21:23:36.900 | at com.snc.dist.mid_upgrade.UpgradeMain.run(UpgradeMain.java:311)
INFO | jvm 1 | 2016/08/09 21:23:36.978 | at java.lang.Thread.run(Thread.java:745)
INFO | jvm 1 | 2016/08/09 21:23:37.024 | Caused by: java.io.FileNotFoundException: C:\Snow Mid Server 2\agent\bin\mid.bat (Access is denied)
INFO | jvm 1 | 2016/08/09 21:23:37.133 | at java.io.FileOutputStream.open0(Native Method)
INFO | jvm 1 | 2016/08/09 21:23:37.196 | at java.io.FileOutputStream.open(FileOutputStream.java:270)
INFO | jvm 1 | 2016/08/09 21:23:37.258 | at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
INFO | jvm 1 | 2016/08/09 21:23:37.336 | at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
INFO | jvm 1 | 2016/08/09 21:23:37.398 | at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:936)
INFO | jvm 1 | 2016/08/09 21:23:37.476 | at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1225)
INFO | jvm 1 | 2016/08/09 21:23:37.554 | at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1223)
INFO | jvm 1 | 2016/08/09 21:23:37.632 | at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1186)
INFO | jvm 1 | 2016/08/09 21:23:37.710 | at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1107)
INFO | jvm 1 | 2016/08/09 21:23:37.788 | at com.snc.dist.mid_upgrade.UpgradeMain.migrateToTarget(UpgradeMain.java:775)
INFO | jvm 1 | 2016/08/09 21:23:37.866 | ... 2 more
INFO | jvm 1 | 2016/08/09 21:23:37.897 |
INFO | jvm 1 | 2016/08/09 21:23:37.928 | Aug 09, 2016 9:23:36 PM com.snc.dist.mid_upgrade.UpgradeMain appendMidLogs
INFO | jvm 1 | 2016/08/09 21:23:38.006 | INFO: Flushing logs
What did I miss? what is the mistake here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2016 05:47 AM
It looks like the same MID Server service is trying to be used by two different MID Servers? Did you uninstall the first mid server first? I would say if you are going to go the route of just redoing the MID Server i would make sure to utilize the installer.bat found in the agent folder. Install multiple MID Servers on a single system
While those are steps normally for multiple MIDs on one server it can help to also make sure resources are divided correctly.
Let me know if that helps or works.