Azure WebApp deployment through DevOps Pipeline throws "offset to central directory cannot be held in an int64" for zipdeploy method. Size of zip file was just 1MB

M, Ramyalakshmi 0 Reputation points
2024-07-11T13:17:22.1966667+00:00

Hi All,

Trying to deploy an application using Azure app service deployment ( zip deploy )method. Getting "Offset to central directory cannot be held in an Int64" that too randomly. Size of the zip file is just 1 MB. Azure repo is being used as code repository.
Tried Following nothing helped

  1. Used setting SCM_DO_BUILD_DURING_DEPLOYMENT
  2. Stopped App service and then deployed
  3. Cleared old files of previous deployment
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,729 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,886 Reputation points
    2024-07-22T20:59:20.9166667+00:00

    Hello @M, Ramyalakshmi since you're able to download the file from the App service and extract it this is not really an app service issue.

    The new error message you're getting means a corruption within the ZIP file you're trying to deploy. It means the internal directory information stored in the ZIP archive (Central Directory) doesn't match the actual number of files listed at the end (End Of Central Directory).

    You can fix this error by trying these steps:

    1. If possible, recreate the ZIP file and make sure all necessary files are included and the archive is created without any interruptions.
    2. Verify if the ZIP file is corrupted. You can use tools like zip -T on Linux or WinRAR on Windows to test the integrity of the ZIP file.
    3. If you’re handling ZIP files programmatically, try using a different library or update the current one to the latest version.

    Best,

    Grace

    0 comments No comments

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.