Build/Deploy Failed in Azure - azure

Add or update the App Service deployment workflow configuration from … Build and deploy Node.js app to Azure Web App. My app wont deploy on azure for some reason.
deploy
Deployment Failed with Error: Error: Failed to deploy web package to App Service.
Site Unavailable (CODE: 503)

For a 503 error, I'd do the following:
Start by just restarting the site. If you're getting a 503, it's in a bad state. See what happens.
In the Azure Portal, go to the Web App management blade. Click on Diagnose and Solve Problems. There's lots of utilities and reports that might shed some light.
Go to the Metrics menu. You can check to see if you're suffering from resource exhaustion. Try CPU utilization and memory utilization.
Go to App Service Logs. Turn on Application Logging, Web Server Logging, Detailed Error Messages, and Failed Request Tracing. Failed Request Tracing is particularly applicable for 503 errors.

Related

Azure Web app service becomes unavailable for a few hours

My azure web app service suddenly becomes unavailable for a few hours.
The app hosts .net core 3.1 web API.
All the requests are pending for a few minutes and then fail. Restarting the app doesn't help. Stopping and starting again too.
Applications insights don't show those failed requests.
Please help, the app serves a lot of users and requests!
I have run Availability and Performance diagnostics at the time of the crash:
Everything looks just fine except the failed requests.
As suggested earlier , you can debug why the web app went unavailable by running the availability & performance under Diagnose and solve problems in the portal.
You can also refer this Azure documentation to troubleshoot Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service
if you are still not able to find any insights , why the webapp went unavailable you can open a discussion over Microsoft Q&A or please create a technical support ticker by following the link where technical support team would help you in troubleshooting the issue from platform end.

Azure Portal- The service is unavailable Error 503

I'm new to Microsoft Azure. I've created a service which is running in the Azure Portal. See the attached image. I have created a pipeline in Azure and created a release but I keep getting service unavailable see the error below.
> 2020-12-29T12:02:14.3749416Z ##[error]Failed to deploy web package to App Service.
2020-12-29T12:02:14.3769585Z ##[error]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503
On the Azure Portal when I click on the URL of my service I also get a service unavailable message. I know it's a free trial I'm running but I checked the status and the credits are still available to use.
Thanks for asking question! The simplest way is to restart your app. On the Azure Portal, on your app’s blade, you have the options to stop or restart your app.
Also, App Service provides an intelligent and interactive experience to help you troubleshoot your app with no configuration required. Access App Service diagnostics, for this navigate to your App Service app. In the left navigation, click on Diagnose and solve problems.
Scaling might be helpful: For more information on scaling, see Scale an app in Azure App Service.
Refer to Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service

How to diagnose AspNetCore application not starting on Azure App Service?

We have multiple AspNetCore applications hosted on an Azure Web App as OutOfProcess and deployed as virtual applications with separate paths.
We have the same setup in different environments, all infrastructure and applications are deployed automatically through our pipeline but it's only breaking in one environment and we can't find out why.
We have tried turning on stdoutLogEnabled to true. This reveals an invalid runtime.config.json error, I have read this can be caused by multiple issues but we can't identify any reason for it. We also intermittently see a 502.5 ANCM startup failure when navigating to the swagger URL for each application.
If we look in the application event logs in the Azure portal we are seeing this error failed to start process with command line 'dotnet .\<DLL>' with multiple retries. Failed to bind to port <PortNumber>
We can start the applications locally with Kudu by navigating to the location of the DLL and running dotnet <DLL>. The application starts successfully so it seems to be a problem on the web app. We've tried restarting and stopping and starting the web app, even tried scaling the app service to attempt getting a clean start but nothing has succeeded.
I'm not sure what other steps we can take to diagnose this issue or what we might have done wrong as the same applications are working fine in other environments.

My application successfully deployed in Azure but I can't hit the URL

Deployment succesful in Azure but when I click on my URL I get an a 503 error?
This is a Linux OS Web app (App is Node/React) I think it might have something to do with the low CPU resources as I am on the free plan in Azure?
When you browse to the app, it returns a HTTP "502 Bad Gateway" error or a HTTP "503 Service Unavailable" error.
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.
Troubleshooting steps to solve "502 bad gateway" and "503 service unavailable" errors
Troubleshooting can be divided into three distinct tasks, in sequential order:
Observe and monitor application behavior
Collect data
Mitigate the issue
I would suggest you to go through these troubleshooting steps, it will help finding the right error.

Azure Error 403 this site is stopped

I have a asp.net mvc5 site running off a azure website, its running off a D1 shared infrastructure.
In the last couple of days I've had a few issues when deploying to it. Its at times been unable to deploy. (i've hashed out my site name)
Error 26 Web deployment task failed. (Could not connect to the remote
computer ("#####.scm.azurewebsites.net") using the specified process
("Web Management Service") because the server did not respond. Make
sure that the process ("Web Management Service") is started on the
remote computer. Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)
And now when I deploy I'm getting
Error 403 - This web app is stopped.
. When I look in the azure portal it says the site is running and I cannot see anything in the ftp logfiles\http\rawlogs\ which would indicate this issue. i.e. I can just see 200 responses from then the site was last responding.
Restarting the site via the portal doesnt seem to make a difference.
How can i diagnose the cause of this problem? and is it possible that it could be related to any changes i have made to my application rather than a server infrastructure issue?
You may be running into Quota issues if your site is in SHARED mode. Please try upgrading to STANDARD mode.
Here is a screen shot:
I was having the same problem. Our site wasn't in shared mode and scaling up/down to another service plan helped for a moment but the problem quickly recurred.
Turned out the staging environment was bad.
To fix the problem, I had to swap, delete the staging slot, and then wait ~30 minutes before I could recreate it (got errors saying the hostname still existed).
I also had the same deployment problem from Azure Devops and the site wasn't in shared mode.
Failed to deploy web package to App Service.
Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
More Information: Could not connect to the remote computer ("######.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
Error: The remote server returned an error: (403) Forbidden.
Error count: 1.
Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
I wasn't able to get to the Kudu site (######.scm.azurewebsites.net) from my local machine but I was able to from a JumpBox VM in our Azure subscription.
After inspecting the settings at resources.azure.com I noticed that under the "web" settings:
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{SiteName}/config/web?api-version=2018-02-01
The "scmIpSecurityRestrictionsUseMain" value was set to "true". I set it back to "false" and was able to deploy and view Kudu locally again.

Resources