I am running Nextcloud on Debian 11. Recently, I tried upgrading using php-updater, and afterwards MariaDB stopped working properly.
Nextcloud data in /var/www/owncloud/ (I am in the middle of a migration. Owncloud to nextcloudNextcloud worked so far, however, I wanted to use the php-updater script for the following nextcloudNextcloud upgrades)
Right before this issue happened, I used php-updater. It said
It looks like both, the 'Apache 2.0 Handler SAPI' libapache2-mod-php7.4 and the 'FastCGI Process Manager SAPI' php7.4-fpm are connected to it. This is a serious misconfiguration which must be fixed. I: The apache2Apache2 server has loaded the 'prefork' multi -processing module required by the Apache 2.0 Handler SAPI and the 'event' module, which is required for operation with php-fpm, is not loaded. I used the option disconnect apache2 from php*-fpm, without changing the loaded modules. , MariaDB takes minutes to stop/start, or fails to start.
- With
innodb_force_recovery=6, MariaDB briefly started once, but after restoring configs, it fails again.
- How can I force MariaDB to accept the existing
ibdata1.bak(InnoDB system tablespace)? - Is there a safe way to recreate the missing
ib_logfile*files so MariaDB will start? - If recovery is impossible, what’s the recommended way to salvage data from
ibdata1.bakand the/var/lib/mysql/owncloud/directory? I also have some backup data - at least before the nextcloudNextcloud migration, the relevant directories and a database backup waswere done. After the migration I backed up the data directory and once the database, when I once was able to restart the maria database.