"502 Bad Gateway" is the standard HTTP error that indicates "I am a proxy, and the server I was supposed to proxy to wasn't responding". Here, this error is thrown by the nginx proxy that sits in front of all processes of DSS. Therefore, the error indicates that the IPython server wasn't running. You might have some information in DATA_DIR/run/ipython.log