Is Kudu down?

Robert H:ius 0 Reputation points
2023-05-26T12:42:13.88+00:00

Since at least yesterday, I cannot access Kudu for my app service or any of its slots. The service itself runs as usual, I can even restart and redeploy it, but I cannot SSH into it or access https://[my-app].scm.azurewebsites.net/ (it gives HTTP 502). In the resource explorer, my application has state = "Running" and scmSiteAlsoStopped = false. I cannot access the application logstream either:

Exception in thread Thread-1 (_get_log):
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/opt/az/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/appservice/custom.py", line 2812, in _get_log
    raise CLIError("Failed to connect to '{}' with status code '{}' and reason '{}'".format(
knack.util.CLIError: Failed to connect to 'https://[my-app].scm.azurewebsites.net/logstream' with status code '502' and reason 'Bad Gateway'
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,151 questions
{count} votes

2 answers

Sort by: Most helpful
  1. brtrach-MSFT 17,166 Reputation points Microsoft Employee
    2023-05-26T23:37:59.54+00:00

    @Robert H:ius I just checked internally, and I am not seeing any other reports of issues with KUDU.

    The fact that both KUDU and application logstream are not working is a likely indication that there has been a firewall rule put in place to block external traffic from hitting your app service. Both of these features require access to the internet, or you need to add your apps outbound IP addresses to your firewall's allow list.

    Can you please check and verify that there is nothing from a firewall perspective blocking your app?


  2. brtrach-MSFT 17,166 Reputation points Microsoft Employee
    2023-06-02T01:59:21.7666667+00:00

    @Robert H:ius With being on forums, our insights into your app's Azure configuration and external configuration (your network) are limited. With that said, we can suggest a few items for you to check.

    1. Navigate to portal.azure.com
    2. Select your web app
    3. Navigate to the networking blade
    4. Check the access restriction feature. Make sure there isn't anything here such as 0.0.0.0/0, which would block internet access.

    If there are no access restrictions in place, I would suggest scaling your web app up to see if this resolves the issue.

    1. Select the scale up blade
    2. If you're using something like a standard S1, try selecting the standard S2 and then click the 'select' button.
    3. Wait a few minutes and then see if you are able to access kudu

    Let us know the outcome of the above steps.


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.