Gitea: Git Healthcheck/GC failures (gc.log) #38

Open
opened 2023-02-17 11:34:34 +01:00 by Arnd Marijnissen · 0 comments

There are a number of repositories that have gotten to have a 'gc.log' file; most with the following contents:

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

The implication seems to be that the garbage-collection isnt functioning properly (it should, internally, also be doing a git prune, according to documentation on the subject).

The current setup does not have the garbage-collection enabled (its off by default), and having triggered it manually a little while before, it's clear that some repositories have a git-repo that's 'complex' enough to have a default timeout of 60 seconds being way too short for that. Even the git.timout GC of 360 seconds seems to be too short for some repositories.

Proposal for now is to add/modify the app.ini with the following:

[cron.repo_health_check]
TIMEOUT=600

[cron.git_gc_repos]
ENABLED=true
SCHEDULE@every 168h
TIMEOUT=600

as well as change the GIT GC timeout

[git.timeout]
GC=600
There are a number of repositories that have gotten to have a 'gc.log' file; most with the following contents: ``` warning: There are too many unreachable loose objects; run 'git prune' to remove them. ``` The implication seems to be that the garbage-collection isnt functioning properly (it should, internally, also be doing a git prune, according to documentation on the subject). The current setup does not have the garbage-collection enabled (its off by default), and having triggered it manually a little while before, it's clear that some repositories have a git-repo that's 'complex' enough to have a default timeout of 60 seconds being way too short for that. Even the git.timout `GC` of 360 seconds seems to be too short for some repositories. Proposal for now is to add/modify the app.ini with the following: ``` [cron.repo_health_check] TIMEOUT=600 [cron.git_gc_repos] ENABLED=true SCHEDULE@every 168h TIMEOUT=600 ``` as well as change the GIT GC timeout ``` [git.timeout] GC=600 ```
Arnd Marijnissen added the
Type
Deployment
label 2023-02-17 11:34:34 +01:00
Arnd Marijnissen self-assigned this 2023-02-17 11:43:15 +01:00
Bart van der Braak added this to the DevOps Progress Board project 2024-07-16 12:57:41 +02:00
Bart van der Braak changed title from Git Healthcheck/GC failures (gc.log) to Gitea: Git Healthcheck/GC failures (gc.log) 2024-07-17 15:16:32 +02:00
Bart van der Braak added the
Service
Gitea
label 2024-08-01 11:15:39 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/blender-projects-platform#38
No description provided.