I think I have this exact same error, upgraded to Plesk 12 from 11 and the server went berserk, all kinds of limits reached. Now I get permanent "502 Bad Gateway" when trying to access Plesk.
I'm sure I had something similar happen to me in the past and all i had to do was delete a file that...