Build error: Error while cloning repository
I’ve attempted to restart and perform a factory build multiple times, yet thebuild errorpersists. I’ve also researched and tried solutions from similar issues, but to no avail.image1286×381 21.8 KBSpace link:Image Matching Webui - a Hugging Face Space by RealcatThanks for your help:)
2024-10-25T00:49:28Z
I deleted the Gradio version specification in the requiements.txt file and changed the Gradio version specification in the README.md file to 4.x. The behavior changed a bit, but the git clone still fails…I wonder if it has something to do with the fact that the result of Space’s automatic virus scan isunsafe? It might not be related.Edit:I’ve looked at the commit history and there doesn’t appear to be any git-related changes in the past month. Something about a spec change in the HF space or a bug.I can’t tellwhich git clone is failing, which is a problem to work around.I commented out the Dockerfile stuff and it still happens.I found similar symptoms, but they do not seem to be exactly the same situation.Error while cloning Space repository - No Build LogsSpacesHi, I’ve seen this postError while cloning Space repositoryand wanted to check if I am experiencing a server error or if I’ve done something wrong. My app was working a few days ago, but when I went to share it with someone I encountered a build error (see below). There are no Build Logs or I’d provide those as well.[2022-06-15_15-20-28]Any help or guidance would be appreciated.
2024-10-25T10:52:20Z
Thank you for the suggestions. I tried them, but they still aren’t working.
2024-10-25T11:22:50Z
This is a very troublesome error, I can only get a“503”inDev mode, I tried moving it to Zero GPU space and got a build error with no information.You might want to ask the staff on the HF Discord.Join the Hugging Face Discord!Community CallsHey@John6666@mmty!Feel free to trythis link, or alternatively, you can try searching hugging face within Discord. Let me know if it works![image]In the case of these strange errors, the cause is usually that something is wrong with the Spaces-related settings or server settings. The user can only work around it by using a roundabout way, not a solution. However, if the error message does not provide this much information, there is no way to work around it…Usually error messages are not meant to harass, but to debug…My guess is that this error is not due to any recent changes you have made to Spaces, but that you got caught up in some change on the HF side. You probably can’t get around it without changing something fundamentally.There are plenty of Spaces that use Dockerfile or github resources, so that’s not the only cause. I really don’t know.
2024-10-25T16:05:15Z
Thank you very much for your response! I am at my wit’s end and am currently trying to reach out to HF staff for assistance.
2024-10-26T03:59:07Z
Update: I think the issue might be the large LFS files in my original space:Image Matching Webui - a Hugging Face Space by RealcatI created a new space with minimal requirements, and it builds successfully:huggingface.coImatchui - a Hugging Face Space by RealcatDiscover amazing ML apps made by the communityBut still unsure what to do with the old space…
2024-10-26T04:24:50Z
CPU space storage is 50 GB, so large files can cause capacity errors. But in that case, of course, the disk space error will show up first.To begin with, this is crashing before the requiements.txt and others are referenced…even if you write a git lfs in packages.txt, the program is not going to download the file. I guess that’s why it’s not going that far.I guess a workaround would be toput the large files in the model repo or dataset repo and download them when needed, but that’s a lot of work if they are in a deep path. If the symptom is this, it’s 90% likely a bug in the Spaces git lfs. I’ve joined Discord too, so I’ll report it there when I get a chance.
2024-10-26T04:49:10Z
Yep, I’m planning to move the largethird_partyanddatasetsto Hugging Face models and datasets. It’s a smart way to keep the space small.
2024-10-26T04:55:03Z
If it’s a model or dataset repo, you can upload a 50GB file up to 300GB per repo, or even more than 300GB if you get permission, although I don’t know how. And while Spaces storage is slow, model and repo storage is fast. There is no way not to use this. I can’t not use it… but it requires programming… yay more work!
2024-10-26T18:20:21Z
Update: Resolved (might be buggy) by moving the large LFS model files from space storage to Huggingface’s model hub for downloads. Keeping the space compact is the key to successful builds.huggingface.coImage Matching Webui - a Hugging Face Space by RealcatDiscover amazing ML apps made by the community
2024-10-27T00:26:07Z
Glad to see it’s working now, but the HF bug is still there…Oh well, they’ll fix it eventually.
2024-11-03T18:28:29Z
I have the same problem, but my model requires a lot of different model checkpoints. Is there any solution other than hosting on Huggingface’s model hub for download? Thanks.https://huggingface.co/spaces/basso4/FPT_VTON/tree/main/ckpt
2024-11-04T00:45:57Z
None so far. There are at least four more in progress at the same time, along with this issue.DiscordDiscord - Group Chat That’s All Fun & GamesDiscord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.