Error: Repository storage limit reached (Max: 1 GB)
HiI cloned a working space ,but when I try modifying the code and commit to main, I receive this error.  My general space is ok, just 59GB used. Also, even just factory reset or restart of the space doesn’t work, it stuck in endless building process, without any output on log file . Any ideas ?Thanks for reading
2024-12-03T01:19:37Z
I am having exactly same issue.I tried with hubapi also, but same.Any fix for this?
2024-12-03T03:40:30Z
The build stack is probably the same as this. Also, the free CPU space was probably 2 cores, 16GB RAM, 0GB VRAM, and 50GB SSD…Build error: Error while cloning repositorySpacesI’ve attempted to restart and perform a factory build multiple times, yet the build error persists. I’ve also researched and tried solutions from similar issues, but to no avail.[image]Space link:Image Matching Webui - a Hugging Face Space by RealcatThanks for your help:)
2024-12-03T03:51:43Z
I have the same issue too!Today, I tried to edit my space code, but cannot commit new updates due to storage limit.Any solution for this? I am using ZeroGPU.
2024-12-03T03:54:35Z
I am using ZeroGPU.It’s definitely a bug. The storage capacity of the Zero GPU space is so large that it’s impossible to use it all, so there is a very high possibility that the error message is wrong.
2024-12-03T04:00:08Z
Experiencing this too, yesterday was able  to commit changes to main.
2024-12-03T04:02:11Z
I reported it to HF Discord. I just reported it.
2024-12-03T05:54:20Z
I wonder if the processing for the capacity limit that suddenly appeared today is buggy.huggingface.co@nyuuzyou on Hugging Face: "its over"We’re on a journey to advance and democratize artificial intelligence through open source and open science.
2024-12-03T16:34:15Z
Please can someone from HuggingFace support fix this issue as soon as posible? It is blocking some important updates we need at the Space.
2024-12-03T16:52:01Z
Same Problem here
2024-12-04T03:00:05Z
Same thing here, i assume a bug with new storage limits change yesterday, even tho repo is under 1 GB
2024-12-06T00:16:17Z
This has been fixed for me now thanks Huggingface
2024-12-06T10:07:22Z
I’m having the same issue. How did you get your fixed?
2024-12-06T12:48:12Z
Also having the same issue still.
2024-12-15T09:58:52Z
Even bought the pro sub.still facing the same issue. what can you even do with 1GB
2024-12-15T10:11:28Z
We can put data in thePublicmodel repo or dataset repo for free, even if it’s several terabytes, so I think they want us to load it from there when the Spaces program is started.Downloading to Spaces is very fast.However, there are some troublesome things when we bring in the github sample as it is.Anyway, it seems like a bug that a 1GB error occurs even though the file has not reached 1GB. It seems like it would be better not to put large files in the git of Spaces in the future.github.com/huggingface/huggingface_hubupload_large_folder() issue with uploading to new spaces (create_repo requires space_sdk)opened06:33AM - 05 Dec 24 UTCclosed02:34PM - 05 Dec 24 UTCJohn6666catbug### Describe the bug

from HF Forum:
https://discuss.huggingface.co/t/upload-…large-folder-issue-with-uploading-to-spaces/129326

If you run `upload_large_folder()` with a non-existent `space`, you will get an error from `create_repo()`. This is because [`create_repo`()'s `space_sdk` is `optional`, but if it is not there, an error will occur](https://github.com/huggingface/huggingface_hub/blob/v0.26.3/src/huggingface_hub/REDACTED_TOKEN.py#L3478).

https://github.com/huggingface/huggingface_hub/blob/v0.26.3/src/huggingface_hub/_upload_large_folder.py#L92

### Reproduction

HF_TOKEN = "hf_*********"
from huggingface_hub import HfApi
api = HfApi(token=HF_TOKEN)
api.upload_large_folder("John6666/lftest", folder_path="test_folder", repo_type="space", private=True)


### Logs

```shell
File "w:\TEMP\test\upload_large_folder_test.py", line 4, in <module>
    api.upload_large_folder("John6666/lftest", folder_path="test_folder", repo_type="space", private=True)
  File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\REDACTED_TOKEN.py", line 5473, in upload_large_folder
    return upload_large_folder_internal(
  File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\_upload_large_folder.py", line 92, in upload_large_folder_internal
    repo_url = api.create_repo(repo_id=repo_id, repo_type=repo_type, private=private, exist_ok=True)
  File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\REDACTED_TOKEN.py", line 3479, in create_repo
    raise ValueError(
ValueError: No space_sdk provided. `create_repo` expects space_sdk to be one of ['gradio', 'streamlit', 'docker', 'static'] when repo_type is 'space'`
```


### System info

```shell
- huggingface_hub version: 0.26.2
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: w:\hf\misc\token
- Has saved token ?: False
- Configured git credential helpers: manager
- FastAI: N/A
- Tensorflow: N/A
- Torch: 2.4.0+cu124
- Jinja2: 3.1.4
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 11.0.0
- REDACTED_TOKEN: N/A
- gradio: 4.44.1
- tensorboard: 2.6.2.2
- numpy: 1.23.5
- pydantic: 2.8.2
- aiohttp: 3.9.5
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: w:\hf\misc\hub
- HF_ASSETS_CACHE: w:\hf\misc\assets
- HF_TOKEN_PATH: w:\hf\misc\token
- HF_STORED_TOKENS_PATH: w:\hf\misc\stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10
```
2025-01-28T10:47:15Z
Another thing to take into account regarding this topic is that also the commit files are using memory. One way to free some memory is to go to the settings menu, then “Storage usage” and then click “List LFS files”. There you have the list of all commits of your repo sorted by size, so you could delete the old ones, if you do not need them anymore and you can afford it.Hope this helps