chown alone keeps the existing mode, so a directory that was not owner-writable still failed. Apply u+rwX,g+rwX as well.