Mid Server Upgrade StuckDescriptionThe mid-server Auto upgrade failed and the mid doesn't upgrade completely. CauseUnder the agent log file we can see the below error: Logs : 09/25/21 16:36:15 (893) AutoUpgrade.3600 Downloading C:\Program Files\\ServiceNow MID Server mid.server.rsp\agent\package\incoming\mid-core.quebec-12-09-2020__patch4-hotfix2b-07-21-2021_08-04-2021_0527.universal.universal.zip, 272394856 bytes 09/25/21 16:36:16 (299) AutoUpgrade.3600 Downloaded C:\Program Files\\ServiceNow MID Server mid.server.rsp\agent\package\incoming\mid-core.quebec-12-09-2020__patch4-hotfix2b-07-21-2021_08-04-2021_0527.universal.universal.zip, 273338904 bytes 09/25/21 16:36:16 (299) AutoUpgrade.3600 Package was successfully downloaded from https://install.service-now.com/glide/distribution/builds/package/app-signed/mid-core/2021/08/04/mid-core.quebec-12-09-2020__patch4-hotfix2b-07-21-2021_08-04-2021_0527.universal.universal.zip 09/25/21 16:36:16 (393) AutoUpgrade.3600 SEVERE *** ERROR *** Fail to download package mid-core from url https://install.service-now.com/glide/distribution/builds/package/app-signed/mid-core/2021/08/04/mid-core.quebec-12-09-2020__patch4-hotfix2b-07-21-2021_08-04-2021_0527.universal.universal.zip with error message invalid distance too far back 09/25/21 16:36:16 (596) AutoUpgrade.3600 Setting mid status to Upgrade Failed 09/25/21 16:36:16 (596) AutoUpgrade.3600 Instance.updateAgentRecordState(), OperationalState=UPGRADE_FAILED
Resolution1) Stop the mid-server service. 2) Navigate to agent/package/incoming/ files and clear the folder. 3) Restart the service. 4) Post that the mid server should upgrade successfully.