The bureaucracy was riddled with graft, corruption and inefficiency and was unprepared for war.