LANgenoten artikel

Nextcloud AIO: melding “Database missing indices”

Lees of reageer op LANgenoten →

Probleem

In het Nextcloud Administration Center kreeg ik onder Security & setup warnings de volgende melding te zien:

Database missing indices

Detected some missing optional indices. Occasionally new indices are added
(by Nextcloud or installed applications) to improve database performance.
Use the command `occ db:add-missing-indices` to add them.

Missing indices:
- "mail_msg_thrd_root_snt_idx" in table "mail_messages"
- "mail_recip_eml_type_mid_idx" in table "mail_recipients"

Het ging om een Nextcloud AIO-installatie. De ontbrekende indexen leken bij de tabellen van de Nextcloud Mail-app te horen.

Omgeving

Installatietype: Nextcloud AIO
Nextcloud-container: nextcloud-aio-nextcloud
Database-container: nextcloud-aio-database
Mail-app geïnstalleerd: ja

Wat ik wilde oplossen

Ik wilde de waarschuwing uit het Administration Center oplossen zonder handmatig in PostgreSQL tabellen te gaan aanpassen.

Nextcloud geeft zelf aan dat dit via occ db:add-missing-indices kan, maar bij AIO moet je dat commando wel in de juiste container uitvoeren.

De oplossing staat in de reactie hieronder.

Lees of reageer op LANgenoten →