Troubleshooting "[File] cannot be deleted" errors in Wrapper log when attempting to AutoUpgrade MID serverDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Description You observe the following symptoms: MID server fails AutoUpgradeTemporary service "Platform Distribution Upgrade" is still presentWhen attempting to start the "Platform Distribution Upgrade" service you note the service doesn't start and see errors in the Wrapper logErrors repeat a message for "[File] cannot be deleted" until it timeoutsWhen logged in as the user for the service logon user you note that you are able to delete files in the directory Solution This error comes from the UpgradeMain.CLASS file. CLASS files can be decompiled with software such as Eclipse Enhanced Class Decompiler. Specifically this comes from the "missingOrCanDelete" function with lines 382-398. What's occurring is that we attempt to open the files in the temp directory with Read/Write permissions and then close the file to verify if we can delete the file. There are edge situations in which the client has configured the OS to allow for deletes, but not writes (ReadOnly) which result in the above code errors. There are two solutions: Delete all the files in the indicated temp directory from the Wrapper log and restart the PDU serviceRemove any read/write restrictions on the files in the indicated temp directory and run the PDU service again Applicable Versions All