Is there a step by step diagnostic for when a Discourse site is found in a 502 Bad Gateway?

Is the disk full?

Does this happen frequently?

Look at /var/discourse/logs/rails/production.log