- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
As you can see in the error, is the database you are using down?
Can I login directly to the database using the database password set in wp-config.php?
Where are you running your database?
If you have a database outside of Lightsail you will need to change the "DB_HOST" value.
Hello,
Did you lose DB access before or after you "changed the hash password to the one provided on the Bitnami console?" Based on the above, it looks like you did not explicitly setup a DB correct, meaning you are using the default one local to the same instance running WordPress?
It's possible that you've changed the password to an incorrect one.
On the other hand, if everything worked and then stopped working without any manual changes, it is possible you are overloading your instance with traffic. You can look at bursting capacity vs. load per this guide: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity.
Based on the above description, it sounds more likely that the password has been changed to the wrong value, but please provide any info you can to clarify the steps leading up to the DB failures.
-Andy
I have the same issue for the past 5 days and tried to find the cause but I was unable to do so. Website traffic was per day average of 10 users. My website was under malware attack (Japanese keywords snippet) and It was removed from the website. However, after a few days, the site started to show a database error. I have tried to restart MariaDB but I could not. This was the command and result. bitnami@ip-###-##-##-##:~$ sudo /opt/bitnami/ctlscript.sh status mariadb Cannot find any running daemon to contact. If it is running, make sure you are pointing to the right pid file (/var/run/gonit.pid)
Hi Riku, thanks for your reply.
- "is the database you are using down?" I suspect the DB is down, I'm newbie on this and as far as I could google by the error message, I can't restart MySQL or MariaDB, I get other error messages on Bitnami.
- "Can I login directly to the database using the database password set in wp-config.php?" I didn't post the password in my question, if needed I can send it to you by PM.
- "Where are you running your database?" I only setup the instance and then moved my old site using All-in-one migration plugin. On the Lightsail console I'm running the WP instance, static IP, a DNS service and the CDN service, nothing else like containers.
- "If you have a database outside of Lightsail you will need to change the "DB_HOST" value." As far as I understand, the DB should be inside Lightsail.
Hope this can give you further info on my issue. KR
I have the same issue for the past 5 days and tried to find the cause but I was unable to do so. Website traffic was per day average of 10 users. My website was under malware attack (Japanese keywords snippet) and It was removed from the website. However, after a few days, the site started to show a database error. I have tried to restart MariaDB but I could not. This was the command and result. bitnami@ip-###-##-##-##:~$ sudo /opt/bitnami/ctlscript.sh status mariadb Cannot find any running daemon to contact. If it is running, make sure you are pointing to the right pid file (/var/run/gonit.pid)
same issues here. To try to fix this, I created multiple instances with different snapshots of the last 7 days, seems like the one from 7 days ago works, but not the rest of them, I compared the password in config file and they all have the same password
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
Hi Riku, thanks for your reply. "is the database you are using down?" I suspect the DB is down, I'm newbie on this and as far as I could google by the error message, I can't restart MySQL or MariaDB, I get other error messages on Bitnami. "Can I login directly to the database using the database password set in wp-config.php?" I didn't post the password in my question, if needed I can send it to you by PM. "Where are you running your database?" I only setup the instance and then moved my old site using All-in-one migration plugin. On the Lightsail console I'm running the WP instance, static IP, a DNS service and the CDN service, nothing else like containers. "If you have a database outside of Lightsail you will need to change the "DB_HOST" value." As far as I understand, the DB should be inside Lightsail.
If the database is running within Lightsail, you need to make sure the database is up and running. Make an SSH connection to Lightsail and start MySQL or MariaDB.
The following Bitnami documentation shows a command to restart each service at once, so please execute this command. https://docs.bitnami.com/google/infrastructure/mariadb/administration/control-services/
Hi Riku, I entered the restart comand and got this error: A Job for bitnami.service failed because the control process exited with error code. See "systemctl status bitnami.service" and "journalctl -xe" for details.
I also ran this "systemctl status bitnami.service" and got:
● bitnami.service - LSB: bitnami init script Loaded: loaded (/etc/init.d/bitnami; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-06-01 14:28:04 UTC; 3min 13s ago Process: 12340 ExecStart=/etc/init.d/bitnami start (code=exited, status=1/FAILURE) Tasks: 22 (limit: 2353) Memory: 184.5M CPU: 1.707s CGroup: /system.slice/bitnami.service