Opened 8 years ago

Closed 8 years ago

#1857 closed task (fixed)

Gogs fills up disk space by storing packages

Reported by: strk Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords: gogs, tracsvn, git
Cc:

Description

TracSVN ended up out of space today, looking at the machine I found osgeolive-doc git repository having an archive/ directory containing 440 tar.gz files and 340 .zip files, as if a web bot triggered generation and Gogs cached the packages.

I'll see what can be done to tweak/disable the caches and/or instruct bots not to do that.

Change History (3)

comment:1 by strk, 8 years ago

Running the "Delete all repositories archives" operation from the Gogs admin panel freed up 48GB of space, from 92G used to 44G used !

Filed an upstream ticket to make this operation periodic: https://github.com/go-gitea/gitea/issues/769

Will now see if I can understand what generated all those archives (maybe a robots.txt could prevent that)

comment:2 by strk, 8 years ago

I confirm the archive downloaders were bots. One in particular keeps hitting at the moment: http://mj12bot.com/ Logs are in the form: "GET /gogs.*/archive/"

comment:3 by strk, 8 years ago

Resolution: fixed
Status: newclosed

I've filed #1858 to prevent bots, this one is closed for now.

Note: See TracTickets for help on using tickets.