question

picoage avatar image
0 Votes"
picoage asked JP-3700 published

Failed to deploy web package to App Service. Bad Gateway (CODE: 502)

Trying to deploy to app service form azure dev-ops but getting

"2021-08-31T09:45:30.6251650Z ##[error]Error: Error: Failed to deploy web package to App Service. Bad Gateway (CODE: 502)"

Also getting following error when trying to access Kudus:
"Server Error.
There was an unexpected error in the request processing."

azure-webapps
· 7
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.

Hi @bhargaviannadevara-msft ,

Yes, I have went through troubleshooting guide and Diagnose and solve problems I don't see any problem.

There where only two apps hosted in the service plan.

1 Vote 1 ·

@picoage Thanks for the response. Is it the case that you see issues only when attempting to deploy to your web app from Azure DevOps? Do any of the other publishing methods like Zip Deploy or FTP deploy work? Are you able to otherwise browse to and access your app normally without any issues?

0 Votes 0 ·
picoage avatar image picoage bhargaviannadevara-msft ·

@bhargaviannadevara-msft his happens only from dev-ops. Entire Kudos in down so I cannot ftp it.

0 Votes 0 ·
Show more comments

Hi @bhargaviannadevara-msft,
II am also facing the same issue for one of my web apps, I followed the troubleshooting guide but no luck.

1 Vote 1 ·

@PratyushBhandari-0348 Thanks for reaching out and for also sharing the workaround that helped you. If you are still blocked by this issue, please help me with the details of your environment as requested in the comment(s) above.

0 Votes 0 ·

@picoage Thanks for reaching out. 502 errors could be caused due to multiple application level issues. Have you had a chance to run through this troubleshooting guide to begin with? Does the issue persist despite a restart?

I'd suggest starting with the Diagnose and solve problems blade to quickly troubleshoot the issue and mitigate it. You can access the diagnostics tool on the left menu pane by navigating to your web app on the Azure Portal.

Please check and let us know your findings, and we can narrow it down further.

0 Votes 0 ·

1 Answer

PratyushBhandari-0348 avatar image
0 Votes"
PratyushBhandari-0348 answered JP-3700 published

I deleted and recreated the webapp then only it is working.

· 1
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.

Has anyone been able to find a solution? I have this issue too and I don't want to recreate my webapp.

0 Votes 0 ·