Same problem, except it had nothing to do with root.
A client account was suspended & I found out why … the password was too complicated ^_^
Somehow the password: 23bS-jro,%a4:{H*
lead to a (possible) BUG, and it wasn't possible to log into CWP.
After changing the password to a more simpler version, everything was fine