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

LFS exists on the server, but it doesn't work properly (missing in database) #32929

Open
leizhiren opened this issue Dec 20, 2024 · 7 comments
Open
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug

Comments

@leizhiren
Copy link

Description

I've encountered a problem. I've searched all over the Internet but haven't found a solution. The LFS files do exist on the server. When I clone them down and check the sha256, I can find the LFS files on the server. However, Gitea prompts that the LFS files are missing. If I clone them again, it will also prompt that the LFS files don't exist. Just because I manually renamed the git/lfs folder and then changed it back, what should I do? Now the LFS of all repositories doesn't work. Is there anyone who can help me solve this problem? The LFS files are all on the server, but Gitea insists that they don't exist. What should I do? I'm really worried.

Gitea Version

22.6.0 built with GNU Make 4.4.1, go1.22.10 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

fd2e99757aa2700a2c7c8445945708f3
e1920ac10182eb524a3fabd97cc67fd1
5176473f68e9f54b4055a531eeb2bdae

Git Version

git version 2.45.2

Operating System

Host Debian

How are you running Gitea?

Docker official image

Database

MySQL/MariaDB

@wxiaoguang
Copy link
Contributor

It means that it doesn't exit in database.

You could try to git lfs push --all to re-push all LFS files

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Dec 20, 2024
@wxiaoguang wxiaoguang changed the title It's extremely urgent. Help! LFS exists on the server, but it doesn't work properly. LFS exists on the server, but it doesn't work properly (missing in database) Dec 20, 2024
@leizhiren
Copy link
Author

这意味着它不存在于数据库中。

您可以尝试git lfs push --all重新创建所有 LFS 文件

那我几十个代码仓库都需要做这个事情,而且,还有很多仓库是并没有克隆到本地的,无法执行git lfs push --all

Then I need dozens of code repositories to do this, and there are many repositories that are not cloned locally and cannot execute git lfs push --all

@wxiaoguang
Copy link
Contributor

Then maybe need to figure out how to recover the database records

@leizhiren
Copy link
Author

Then maybe need to figure out how to recover the database records

Yes, do you know how you can help me?

@wxiaoguang
Copy link
Contributor

The only thing I can remember is that there is a LFS tool on the settings page. Some LFS objects could be recovered there.

image

@leizhiren
Copy link
Author

image
image

Thank you, but what's going on here?

@leizhiren
Copy link
Author

The only thing I can remember is that there is a LFS tool on the settings page. Some LFS objects could be recovered there.

image

It seems to be OK. It seems that after clicking the link, wait for a while. The single warehouse is repaired. Thank you. Is there a way to batch all warehouses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug
Projects
None yet
Development

No branches or pull requests

2 participants