We define a comonad cohomology of track categories, and show that it is related via a long exact sequence to the corresponding (S,O)-cohomology. Under mild hypotheses, the comonad cohomology coincides, up to reindexing, with the (S,O)-cohomology, yielding an algebraic description of the latter. We also specialize to the case where the track category is a 2-groupoid.