question

AshutoshThakur-5121 avatar image
0 Votes"
AshutoshThakur-5121 asked ajkuma-MSFT answered

NodeJS:- service is unavailable error 503

For more than 30hrs my node js website is showing service is unavailable. We are using this just for testing and not used for more than 30hrs but still the same error is showing to us.

Please resolve this error as soon as possible.
Thanks

azure-webapps-content-deployment
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@AshutoshThakur-5121, Firstly, apologies for any inconvenience.
Just to clarify, did you provision this WebApp only just before ~30 hrs? /Is this a new WebApp (just recently deployed)?
What App Service Plan are you using? In which region have you provisioned the WebApp? Were there any changes just before the issue started?

This (503 -service unavailable) 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.

To start with - In Azure Portal > On the App Service App, in the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” > “Availability and Performance” & "Best Practices", to fetch more details on the error.

81213-image.png




image.png (48.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@AshutoshThakur-5121, Adding more:

-Check to see if Service health points to any issues -https://docs.microsoft.com/azure/service-health/service-health-overview
-On Free or Shared tiers - If an app exceeds the quotas, the app is stopped until the quota resets - kindly review this.
-If feasible restart the WebApp and check.


Kindly try the steps outlined here and let us know how it goes. I'll follow-up with you further.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ajkuma-MSFT I am using free tier and i have deployed this app on march 14 and it was working well and on morning of 23rd march it started showing server 503 error from then i waited till next 30hrs with no usage of website but still it is showing service is unavailable.

As you said to look on diagnose and solve problem section but it is loading for a long time of 10 mins with no results appearing
81252-screenshot-631.png

I even restarted the website but no avail.

location for deployed app is central US.

This app was running fine and suddenly this error has occured


0 Votes 0 ·
ajkuma-MSFT avatar image ajkuma-MSFT AshutoshThakur-5121 ·

@AshutoshThakur-5121, Thanks for the reply.

could you please review the status of the quota and status of the WebApp from the Azure Portal.

-On Free or Shared tiers - If an app exceeds the quotas, the app is stopped until the quota resets - kindly review this.

Review the logs | Go to the Debug Console site https://yoursite.scm.azurewebsites.net/DebugConsole
Your application is throwing uncaught exceptions – Check d:\\home\\LogFiles\\Application\\logging-errors.txt file for the details on the exception thrown.



0 Votes 0 ·
ajkuma-MSFT avatar image ajkuma-MSFT AshutoshThakur-5121 ·

@AshutoshThakur-5121, Thanks again for sharing all the requested details.

Please review the following settings:

  • Node.exe is not present at the correct location. Check nodeProcessCommandLine setting.

  • Main script file is not present at the correct location. Check web.config and make sure the name of the main script file in the handlers section matches the main script file.

  • Web.config configuration is not correct – check the settings names/values.

If feasible scale-up (as a test) your WebApp to a higher. does Service Health shows any pointers? If you have any other WebApps, do they also show the same behavior on your subscription?

0 Votes 0 ·