Find cron task for "Delete all repositories' archives (ZIP, TAR.GZ, etc..)" #395
Closed
opened 2022-03-10 18:15:28 +00:00 by greg
·
4 comments
No Branch/Tag Specified
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
service
discourse
Kosmos Community Forums
Infrastructure metrics, alerts, notifications, etc.
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
service
gitea
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#395
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We've found out that the repository archives for mastodon was taking 89GB (!) of disk space, since it's generating an archive for every tag. There's a task on the admin dashboard to run it, but there's nothing in the docs.
There's no way in the docs to disable generating these archives.
Find out how the task is named, and schedule it in the config file (maybe once a week or even every day?)
https://discourse.gitea.io/t/how-to-configure-cron-task-for-delete-all-repositories-archives-zip-tar-gz-etc/4848
As a temporary fix, I added a cron job for root to delete the archive files manually every 15 minutes for now.
hacky af.
according to that forum thread there's
cron.archive_cleanupandcron.delete_repo_archivesinapp.example.ini, maybe that's a better solution?See #423, which solved this issue by adding the (undocumented) cron job for the latter task.
However, it's still hacky IMO, since Gitea shouldn't create any archives in the first place, when your repo doesn't opt into that.