andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.andreapollastri.net
1.09k stars 225 forks source link

Huge Logfile #244

Closed pyro-code01 closed 2 years ago

pyro-code01 commented 3 years ago

Hi,

I am running cipi v2, the issue maybe still persist in v3, the access.log logfile is huge, i have a busy adserver hosted there and the logfile itself is around 17GB.

image

Can you please check if you have this issue too, since this bug could fill up hdd space on less linux experienced users and cause system problems.

Edit: the logfile is owned by root group and www-data user, your install disables ssh root by default, so we cant delete the file using current home user access and also cipi user too. Only way is to log in with root recovery console on digital ocean, this could be problem on other providers.

Suggestion: I think serverpilot chunks the logfiles when they reach certain size and then deletes the oldest files when they are > n files.

Regards

andreapollastri commented 3 years ago

Hi, Thank You for the issue. I'll fix this behavior in next release.

andreapollastri commented 2 years ago

Hi! Sorry for the late but I just release v3.1.11 that solves this issue. Bye. Andrea

minkbear commented 2 years ago

@andreapollastri Is that possible to use logrotate package (https://logtail.com/tutorials/how-to-manage-log-files-with-logrotate-on-ubuntu-20-04)