Docker logs are not being logrotated #1761
Replies: 9 comments 14 replies
-
Same with me |
Beta Was this translation helpful? Give feedback.
-
I'm using this to get the top 20 file sizes: |
Beta Was this translation helpful? Give feedback.
-
Seems like it is filling up fast with this error: my server is running Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-56-generic x86_64) do I need to run a mysql upgrade from docker |
Beta Was this translation helpful? Give feedback.
-
Hi any news on this one? It's weird that the hard disc is filling up full every 4 days with 20GB of free space. I'm on Ubuntu 22.04 |
Beta Was this translation helpful? Give feedback.
-
Fix has been shipped in the nightly build. It will be released on Monday. To update to nightly, use command: ee cli update --nightly You can update to the nightly build and test it over the weekend and see what is the status of the disk. |
Beta Was this translation helpful? Give feedback.
-
Fixed in EE v4.6.5. To update, use command: ee cli update |
Beta Was this translation helpful? Give feedback.
-
Ok so seems like i found the culprit, the logrotations are not working correctly on all of the sites. These include nginx and php error logs. Is there any command I should run to get it to work properly? I'm also getting a ton of errors inside of the php one with: Other than that, I checked that the logrotate.d/easyengine has all the sites listed.
it seems that only the error.log and access.log in each folder aren't rotated correctly, resulting in huge file sizes. |
Beta Was this translation helpful? Give feedback.
-
Can anyone help? |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, nginx access file is huge: |
Beta Was this translation helpful? Give feedback.
-
I'm using EE 4.6.3 and I believe that the docker logs are not being log rotated upon investigating my hard disk size filling up quite fast.
Under /etc/docker/daemon.json you need to add:
"log-driver": "json-file",
"log-opts": {
"max-size": "20m",
"max-file": "10",
}
Also noticed that CPU usage is higher on PHP-FPM on this new version. Any ideas?
If there is a setting that I have missed, please do let me know. Thanks
Beta Was this translation helpful? Give feedback.
All reactions