Deploying app from vs code through azure app service extension

Hunny Garg 6 Reputation points
2021-10-20T04:51:28.877+00:00

After deploying I get this error in output.

9:55:35 am Sportskill: Starting deployment...
9:55:38 am Sportskill: Creating zip package...
9:58:22 am Sportskill: Opening "c586dc-202110191351.log"...
10:03:25 am Sportskill: Zip package size: 86.3 MB
10:03:29 am Sportskill: Fetching changes.
10:03:29 am Sportskill: Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\ggsca0zv.zip (55.65 MB) to C:\local\Temp\zipdeploy\extracted
10:03:30 am Sportskill: Offset to Central Directory cannot be held in an Int64.
10:03:38 am Sportskill: Deployment failed.

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} vote

2 answers

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    2021-10-28T22:02:54.583+00:00

    Hi @Hunny Garg , the PM I reached out to suggested opening an issue here: https://github.com/microsoft/vscode-azureappservice/issues

    It seems like a problem on the service side. Opening an issue should help resolve your problem. Please let me know if you have any questions.

    If this answer helped you please mark it as "Verified" so other users may reference it.

    Thank you,
    James

    0 comments No comments

  2. Oualid 1 Reputation point
    2021-12-16T15:04:15.74+00:00

    @James Hamil We are having the same issue but the deployment is performed automatically from our azure devops pipeline. The App service plan is an elastic one and the app is a function app. Here are the details of the logs:

    step title="BackgroundTrace" date="2021-12-15T20:33:35.779" instance="21fff2" url="/api/zipdeploy" method="POST">  
    <step title="Updating shutdown sentinel last write time" date="2021-12-15T20:33:35.826" SemaphoreCount="7"/>  
    <!--  duration: 63ms  -->  
    <step title="LockFile 'C:\home\site\locks\deployments.lock' acquired" date="2021-12-15T20:33:35.920"/>  
    <!--  duration: 16ms  -->  
    <step title="Creating temporary deployment" date="2021-12-15T20:33:35.951"/>  
    <!--  duration: 172ms  -->  
    <step title="Performing fetch based deployment" date="2021-12-15T20:33:36.139">  
    <step title="Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\4dxdklxy.zip (4.70 MB) to C:\local\Temp\zipdeploy\extracted" date="2021-12-15T20:33:36.732"/>  
    <!--  duration: 62ms  -->  
    </step>  
    <!--  duration: 1146ms  -->  
    <step title="LockFile 'C:\home\site\locks\deployments.lock' released" date="2021-12-15T20:33:37.316"/>  
    <!--  duration: 16ms  -->  
    <step title="Deleting shutdown sentinel file" date="2021-12-15T20:33:37.363" SemaphoreCount="8"/>  
    <!--  duration: 16ms  -->  
    <step title="Error occurred" date="2021-12-15T20:33:37.394" type="error" text="One or more errors occurred." stackTrace=" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Kudu.Core.Deployment.FetchDeploymentManager.<>c__DisplayClass11_1.<PerformBackgroundDeployment>b__3() in C:\Kudu Files\Private\src\master\Kudu.Core\Deployment\FetchDeploymentManager.cs:line 399 at Kudu.Contracts.Infrastructure.LockExtensions.TryLockOperation(IOperationLock lockObj, Action operation, String operationName, TimeSpan timeout) in C:\Kudu Files\Private\src\master\Kudu.Contracts\Infrastructure\LockExtensions.cs:line 34 at Kudu.Contracts.Infrastructure.LockExtensions.LockOperation(IOperationLock lockObj, Action operation, String operationName, TimeSpan timeout) in C:\Kudu Files\Private\src\master\Kudu.Contracts\Infrastructure\LockExtensions.cs:line 46 at Kudu.Core.Deployment.FetchDeploymentManager.<>c__DisplayClass11_0.<PerformBackgroundDeployment>b__1() in C:\Kudu Files\Private\src\master\Kudu.Core\Deployment\FetchDeploymentManager.cs:line 383" innerText="Offset to Central Directory cannot be held in an Int64." innerStackTrace=" at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory() at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen) at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding) at Kudu.Services.Deployment.PushDeploymentController.<>c__DisplayClass18_0.<LocalZipFetch>b__1() in C:\Kudu Files\Private\src\master\Kudu.Services\Deployment\PushDeploymentController.cs:line 721 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Kudu.Services.Deployment.PushDeploymentController.<LocalZipFetch>d__18.MoveNext() in C:\Kudu Files\Private\src\master\Kudu.Services\Deployment\PushDeploymentController.cs:line 727 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Kudu.Services.Deployment.PushDeploymentController.<LocalZipHandler>d__14.MoveNext() in C:\Kudu Files\Private\src\master\Kudu.Services\Deployment\PushDeploymentController.cs:line 543 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Kudu.Core.Deployment.FetchDeploymentManager.<PerformDeployment>d__9.MoveNext() in C:\Kudu Files\Private\src\master\Kudu.Core\Deployment\FetchDeploymentManager.cs:line 181 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Kudu.Core.Deployment.FetchDeploymentManager.<PerformDeployment>d__9.MoveNext() in C:\Kudu Files\Private\src\master\Kudu.Core\Deployment\FetchDeploymentManager.cs:line 295"/>  
    <!--  duration: 16ms  -->  
    </step>  
    <!--  duration: 1662ms  -->  
    
    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.