projectkudu / kudu

Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
Apache License 2.0
3.12k stars 652 forks source link

Autoswap issues from GitHub #2069

Closed neusamir closed 8 years ago

neusamir commented 8 years ago

Our issue is similar to https://github.com/projectkudu/kudu/issues/1124 but may not be the same so we are opening a new issue.

Setup

<step title="POST /operations/autoswap?slot=production&amp;operationId=AUTOSWAPce25aabe-d981-412d-bf47-ff440bf9613f, x-ms-request-id: d440ee48-f7d1-4b11-be10-f4dfdf33ecc2" date="2016-06-23T22:09:15.918" >
    <step title="Response: NotFound" date="2016-06-23T22:09:20.005" /><!-- duration: 0ms -->
</step><!-- duration: 4097ms -->
<step title="Error occurred" date="2016-06-23T22:09:20.053" 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.Services.FetchHandler.&lt;&gt;c__DisplayClass18_1.&lt;PerformBackgroundDeployment&gt;b__2()
    at Kudu.Contracts.Infrastructure.LockExtensions.TryLockOperation(IOperationLock lockObj, Action operation, String operationName, TimeSpan timeout)
    at Kudu.Contracts.Infrastructure.LockExtensions.LockOperation(IOperationLock lockObj, Action operation, String operationName, TimeSpan timeout)
    at Kudu.Services.FetchHandler.&lt;&gt;c__DisplayClass18_0.&lt;PerformBackgroundDeployment&gt;b__1()" innerText="Response status code does not indicate success: 404 (Not Found)." innerStackTrace="   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
    at Kudu.Core.Infrastructure.OperationClient.&lt;PostAsync&gt;d__7`1.MoveNext()
    --- 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.AutoSwapHandler.&lt;HandleAutoSwap&gt;d__6.MoveNext()
    --- 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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at Kudu.Services.FetchHandler.&lt;PerformDeployment&gt;d__12.MoveNext()" /><!-- duration: 0ms -->
</step><!-- duration: 286964ms -->

Site

neusamir commented 8 years ago

@shrimpy Thanks for looking at this. When do you think this fix will get pushed to production?

shrimpy commented 8 years ago

Keep this issue open till we deploy.

@neusamir, not yet, but will be soon. Github auto close this issue while i merge that PR

neusamir commented 8 years ago

Ok great, will do.

shrimpy commented 8 years ago

@neusamir i can manually patch your deployment if you want the fix sooner. but you will have to do some manual work once we deploy (when this issue closed)

here is the flow if your want to move forward:

https://{main site name}.scm.azurewebsites.net
https://{slow site name}.scm.azurewebsites.net

(an easy way is go to portal, click browse, and modify the url, add ".scm")

neusamir commented 8 years ago

Ok, do you have any idea when it will be deployed automatically? 1 week? 1 month? If it will be a long time then we can go through the manual process, otherwise I would like to wait.

shrimpy commented 8 years ago

@neusamir we should have a deployment sometime next week.

neusamir commented 8 years ago

Ok, we will wait.

shrimpy commented 8 years ago

@neusamir there was a deployment last night, your site should be fix now if you restart them.

neusamir commented 8 years ago

Thanks, we had some builds go out last night around 10PM PST and had some weird errors. We will test this will some more builds next week and let you know if we have any issues.