-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MariaDB: mysqld.log has grown to 16GB and is not archiving #1457
Comments
You could disable binary logging by adding |
That's great, I'm happy to add that directive. Two questions:
|
Apologies, the configuration file should be To enable archiving of the log entries I recommend following the official guide: https://mariadb.com/kb/en/general-query-log/ |
The log filled up the hard drive again, so I stopped MariaDB, downloaded the log and manually removed 47,401,349 lines. The error seemed to be an endless repetition of the following:
|
OK question number 1 in #1457 (comment) is solved with these two commands which were affirmed in several support websites as correcting the error. They IMMEDIATELY worked for me.
I'll await your answer to question number 2 in the response above. |
You deactivated the binary logging as posted above. The error you got when running the "PURGE" command is that you didn't select any database. You can use the following to purge the binary logging
Regarding the errors in the log, you have different options.
https://docs.bitnami.com/general/apps/joomla/administration/configure-use-logrotate/ |
Hi Juan,
|
Hi @tooliedotter,
If the log files have grown too large, logrotate may not rotate them because of size restrictions. Another cause could be the disk space available. |
Thanks for the explanation Michiel. It's counter-intuitive that the logrotate would stop rotating at the time it most needs to function. I just checked the /opt/bitnami/mariadb/logs folder, and it appears that the log rotation has resumed. Thanks for your help, we can close this thread. |
Platform
AWS
bndiagnostic ID know more about bndiagnostic ID
9555ca43-7080-bfe0-4a73-9ce0a9b8c46d
bndiagnostic output
===== Begin of bndiagnostic tool output =====
[Resources]
Your disk is almost full: You could try to increase your instance's storage.
Please check your cloud provider's documentation for more information.
Your instance has little available RAM memory.
You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.
You can also enable swap memory to improve performance.
https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-m
emory-linux/
[Connectivity]
Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:
https://docs.bitnami.com/general/faq/administration/use-firewall/
[Mariadb]
Found recent error messages in the MariaDB error log:
Please check the following guide to troubleshoot MariaDB issues:
https://docs.bitnami.com/aws/apps/wordpress/troubleshooting/debug-errors-m
ariadb/
bndiagnostic was not useful. Could you please tell us why?
I am already aware that the disk is nearly full; the huge MariaDB Log file is why!
Describe your issue as much as you can
The mysqld.log file has grown to 16.5GB in size; it appears to have stopped archiving each week. The most recent log archive date is 5 weeks ago. In order to do anything I had to delete some files, but that doesn't stop the MariaDB log file from continuing to grow. I was planning to upgrade my server next month, but what do I do about this out-of-control log? How can I get the automatic archiving/purge cycle restarted?
The text was updated successfully, but these errors were encountered: