Where are you getting this 502 from? Is there any more details next to it?
Are there any relevant entries in /logs?
/logs