Embarrassingly enough, in my case it was a silly mistake. I was starting the cluster from the terminal and then closing the terminal window — which killed the entire session. All I had to do was minimize the terminal instead, and everything started working