YunoHost-Apps / weblate_ynh

Weblate package for YunoHost
https://weblate.org/
GNU Affero General Public License v3.0
12 stars 11 forks source link

use logrotate for /var/log/uwsgi/app/weblate #22

Closed Psycojoker closed 5 years ago

Psycojoker commented 5 years ago

Hello,

Would it be possible to add logrotate to handle weblate logs? On saperlipopette they end up taking 7.7 Gb of place :x

Apparently you simply need to use the "ynh_use_logrotate" helper as shown here https://yunohost.org/#/packaging_apps_helpers_en

Kind regards,

Jibec commented 5 years ago

Oh, is dear, I noticed this email every once in a while and without understanding why etckeeper was eating all my disk. Is this the same issue you're having?

Psycojoker commented 5 years ago

I don't think so, etc keeper is only for things in /etc, logs are in /var/log so that shouldn't be linked.

You can try to run a "ncdu /etc" to debug that, you either has a super very mega often file changing in /etc or very huge files that shouldn't be there.

Jibec commented 5 years ago

Hello, this should be fix by https://github.com/YunoHost-Apps/weblate_ynh/pull/23

your review would be useful, but don't use it yet for production, I only did basic tests with VM+package check, not with my own server yet

Jibec commented 5 years ago

should be fixed by: https://github.com/YunoHost-Apps/weblate_ynh/pull/23 please reopen this issue if required

Psycojoker commented 5 years ago

Never implemented this myself, sorry :x (but LGTM)

Thx for your work :heart: