Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting 500 - Internal server error in Azure Website after restart

I have a web application in azure(App Service), recently i have restarted the app, after restaring i am getting:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Please let me know what could be the issue. application was working fine till that time. I didnt change any other settings. How to resolve this issue?

like image 433
Sriram Tamilarasan Avatar asked Sep 17 '25 00:09

Sriram Tamilarasan


2 Answers

Go to the app service, then pick Monitoring -> App Service Logs. Then enable Application Logging (FileSystem) and save the changes. Now go into Monitoring -> Log Stream and watch the Application Logs while the site is starting up, this will most likely give the detailed error message.

like image 121
Thomas Schmidt Avatar answered Sep 18 '25 15:09

Thomas Schmidt


There are a few things you can do step by step

Step 1: Use the KUDU console at https://sitename.scm.azurewebsites.net. Check if there are errors. More info about KUDU

Step 2: Have you turned on the detailed error message in the Diagnostics logs tab of the Azure portal. If not enable and see if you can track any error.This will give you a .zip file. Browse to LogFiles->DetailedErrors and here you should see some error pages.

Step 3: You can add Application Insights to your application and log those errors when you start the application

If nothing works, try restarting app service, or access it from a different location (because it happened to me earlier)

like image 21
Sajeetharan Avatar answered Sep 18 '25 13:09

Sajeetharan