NodeJS - The service is unavailable for

Marek Sirkovský 1 Reputation point
2020-09-08T05:35:53.31+00:00

Hi,

I followed this tutorial: https://learn.microsoft.com/en-us/azure/app-service/quickstart-nodejs?pivots=platform-linux

But my service still shows: The service is unavailable.

My URL is:

https://testjunak7865.azurewebsites.net/

I contacted the chat - they have checked that my subscription is OK.
When I want to see the logs using Log Stream in Azure Portal, only what I see is a message "Connecting..."

I tried it several times. I created and deleted new App Service, but so far, I've had no luck.

Thank you for your time,

Marek

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 11,176 Reputation points Microsoft Employee
    2020-09-08T11:35:14.653+00:00

    Thanks for asking question! The Service unavailable error means the web site's server is simply not available right now. This problem is often caused by Application level issues, such as:
    • Requests taking a long time
    • Application using high memory/CPU
    • Application crashing due to an exception.

    You may check: Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service

    You can check your limit and usage in portal by going to "Diagnose and solve problems" section of your App Service blade, selecting "Best Practices", "Best Practices for Availability, Performance", and then "Temp File Usage On Workers".

    Checks and verifies if the Temp File System usage on worker instance is nearing their quota limit. Temp files are located in 'D:\local\Temp' and 'D:\local\AppData' folder. This does not account for site's content.

    Please note that the displayed usage and limits are per worker, and are aggregated across all apps in the same app service plan.

    Check: Understanding-the-Azure-App-Service-file-system

    To add to this if you are running on Linuxfree SKU, Consider running a production application on a Standard, Premium, or Isolated App Service Plan for better performance and isolation. These SKUs are best for production workloads.
    SKU options (Free, Shared, Basic) is recommended if you are still in testing mode.

    Check: Azure App Service Plan Pricing Information

    In case issue persists please send an email to AzCommunity[at]Microsoft[dot]com referencing this thread.


  2. Marek Sirkovský 1 Reputation point
    2020-09-12T11:06:09.533+00:00

    Using a payed subscription tutorial works. Probably there is an issue with my free subscription. Nevermind I will use the payed one