I think you want to call cb() here? With this change, I get:
cb()
julia> solver(; cb=cb2) callback: iter= 8