Wer meinen bisherigen Anleitungen zum Thema Nextcloud gefolgt ist und das System exakt danach aufgebaut hat, wird feststellen, dass nach dem Upgrade auf Nextcloud 35 eine neue Warnmeldung in den Sicherheits- & Einrichtungswarnungen erscheint:

Fehlermeldung: Datenbankkonfiguration
Diese gilt es nun zu beseitigen. Konkret handelt es sich um einen Hinweis zur Größe der Logdatei von InnoDB. Dieser Wert sollte nach dem Upgrade auf Nextcloud 35 auf mindestens 256 MB angehoben werden.

InnoDB log file size anpassen
Hierzu muss der Parameter in die Konfigurationsdatei von MariaDB eingetragen werden.
Das einzufügende Snippet lautet:
|
1 2 3 |
# my.cnf [mysqld] innodb_log_file_size = 256M |
Dazu öffnet man die /etc/mysql/my.cnf:
|
1 |
sudo nano /etc/mysql/my.cnf |
und fügt das Snippet dem Block [mysqld] mitsamt Parameter ganz am Ende der Datei ein:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
GNU nano 8.4 my.cnf # The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order: # 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read. # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, # 2. "/etc/mysql/conf.d/*.cnf" to set global options. # 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options. # 4. "~/.my.cnf" to set user-specific options. # # If the same option is defined multiple times, the last one will apply. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/ # # This group is read both by the client and the server # use it for options that affect everything # [client-server] # Port or socket location where to connect # port = 3306 socket = /run/mysqld/mysqld.sock # Import all .cnf files from configuration directory !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mariadb.conf.d/ # my.cnf [mysqld] innodb_log_file_size = 256M |
Im Nachgang startet man den Datenbank-Server neu:
|
1 |
sudo systemctl restart mariadb |
Sobald der Dienst wieder läuft, verschwindet die Warnmeldung aus der Nextcloud-Übersicht.













Hallo,
Superhinweis,
wenn die Zeile
!includedir /etc/mysql/mariadb.conf.d/
definiert ist, dann ist es über sichtlicher die Ergänzung in einer Datei
/etc/mysql/mariadb.conf.d/99-nextcloud.cnf
einzutragen.
Hat bei mir wunderbar funktioniert.
Hallo Olaf,
danke für deinen Kommentar!
Eine neue Warnmeldung nach dem Upgrade, und die Lösung sind drei Zeilen in der my.cnf plus Neustart: So mag man das. Gelten die 256 MB genauso für die Nextcloud auf dem Raspberry Pi aus deiner RasPi-Reihe?