[svn] How to fix "containing working copy admin area is missing" in SVN?

I had this error recently. It was caused by root owning a couple of files in the directory giving this error.

After I changed the permissions everything worked as expected.