Hi,
I have been happily running the OLS Wordpress VM on the GCP platform. Suddenly I started getting the "Error establishing a database connection" error.
I tried including the define('WP_ALLOW_REPAIR', true); in WP-config.php file and accessing and fix through mysite.com/wp-admin/maint/repair.php but I get same error.
Then I tried accessing PHPMyAdmin and login to get a manual backup. Unfortunately, the WordPress USERNAME and PASSWORD in wp-config.php file doesn't seem to work.
In SSH I tried to check the MariaDB status and I get following error message
I tried restarting the server but I'm unable to do so.
I appreciate if anyone can help.
I have been happily running the OLS Wordpress VM on the GCP platform. Suddenly I started getting the "Error establishing a database connection" error.
I tried including the define('WP_ALLOW_REPAIR', true); in WP-config.php file and accessing and fix through mysite.com/wp-admin/maint/repair.php but I get same error.
Then I tried accessing PHPMyAdmin and login to get a manual backup. Unfortunately, the WordPress USERNAME and PASSWORD in wp-config.php file doesn't seem to work.
In SSH I tried to check the MariaDB status and I get following error message
Code:
mariadb.service - MariaDB 10.3.16 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Tue 2019-12-10 05:47:08 UTC; 7h ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 4428 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, st
Process: 4350 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recover
Process: 4348 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SU
Process: 4347 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUC
Main PID: 4428 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
Tasks: 3 (limit: 661)
CGroup: /system.slice/mariadb.service
└─32608 /usr/sbin/mysqld
Process: 4347 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Main PID: 4428 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
Tasks: 3 (limit: 661)
CGroup: /system.slice/mariadb.service
└─32608 /usr/sbin/mysqld
Dec 10 05:43:34 openlitespeed-wordpress-2-vm systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Dec 10 05:43:34 openlitespeed-wordpress-2-vm systemd[1]: Starting MariaDB 10.3.16 database server...
Dec 10 05:43:35 openlitespeed-wordpress-2-vm systemd[1]: mariadb.service: Found left-over process 32608 (mysqld) in control group while starting unit. Ignoring.
Dec 10 05:43:35 openlitespeed-wordpress-2-vm systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Dec 10 05:43:35 openlitespeed-wordpress-2-vm mysqld[4428]: 2019-12-10 5:43:35 0 [Note] /usr/sbin/mysqld (mysqld 10.3.16-MariaDB-1:10.3.16+maria~bionic) starting as process 4428 ...
Dec 10 05:44:07 openlitespeed-wordpress-2-vm systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Dec 10 05:45:38 openlitespeed-wordpress-2-vm systemd[1]: mariadb.service: State 'stop-sigterm' timed out. Skipping SIGKILL.
Dec 10 05:47:08 openlitespeed-wordpress-2-vm systemd[1]: mariadb.service: State 'stop-final-sigterm' timed out. Skipping SIGKILL. Entering failed mode.
Dec 10 05:47:08 openlitespeed-wordpress-2-vm systemd[1]: mariadb.service: Failed with result 'exit-code'.
Dec 10 05:47:08 openlitespeed-wordpress-2-vm systemd[1]: Failed to start MariaDB 10.3.16 database server.
I appreciate if anyone can help.
Last edited: