azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

[Issue] 503 when running up on template with func

Open jongio opened this issue 3 years ago • 1 comments

I'm seeing this when running up on a template with func in it. I think it is because we try to deploy to a function before the zip deploy endpoint is ready.

I believe we need to have a retry here.

Error: deploying service: deploying service api package: POST https://func-api-rwhhjrs4jzmkg.scm.azurewebsites.net/api/zipdeploy
--------------------------------------------------------------------------------
RESPONSE 503: 503 Site Unavailable
ERROR CODE UNAVAILABLE
--------------------------------------------------------------------------------
The service is unavailable.
--------------------------------------------------------------------------------

jongio avatar Oct 20 '22 01:10 jongio

Also, since the previous provision step is not truly done. The subsequent deploys are failing since the services are not fully up and running yet.

  • It will be good to also look at how we can add post-validations to the provision step and fail provision if the post-validations don't succeed.
  • It will be good to also look at other deploy scenarios/hosts which might potentially return 5XX error codes for adding retries.

For such deploy operations, it will be good to have such abstractions as part of the Go SDK itself.

rajeshkamal5050 avatar Oct 20 '22 05:10 rajeshkamal5050

Is the below fix good enough or should we make additional fixes across different deployment types?

  • https://github.com/Azure/azure-dev/pull/1051

rajeshkamal5050 avatar Nov 03 '22 15:11 rajeshkamal5050

I have not seen this issue since that fix was implemented. Will close and reopen if we see it again.

jongio avatar Nov 03 '22 23:11 jongio