How to fix these Nextcloud security warnings in DietPi?

Anything you like to share except a picture? Some more words? Or a reason why you ignored the troubleshooting template?

My absolute bad. I’m sharing the template now:

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | v9.6.1
  • Distro version | bullseye 0
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | RPi 4 Model B (aarch64)

Additional Information (if applicable)

  • Software title | Nextcloud
  • Was the software title installed freshly or updated/migrated? Not updated recently, these issues have always been there for as long as I can remember.
  • Can this issue be replicated on a fresh installation of DietPi? No idea.
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

Visit /nextcloud/settings/admin/overview

Expected behaviour

I’d like for none of these security errors to pop up. I’d like to fix them.

Actual behaviour

There are security errors popping up. See image.

Instead of occ you should use ncc to get things easier like Joulinar described.
Just execute ncc db:add-missing-indices.