"Central Directory corrupt" error on VSCode deploy

Adrián Melián 36 Reputation points
2023-07-11T12:00:18.0933333+00:00

Hello,

Currently, I have an Angular application that I publish on our Azure App Service platform using the "Azure App Service" extension by deploying it to the selected deployment slot.

We have been using this extension without any issues for years. However, yesterday, while we were deploying, VSCode closed in the middle of the deployment process, and since then, we haven't been able to perform any deployments as we encounter the error message "Central Directory corrupt."

I have reviewed all the related posts on the web, but none of them resolve the issue. The VSCode log indicates the following:

12:38:05 PM project-preview: Starting deployment...

12:38:06 PM project-preview: Creating zip package...

12:38:06 PM project-preview: Zip package size: 22 B

12:38:08 PM project-preview: Fetching changes.

12:38:08 PM project-preview: Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\givtofy0.zip (0.00 MB) to C:\local\Temp\zipdeploy\extracted

12:38:08 PM project-preview: Central Directory corrupt.

12:38:12 PM project-preview: Deployment failed.

I believe that the Temp directory is corrupt or something has happened to it, although if I access it through Kudu, I can see that the C:\Temp directory exists.

The issue is that after this failure, we cannot deploy any applications since we have several of them.

Thanks

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,663 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Volodymyr Litovka 121 Reputation points
    2023-07-17T21:20:56.66+00:00

    Hi, suddenly started to experience the same issue, which repeats for two different subscriptions.

    11:00:23 PM my_func: Starting deployment...

    11:00:23 PM my_func: Creating zip package...

    11:00:23 PM my_func: Zip package size: 22 B

    11:00:26 PM my_func: Fetching changes.

    11:00:28 PM my_func: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/565dca1c-b056-4b1e-a127-f8ff7babb14b.zip (0.00 MB) to /tmp/zipdeploy/extracted

    11:00:28 PM my_func: Central Directory corrupt.

    11:00:34 PM my_func: Deployment failed.

    VSCode with the latest all extensions (see below).

    Is it possible to get more detailed debug of deploy? Why resulting ZIP is just 22 bytes long? It's naturally that when trying to unpack, it will not find 'central directory'.

    Yesterday, the Windows 10 updated with two updates - KB5028705 and KB5028166. Can it be the issue?

    Thank you.

    
    Version: 1.80.1 (user setup)  
    Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771  
    Date: 2023-07-12T17:22:07.651Z  
    Electron: 22.3.14  
    ElectronBuildId: 21893604  
    Chromium: 108.0.5359.215  
    Node.js: 16.17.1  
    V8: 10.8.168.25-electron.0  
    OS: Windows_NT x64 10.0.19044
    
    
    0 comments No comments

  2. Grmacjon-MSFT 17,886 Reputation points
    2023-08-04T04:24:02.19+00:00

    Hi all,

    This was identified as a bug. A fix has been deployed and issue is now mitigated. Please let us know if you're still having this issue @Adrián Melián

    Thanks,

    Grace


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.