Oc_notifications is corrupted

Bei was für einer Aktion ist der Fehler aufgetreten?
Beim Aktivieren der Activity App und es werden keine Aktivitäten mehr in den Gruppenfolder angezeigt. Unter Dateien → Details → Liste der Aktivitäten ist leer

oc_notifications hat über 8 Millionen Einträge und ist 2,6 GB groß.
oc_activity hat über 1,5 Millionen Einträge und ist 1,3 GB groß.

Log:
DbalException An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1712 Index oc_notifications is corrupted

Apache Root Server

  • Nextcloud Version: 30.0.8

  • PHP Version: 8.3

  • Welche Datenbank? MariaDB

  • Habt ihr die Logs angesehen von Nextcloud und von System?

did you try

occ db:add-missing-columns                          
occ db:add-missing-indices                          
occ db:add-missing-primary-keys                     
occ maintenance:repair

Yes, After every Update and now again. :frowning:

Gibt es eine Möglichkeit, die beschädigte Tabelle wieder zu reparieren?

This is the type of thing that generally occurs when there are filesystem problems, a server gets improperly shutdown (i.e. sudden power loss), or - sometimes - a bug in MariaDB itself.

You can use your favorite search engine (including search this forum - example) for some the repair / dump / restore scenarios that have worked for some people. However, you must identify the underlying cause. Otherwise you’re just treating symptoms and the problem will presumably return.

So:

  • What version of MariaDB are you using?
  • Have you had any improper shutdown events or locked up server situations?
  • Are there any symptoms of hardware or software problems at the OS level?