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

Closed
opened 2025-11-02 09:34:39 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @earl-warren on GitHub (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 root@example.com" 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 root@example.com" git && sleep infinity'

Database

SQLite

Originally created by @earl-warren on GitHub (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 root@example.com" 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](https://github.com/go-gitea/gitea/assets/109468362/9f0d4a79-ca70-41a2-9cb6-b6745668a677) ### 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 root@example.com" git && sleep infinity'` ### Database SQLite ### Related * https://github.com/go-gitea/gitea/issues/26093 * https://github.com/go-gitea/gitea/pull/26122
GiteaMirror added the type/bug label 2025-11-02 09:34:39 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11333