Symptoms
When checking the log files at path "/var/log/wp-toolkit/," the size is significant. The file called "main-2021-01-05.log" in particular was unusually large. For example, over 100G. The ls command below shows the large file.
ls -lah /var/log/wp-toolkit/
Example output is listed below for an example of a large file.
140G Jan 5 20:44 main-2021-01-05.log
Invalid characters in a suspended account file can cause this issue to occur.
root@server ~]# diff /var/cpanel/suspended/cptest /root/cptest
1c1
< Se vencio el dominio principal y falta de pago
---
> Se venciâ–’ el dominio principal y falta de pago
WP Toolkit logs will contain backtraces similar to the attached image.
Description
WP Toolkit utilizes the WHM list accounts API call. The output received from WHM is in JSON format. Accounts that are suspended include details that are only read in cPanel as text. If the suspended text contains an invalid character, WP Toolkit logs a backtrace, causing logs to grow significantly.
We've opened an internal case with WP Toolkit developers to investigate this further. For reference, the case number is [EXTWPTOOLK-6224]. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Update:
This has been resolved in a previous update.
Version: 5.4.0 (26 Apr 2021)
- [-] (cPanel) WordPress Toolkit log file no longer devours all disk space on a server with a lot of accounts if cPanel account data contains unreadable characters. (EXTWPTOOLK-6224)
To clear any large existing logs, the following command can be used.
truncate --size 0 /var/log/wp-toolkit/main*
Comments
0 comments
Article is closed for comments.