error in connecting middle broker to head broker server