I had difficulty installing Nextcloud due to how MariaDB was configured. See nextcloud/server#8442 for the details. I don't know if the documentation should be changed to
- say don't use MariaDB from the Ubuntu repos, use packages from the MariaDB project -or-
- manually create a root2 database user, and use that user for the Nextcloud database initialization step.
Depending on which option is chosen, the backup and restore instructions may have to change (due to character set and collation settings)