Hugging Face Space Stuck in "Building" State - Even After Reverting to a Working Commit

Hi everyone,

I’m facing an issue where my Hugging Face Space has been stuck in the “building” state for several hours and will not deploy.

Link to my Space:

What I’ve already tried:

  • Reverting the main branch: I have reset my main branch to a previous commit that I know was working correctly. However, even with this previously functional code, the build still gets stuck.
  • Checking the build logs: The logs don’t show a clear error message; they seem to hang without a specific failure notice.
  • Factory Reset and Duplicating: I have tried both the “factory reset” option and restarting the Space, but the new builds also get stuck in the same state.
  • Checking my repository: I’ve confirmed that there are no large files committed without Git LFS and have reviewed my requirements.txt file.

Could someone from the Hugging Face team or the community please take a look?

Any help would be greatly appreciated!

Thanks,
Haris

1 Like

I think this is a bug in the broad sense, but no solution has been found for a long time.:sob:
The quickest workaround is to create a new space and re-upload the source code.

Did you initialyzed the AI?, I have done that many times when I am drunk, I have many tips to regain control if you did that.