Update Nextcloud 24.0.7

Hallo,

ich habe gerade das Update auf die neue Version gemacht, hat auch geklappt, aber nun bekomme ich in der Nextcloud folgende Meldung angezeigt, wie kann ich diese beheben ?

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.

In der Datenbank fehlen einige Indizes. Auf Grund der Tatsache, dass das Hinzufügen von Indizes in großen Tabellen einige Zeit in Anspruch nehmen kann, wurden diese nicht automatisch erzeugt. Durch das Ausführen von "occ db:add-missing-indices" können die fehlenden Indizes manuell hinzugefügt werden, während die Instanz weiter läuft. Nachdem die Indizes hinzugefügt wurden, sind Anfragen auf die Tabellen normalerweise schneller.

    Fehlender Index "mounts_class_index" in der Tabelle "oc_mounts".

Die Fehlermeldung selbst gibt dir den entscheidenen Hinweis, wie du das Problem lösen kannst (und warum das nicht automatisch geschieht).

Als weiteren hinweis soll gelten: bitte im Installationsordner von Nextcloud ausführen… am besten in dieser Form

sudo -u www-data php occ db:add-missing-indices

wobei www-data der Benutzer sein sollte, dem die Nextcloud-installation gehört (“webuser” genannt). Standard ist oftmals www-data

1 Like

Leider bekomme ich dann angezeigt :

Could not open input file: occ

Meine Installation liegt übrigens in var/www/nextcloud

Und mit dem Befehl : sudo -u www/nextcloud php occ db:add-missing-indices

bekomme ich dann die Meldung : sudo: unable to initialize policy plugin

ich hoffe, sie liegt in /var/www/nextcloud

und bitte geht in diesen Ordner. cd /var/www/nextcloud und dann per paste & copy den Befehl von oben. Es kommt auf jedes Leerzeichen, jeden Strich usw an. Also nicht nur in etwa richtig eingeben sondern ganz exakt.

Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Check indices of the oc_mounts table.
Adding mounts_class_index index to the oc_mounts table, this can take some time…
oc_mounts table updated successfully.

Alle Überprüfungen bestanden.

Ok, nun hat es geklappt. Danke für die Hilfe.

1 Like