-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Git Bundles with LFS #17207
Comments
Issue is probably related to changes made under #14726 |
Still an issue |
Weekly bump. Still need to manually edit DB. |
Weekly bump. I don't like manipulating the MySQL DB. |
I missed a week of bumping. Please fix so I don't have to manually edit the mysql db. |
@stu1811 we are all volunteers here, if you'd like to prioritize this you have a couple of options 1. Create a PR yourself, or 2. Fund a developer/put a bounty forward for this |
I think maybe the title is confusing. Did you mean you think this is a bug caused by #14726 ? |
@techknowlogick I realize this is volunteer project and everyone does awesome work. I was hoping to at least get it acknowledged and marked as a bug. @lunny Yes, I belive #14726 caused the problem. Prior to 1.15.0 my process for transferring bundles between sites was the following: Source Site
Destination Site
Since 1.15.0 I cannot merge the branches from the bundle because gitea cannot find the new files in the LFS repo. I get a 404 error. Eventually I figured out the LFS files are tracked in the lfs_meta_object table. When I add the files to the table I can merge branches from the bundle. |
Which route returned 404 for you? Could you give some logs? |
@lunny let me know if you need any other debug or logs. I created a new sample repo. Added two new lfs files and cloned to another machine.
On the original host when I run a mysql query here is the lfs_meta_object table. On the machine I cloned to the table is empty. If I manually populate the table on the machine with the clone I can successfully do a
You can also test this using the gitea web interface. Go to https://GITEA_HOST/TEAM/PROJECT/settings/lfs/show/LFS_SHA`. Both SHAs are reachable on the host system. They are not reachable on the cloned system. |
Are you using Gitea v1.15.6? |
Our production system is 1.15.4 and the test system is 1.15.6 |
Gitea Version
1.15.3
Git Version
2.24.1
Operating System
CentOS 7.2
How are you running Gitea?
I'm running gitea locally via systemd.
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I use git bundles to sync two remote sites. We grab all recent LFS files, tar them up, and extract on the remote site. This has worked for over a year now without any issues. Since 1.15.0 this process does not work anymore. I get a 404 error when I try to fetch the LFS files. I discovered a workaround where I extract the files into gitea/data/lfs and then manually insert a row into the lfs_meta_object table with the appropriate info, then I can fetch the new files. For some reason the extraction is no longer being added to the lfs_meta_object automatically
Screenshots
No response
The text was updated successfully, but these errors were encountered: