Server stuck in a restart loop