Notifications

87 views

Windows 7/2008/2012: MID Server auto-upgrades fail when the Application Experience Windows service is disabled

Issue


 
When the MID Server running on Windows 7/2008/2012 is auto-upgrading, you see an error similar to the following example: 
 
INFO   | jvm 1    | 2018/01/29 13:44:17.878 | SEVERE: com.snc.dist.mid_upgrade.UpgradeException: java.io.FileNotFoundException: C:\MIDServer\agent\bin\mid.bat (Access is denied)
INFO   | jvm 1    | 2018/01/29 13:44:17.893 | com.snc.dist.mid_upgrade.UpgradeException: java.io.FileNotFoundException: C:\MIDServer\agent\bin\mid.bat (Access is denied)
INFO   | jvm 1    | 2018/01/29 13:44:17.909 |     at com.snc.dist.mid_upgrade.UpgradeMain.migrateToTarget(UpgradeMain.java:821)
INFO   | jvm 1    | 2018/01/29 13:44:17.925 |     at com.snc.dist.mid_upgrade.UpgradeMain.run(UpgradeMain.java:312)
INFO   | jvm 1    | 2018/01/29 13:44:17.925 |     at java.lang.Thread.run(Thread.java:748)
INFO   | jvm 1    | 2018/01/29 13:44:17.940 | Caused by: java.io.FileNotFoundException: C:\MIDServer\agent\bin\mid.bat (Access is denied)
 
If you go to Process Explorer, you see that mid.bat is being locked by system PID 4. 

Solution


 
This is caused by disabling the built-in Windows service Application Experience and seems to be a bug in some Windows versions. 
 
Re-enabling the service fixes the issue and allows the MID Server to upgrade successfully. 

Article Information

Last Updated:2018-01-29 23:13:44
Published:2018-01-30