AutoUpgrade failed with error Failled to download package mid-coreIssue MID Server is not upgrading because a downloaded zip file was a corrupted and was unable to delete automatically, blocking the upgrade completing, and potentially causing an failed upgrade retry loop, where the mid server flaps between up/upgrading and down state. The MID Server's logs\agent0.log.0 file will show an error similar to this, and usually for the mi-code...zip file, which is the largest of the zip files that are downloaded: 12/04/21 01:12:08 (728) AutoUpgrade.3600 Downloading package to mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip from https://install.service-now.com/glide/distribution/builds/package/app-signed/mid-core/2021/10/05/mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip 12/04/21 01:12:18 (840) AutoUpgrade.3600 WARNING *** WARNING *** java.net.SocketTimeoutException: connect timed out when posting to https://install.service-now.com/glide/distribution/builds/package/app-signed/mid-core/2021/10/05/mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip 12/04/21 01:12:18 (840) AutoUpgrade.3600 SEVERE *** ERROR *** Downloaded file, mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip was corrupted. Try to Delete the file and download it again after 2 seconds 12/04/21 01:12:20 (840) 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/10/05/mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip with error message Unable to download package `mid-core.quebec-12-09-2020__patch7-hotfix2a-09-20-2021_10-05-2021_1441.universal.universal.zip`. Unable to delete the corrupted file, delete it manually. CauseA performance issue with the host server or it's internet network connection is usually the cause of this. The fact that a zip file was partially downloaded confirms the host does have access to the install server and no firewall is blocking it. Antivirus/Security software has also been known to interfere with zip files as they are downloaded and saved to disk.ResolutionYou will need to investigate the performance of the host that the MID Server is installed on, and the quality of its internet connection. The MID Server needs reliable and relatively fast access to the install server at https://install.service-now.com/, to download the approx. 400MB of ZIP files each upgrade. To allow the MID Server to re-attempt the upgrade: Delete the incomplete zip file from the <install folder>\agent\package\incoming folderRestart the MID Server service, which will cause it to restart the autoupgrade process. If the MID Server remains incapable of downloading the full files as part of the automated upgrade process, it is possible to download these elsewhere, copy them to the host, and place them in the incoming packages folder manually, using the same process some of our on-premise customers use:KB0565184 ow to upgrade a MID Server that does not have access to the AutoUpgrade install server on the Internet