And nowhere did the police fail quite so spectacularly as in Mosul in November , when a 5,000-man force deserted in the face of an insurgent uprising , sending Iraq 's second-largest city into chaos .