Getting 502 - Bad Gateway errors on a Kentico site

Shane David asked on March 19, 2020 06:02

I have a Kentico website running in an Azure App Service, and i am getting 502 - Bad Gateway errors for some of the static resources (images) that the website tries to load.

If i try to load the homepage for example, using HTTPS i get these errors, but using HTTP i don't get them.

Recent Answers


Brenden Kehren answered on March 19, 2020 15:17

502 is pretty generic but check out what the resources (web app, database, cache service, etc) are running and up those services so you're less than 50% usage (CPU, memory, DTU, etc). Check the event log by running the following query:

SELECT TOP 100 * FROM CMS_EventLog ORDER BY EventTime DESC

And review the errors in the event log.

Turn on Application Insights on the website (done in the web app).

Turn on logging on the website (done in the web app).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.