Hallo zusammen!
Ich habe, wie schon im Titel beschrieben ein Problem mit Nextcloud und Mariadb.
Zu meinem System: Als Betriebssystem verwende ich Openmediavult Version 5.6.26-1.
Darauf ist Docker und Portainer installiert, in dem Docker befinden sich Nextcloud und Mariadb als Stack. Der Stack ist folgendermaßen eingestellt.
db:
container_name: nextclouddb
image: lscr.io/linuxserver/mariadb:latest
restart: always
environment:
- PUID=998
- PGID=100
- TZ=Europe/Berlin
- MYSQL_ROOT_PASSWORD=%M2Y6S4Q0L%
- MYSQL_PASSWORD=%M2Y6S4Q0L%
- MYSQL_DATABASE=nextcloud_V3
- MYSQL_USER=nextcloud
- REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql
volumes:
- /srv/dev-disk-by-uuid-a24f91a8-54d1-4ffa-9a0f-fb8abc5c7d84/Config/mariadb:/config
ports:
- 3306:3306
nextcloud:
image: lscr.io/linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=998
- PGID=100
- TZ=Europe/Berlin
volumes:
- /srv/dev-disk-by-uuid-a24f91a8-54d1-4ffa-9a0f-fb8abc5c7d84/Config/Nextcloud:/config
- /srv/dev-disk-by-uuid-630e8d88-8d12-438a-8c2a-1ed283c61e92/Daten:/data
ports:
- 9082:80
- 9443:443
restart: unless-stopped
Display More
In dieser Konfiguration lief das System schon einige Zeit.
Anfang dieser Woche habe ich den Server neu gestartet, nach einer relativ langen Startphase ist das System soweit wieder hochgefahren. Allerdings erscheint seitdem eine Fehlermeldung beim Versuch die Nextcloud Seite aufzurufen.
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Im Log von Portaine
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /config/www/nextcloud/lib/private/DB/Connection.php:87
Mariadb Container:
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 998
User gid: 100
-------------------------------------
cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/30-config
cont-init: info: /etc/cont-init.d/30-config exited 0
cont-init: info: running /etc/cont-init.d/40-initialise-db
cont-init: info: /etc/cont-init.d/40-initialise-db exited 0
cont-init: info: running /etc/cont-init.d/90-custom-folders
cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
cont-init: info: running /etc/cont-init.d/99-custom-files
[custom-init] no custom files found exiting...
cont-init: info: /etc/cont-init.d/99-custom-files exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mariadb (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
[ls.io-init] done.
s6-rc: info: service 99-ci-service-check successfully started
220818 19:15:51 mysqld_safe Logging to '/config/databases/8035d31947b8.err'.
220818 19:15:51 mysqld_safe Starting mariadbd daemon with databases from /config/databases
Display More
Laut Internet lässt dieser Fehler "mysqld_safe Starting mariadbd daemon with databases from /config/databases" darauf schließen, dass nach einem Update von Mariadb die Datenbank "Kaputt" gegangen ist. Angeblich soll man das beheben können, indem man folgenden Befehl eingibt "mysqld --tc-heuristic-recover rollback". Das habe ich auch versucht allerdings funktioniert der Befehl nicht bzw. er läuft auf einen weiteren Fehler.
bash: /root/.bashrc: Permission denied
abc@8035d31947b8:/$ mysqld --tc-heuristic-recover rollback
mysqld (mysqld 10.5.16-MariaDB-log) starting as process 354 ...
InnoDB: Uses event mutexes
InnoDB: Compressed tables use zlib 1.2.12
InnoDB: Number of pools: 1
InnoDB: Using crc32 + pclmulqdq instructions
mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
InnoDB: Using Linux native AIO
InnoDB: Initializing buffer pool, total size = 268435456, chunk size = 134217728
InnoDB: Completed initialization of buffer pool
InnoDB: 128 rollback segments are active.
InnoDB: Creating shared tablespace for temporary tables
InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
InnoDB: File './ibtmp1' size is now 12 MB.
InnoDB: 10.5.16 started; log sequence number 35064; transaction id 8
Plugin 'FEEDBACK' is disabled.
InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
Heuristic crash recovery mode
Please restart mysqld without --tc-heuristic-recover
Recovering after a crash using /config/log/mysql/mariadb-bin
InnoDB: Buffer pool(s) load completed at 220818 19:48:24
Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
[ERROR] Can't init tc log
[ERROR] Aborting
abc@8035d31947b8:/$
Display More
Die Zeile mit dem Fehler "Can´t init tc log" soll angeblich auftreten, wenn das System zu wenig Speicherplatz besitz. Allerdings ist das bei mir nicht der Fall, wie im Bild zu sehen ist.
Damit bin ich ziemlich ratlos woran es scheitert oder was genau mein Fehler ist .
Ich hoffe auf eure Ideen/Ratschläge und Hilfe.