• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Error_log ate all disk space, rotation and delete fails.

swaan

New Pleskian
So an error_log file managed to get so large in a short time that it ate up almost all the disk space. It is 80% of the partition capacity so rotation fails (because it wants to create a copy first and runs out of disk space?). I tried to shut down all services to rm the file but it gets recreated with the rotation every time. I also tried creating a new error_log file (mv, touch) but it too gets overwritten. What now? :)

Running on Ubuntu 16 LTS
 
Last edited:
fixed it:
Code:
truncate -s 0 error_log
then ran the logrotate manually. Hope this procedure is ok?
 
Back
Top