The target function is ln, there's an error on this line

you need to learn DCP ruleset in http://web.cvxr.com/cvx/doc/dcp.html to know why. Basically, CVX only accepts combinations of certain convex functions by certain rules. and read Why isn't CVX accepting my model? READ THIS FIRST!