Deploye App Service using VSCode Azure Extention error with zip file

Hồ Văn Cón 5 Reputation points
2024-12-09T06:59:42.6866667+00:00

Hi everyone,

I deploy web app service using vscode extentions, i got error like below

11:22:40 AM mb-ttai-dev-aismarthr-sg-wa-001: Fetching changes.
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/e1e438e0-6d12-4b09-af0d-a56e02d228b8.zip (0.00 MB) to /tmp/zipdeploy/extracted
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001: Exception in extracting and setting permissions on the zip file System.IO.Abstractions.FileInfoWrapper:System.IO.InvalidDataException: Central Directory corrupt.
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:  ---> System.IO.IOException: Invalid argument : '/tmp/zipdeploy/e1e438e0-6d12-4b09-af0d-a56e02d228b8.zip'
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Strategies.FileStreamHelpers.ThrowInvalidArgument(SafeFileHandle )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Strategies.OSFileStreamStrategy.Seek(Int64 , SeekOrigin )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Strategies.BufferedFileStreamStrategy.Seek(Int64 , SeekOrigin )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.FileStream.Seek(Int64 , SeekOrigin )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    --- End of inner exception stack trace ---
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Compression.ZipArchive..ctor(Stream , ZipArchiveMode , Boolean , Encoding )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at System.IO.Compression.ZipArchive..ctor(Stream , ZipArchiveMode )
11:22:41 AM mb-ttai-dev-aismarthr-sg-wa-001:    at Kudu.Services.Deployment.PushDeploymentController.LocalZipFetch(IRepository repository, DeploymentInfoBase deploymentInfo, String targetBranch, ILogger logger, ITracer tracer) in /tmp/KuduLite/Kudu.Services/Deployment/PushDeploymentController.cs:line 934

Can you help me to fix them

Thank you

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,931 questions
{count} vote

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.