Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Garbage collect LFS meta objects cancelled: unable to remove meta-object #26135

Closed
earl-warren opened this issue Jul 25, 2023 · 0 comments · Fixed by #26122
Closed

Task: Garbage collect LFS meta objects cancelled: unable to remove meta-object #26135

earl-warren opened this issue Jul 25, 2023 · 0 comments · Fixed by #26122
Labels

Comments

@earl-warren
Copy link
Contributor

earl-warren commented Jul 25, 2023

Description

The cron job to garbage collect LFS fails.

Steps to reproduce:

  • docker run -d --name gitea -p 8081:3000 -e GITEA__server__LFS_START_SERVER=true -e GITEA__security__INSTALL_LOCK=true -e GITEA__log__LEVEL=debug -e GITEA__server__ROOT_URL=http://0.0.0.0:8081/ gitea/gitea:1.20 bash -c '/bin/s6-svscan /etc/s6 & sleep 10 ; su -c "gitea admin user create --admin --username root --password admin1234 --email [email protected]" git && sleep infinity'
  • Upload a LFS file to a repository
  • Go to the admin panel
  • Manually run the cron job to garbage collect LFS
  • Hover on the fail button and see the error message

Gitea Version

v1.20.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

docker run -d --name gitea -p 8081:3000 -e GITEA__server__LFS_START_SERVER=true -e GITEA__security__INSTALL_LOCK=true -e GITEA__log__LEVEL=debug -e GITEA__server__ROOT_URL=http://0.0.0.0:8081/ gitea/gitea:1.20 bash -c '/bin/s6-svscan /etc/s6 & sleep 10 ; su -c "gitea admin user create --admin --username root --password admin1234 --email [email protected]" git && sleep infinity'

Database

SQLite

Related

lunny pushed a commit that referenced this issue Jul 26, 2023
This PR

- Fix #26093. Replace `time.Time` with `timeutil.TimeStamp`
- Fix #26135. Add missing `xorm:"extends"` to `CountLFSMetaObject` for
LFS meta object query
- Add a unit test for LFS meta object garbage collection
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Jul 26, 2023
This PR

- Fix go-gitea#26093. Replace `time.Time` with `timeutil.TimeStamp`
- Fix go-gitea#26135. Add missing `xorm:"extends"` to `CountLFSMetaObject` for
LFS meta object query
- Add a unit test for LFS meta object garbage collection
silverwind pushed a commit that referenced this issue Jul 26, 2023
Backport #26122 by @Zettat123

This PR

- Fix #26093. Replace `time.Time` with `timeutil.TimeStamp`
- Fix #26135. Add missing `xorm:"extends"` to `CountLFSMetaObject` for
LFS meta object query
- Add a unit test for LFS meta object garbage collection

Co-authored-by: Zettat123 <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant