Slot swap failing with error: "slot did not respond to http ping"

Chris Kingdon 61 Reputation points
2022-06-18T22:46:02.903+00:00

I'm trying to swap my staging slot to production via the azure cli in my devops pipeline. When I run the command it runs for upwards of 20-30 minutes before failing with the error: "Cannot swap site slots for site 'site-name-here' because the 'staging' slot did not respond to http ping." I have verified that I can hit the staging slot root just fine as well as a few other routes so the site is definitely up and running. I'm not really sure what else to check the app is running fine in staging so I don't understand why the swap is failing.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,850 questions
{count} votes

Accepted answer
  1. risolis 8,701 Reputation points
    2022-06-28T01:27:46.64+00:00

    You are fully right on the one but the same document mentions as well as this details....

    https://github.com/Azure-App-Service/KuduLite/wiki/App-Cache

    Cheers,

    2 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-06-19T00:35:45.463+00:00

    Hello @Chris Kingdon

    Thank you for your post.

    As per scenario, I would think of checking the following settings as it is shown below:

    https://learn.microsoft.com/en-us/cli/azure/webapp/config/access-restriction?view=azure-cli-latest

    Looking forward to your feedback,

    Best Regards,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

  2. Ramchandra K 5 Reputation points
    2023-02-13T08:54:44.64+00:00

    This issue resolved after restarting staging web application from azure portal.

    1 person found this answer helpful.

  3. Dom Barnes 11 Reputation points
    2022-11-22T14:19:57.127+00:00

    FWIW, I get this same issue with swapping docker-compose some linux containers. So Run from Package and App Cache don't apply afaik. Usually swapping from Azure DevOps Releases

    0 comments No comments