Clean expire package not clean all #10943

Closed
opened 2025-11-02 09:22:49 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @wenerme on GitHub (Jun 1, 2023).

Description

I want to clean up the expired packages, but run once only clean a little.

Gitea Version

1.9.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image
image
image
image
image
image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

Kube deolpy

Database

PostgreSQL

Originally created by @wenerme on GitHub (Jun 1, 2023). ### Description I want to clean up the expired packages, but run once only clean a little. ### Gitea Version 1.9.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots 1. <img width="532" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/52fa1407-0f58-4599-87e7-3072859d7458"> 2. <img width="269" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/a7915788-e4b5-495f-8a71-c8c5d8ee8bda"> 3. <img width="180" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/f037898f-26ad-413d-8f7c-cd3049f4a51e"> 4. <img width="267" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/36504f3c-a295-433c-9292-c381ec4f72f8"> 5. <img width="501" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/0f3ab610-f242-4c19-8150-c2798166d687"> 6. <img width="269" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/a7915788-e4b5-495f-8a71-c8c5d8ee8bda"> 7. <img width="509" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/af4b0d6a-724c-44dc-8cdd-f3060fd9239f"> ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Kube deolpy ### Database PostgreSQL
GiteaMirror added the topic/packagesissue/not-a-bug labels 2025-11-02 09:22:49 -06:00
Author
Owner

@sillyguodong commented on GitHub (Jun 1, 2023):

Please change the language to English before taking the screenshot...

@sillyguodong commented on GitHub (Jun 1, 2023): Please change the language to English before taking the screenshot...
Author
Owner

@KN4CK3R commented on GitHub (Jun 13, 2023):

I think you ran into https://docs.gitea.com/packages/usage/packages/storage#deduplication

These unreferenced blobs get deleted by a clean up job. The config setting OLDER_THAN configures how long unreferenced blobs are kept before they get deleted.

The blobs are only deleted after 24h with the default value.

@KN4CK3R commented on GitHub (Jun 13, 2023): I think you ran into https://docs.gitea.com/packages/usage/packages/storage#deduplication > These unreferenced blobs get deleted by a [clean up job](https://docs.gitea.com/administration/config-cheat-sheet#cron---cleanup-expired-packages-croncleanup_packages). The config setting OLDER_THAN configures how long unreferenced blobs are kept before they get deleted. The blobs are only deleted after 24h with the default value.
Author
Owner

@wenerme commented on GitHub (Jun 13, 2023):

@KN4CK3R The problem is I run clean expire package, every click/run will delete some packages, that means, the clean not delete all in once.

@wenerme commented on GitHub (Jun 13, 2023): @KN4CK3R The problem is I run clean expire package, every click/run will delete some packages, that means, the clean not delete all in once.
Author
Owner

@KN4CK3R commented on GitHub (Jun 15, 2023):

Because only unreferenced blobs are deleted which are older then 24h at the time of the click.

@KN4CK3R commented on GitHub (Jun 15, 2023): Because only unreferenced blobs are deleted which are older then 24h at the time of the click.
Author
Owner

@GiteaBot commented on GitHub (Sep 8, 2023):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Sep 8, 2023): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Author
Owner

@wenerme commented on GitHub (Sep 8, 2023):

Problem still exists, 1.20.3

image

Click

image image

Click

image image
@wenerme commented on GitHub (Sep 8, 2023): Problem still exists, 1.20.3 <img width="947" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/816e09e9-de19-4272-af24-c9745672798f"> Click <img width="587" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/a586b226-4b5b-41ab-9863-1593ac6807fc"> <img width="675" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/0c30353c-1fa4-48d6-8e39-7fa97f8bd169"> Click <img width="587" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/a586b226-4b5b-41ab-9863-1593ac6807fc"> <img width="686" alt="image" src="https://github.com/go-gitea/gitea/assets/1777211/b20ad7e8-6b8c-455b-bcf8-9922f3d4a31b">
Author
Owner

@KN4CK3R commented on GitHub (Sep 8, 2023):

#25307 is only in 1.21

@KN4CK3R commented on GitHub (Sep 8, 2023): #25307 is only in 1.21
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10943