# Build error with factory rebuild

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%3E%5C
**Category:** Spaces\
**Created:** [March 29, 2024, 2:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232 "2024-03-29T02:56:22Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![giswqs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/giswqs/32/23677_2.png) [@giswqs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgiswqs)%5C
**Post date:** [March 29, 2024, 2:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F1 "2024-03-29T02:56:22Z")

</div>

Many of my spaces are getting build error. I have tried factory rebuild a few times. The issue persists.

> **[Streamlit - a Hugging Face Space by giswqs](https://huggingface.co/spaces/giswqs/Streamlit)**
>
> Discover amazing ML apps made by the community

```plaintext
===== Build Queued at 2024-03-29 02:51:47 / Commit SHA: 6bd2654 =====

--> FROM docker.io/library/python:3.10@sha256:0be08c1c2c060efbcb8cf14d3d2c3e1e8d3f46ca7cb6937e7565b4658a85b790
DONE 0.0s

--> ERROR: failed to calculate checksum of ref y2rfi99qeb2kddrv930ddhrmz::tnufyz1j7tl25n4zg2h7re3wp: "/.lfs.hf.co": not found

```

---

<div class="post-metadata">

**Author:** ![Felladrin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/felladrin/32/28725_2.png) [@Felladrin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFelladrin)%5C
**Post date:** [April 1, 2024, 8:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F2 "2024-04-01T08:50:44Z")

</div>

I’m also having this issue in [a streamlit app](https://huggingface.co/spaces/Felladrin/convert-to-onnx).

---

<div class="post-metadata">

**Author:** ![Zhu-FaceOnLive](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zhu-faceonlive/32/33577_2.png) [@Zhu-FaceOnLive](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FZhu-FaceOnLive)%5C
**Post date:** [April 2, 2024, 12:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F3 "2024-04-02T00:02:50Z")

</div>

This issue still happening in simple gradio app. ( [OpenKYC - FaceOnLive Community Project - a Hugging Face Space by FaceOnLive](https://huggingface.co/spaces/FaceOnLive/OpenKYC)  
Please resolve this.

```auto
--> ERROR: failed to calculate checksum of ref zkqgkfjn4oj615x4aiz4eario::sekbtgyx0twzxt9l6bqh66r1b: "/.lfs.hf.co": not found

```

---

<div class="post-metadata">

**Author:** ![Felladrin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/felladrin/32/28725_2.png) [@Felladrin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFelladrin)%5C
**Post date:** [April 2, 2024, 12:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F4 "2024-04-02T12:02:50Z")

</div>

@Wauplin, would it be better if we open an issue on [huggingface/huggingface\_hub](https://github.com/huggingface/huggingface_hub) in this case?

---

<div class="post-metadata">

**Author:** ![Wauplin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/wauplin/32/40815_2.png) [@Wauplin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FWauplin)%5C
**Post date:** [April 2, 2024, 4:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F5 "2024-04-02T16:26:00Z")

</div>

@XciD have you ever encountered this issue while buiding a Space docker image?

(`--> ERROR: failed to calculate checksum of ref y2rfi99qeb2kddrv930ddhrmz::tnufyz1j7tl25n4zg2h7re3wp: "/.lfs.hf.co": not found`)

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [April 2, 2024, 9:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F6 "2024-04-02T21:40:24Z")

</div>

While infra works on a fix, could everyone please try to do a new commit to the repo? not only a factory reboot, but edit a file or upload a dummy file, that would trigger a different rebuild. thanks

---

<div class="post-metadata">

**Author:** ![Wauplin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/wauplin/32/40815_2.png) [@Wauplin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FWauplin)%5C
**Post date:** [April 3, 2024, 6:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F7 "2024-04-03T06:25:06Z")

</div>

I got confirmation from the infra team that this was a temporary issue that has now been solved 👍

---

<div class="post-metadata">

**Author:** ![Felladrin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/felladrin/32/28725_2.png) [@Felladrin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFelladrin)%5C
**Post date:** [April 3, 2024, 6:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F8 "2024-04-03T06:45:07Z")

</div>

Thank you! Just checked; all good now!

---

<div class="post-metadata">

**Author:** ![Nadav-Timor](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nadav-timor/32/28851_2.png) [@Nadav-Timor](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNadav-Timor)%5C
**Post date:** [July 1, 2024, 5:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F9 "2024-07-01T05:02:24Z")

</div>

Popping up again? I just received the following error

* * *

# Build error

## Build failed with exit code: 1

Build logs:

```auto
===== Build Queued at 2024-07-01 04:54:25 / Commit SHA: c4a47c9 =====

--> FROM docker.io/library/python:3.10@sha256:c0352a2c64efe4cc08b198e90b97ed7e08897518c4bee99647e3eaf676e84951
DONE 0.0s

--> RUN apt-get update && apt-get install -y fakeroot && mv /usr/bin/apt-get /usr/bin/.apt-get && echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && chmod +x /usr/bin/apt-get && rm -rf /var/lib/apt/lists/* && useradd -m -u 1000 user
CACHED

--> WORKDIR /home/user/app
CACHED

--> RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
CACHED

--> COPY --chown=1000:1000 --from=root / /
CACHED

--> RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
CACHED

--> Restoring cache

```

---

<div class="post-metadata">

**Author:** ![DushM](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@DushM](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDushM)%5C
**Post date:** [August 13, 2025, 6:50am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F10 "2025-08-13T06:50:07Z")

</div>

I am also facing this same issue. Getting below error

build error

## Job failed with exit code: 1

**Build logs:**

```auto
===== Build Queued at 2025-08-13 06:46:37 / Commit SHA: b16ffac =====

--> FROM docker.io/library/python:3.10@sha256:4481586e00db3555bc31dc5f83cf5bba63f54555301b685ed7e461eb8f192eb5
DONE 0.0s

DONE 3.5s

DONE 7.3s

DONE 7.4s

DONE 7.8s

DONE 7.8s

--> RUN apt-get update && apt-get install -y fakeroot && mv /usr/bin/apt-get /usr/bin/.apt-get && echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && chmod +x /usr/bin/apt-get && rm -rf /var/lib/apt/lists/* && useradd -m -u 1000 user
Hit:1 http://deb.debian.org/debian trixie InRelease
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
Hit:3 http://deb.debian.org/debian-security trixie-security InRelease
Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [5304 B]
Fetched 9722 kB in 1s (13.6 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libfakeroot
The following NEW packages will be installed:
  fakeroot libfakeroot
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 106 kB of archives.
After this operation, 391 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian trixie/main amd64 libfakeroot amd64 1.37.1.1-1 [29.6 kB]
Get:2 http://deb.debian.org/debian trixie/main amd64 fakeroot amd64 1.37.1.1-1 [76.0 kB]
Fetched 106 kB in 0s (4674 kB/s)
Selecting previously unselected package libfakeroot:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26755 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.37.1.1-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.37.1.1-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.37.1.1-1_amd64.deb ...
Unpacking fakeroot (1.37.1.1-1) ...
Setting up libfakeroot:amd64 (1.37.1.1-1) ...
Setting up fakeroot (1.37.1.1-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Processing triggers for libc-bin (2.41-12) ...
DONE 2.7s

--> COPY --chown=1000:1000 --from=root / /
DONE 2.6s

--> WORKDIR /home/user/app
DONE 0.5s

--> RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
Get:1 http://deb.debian.org/debian trixie InRelease [138 kB]
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB]
Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9668 kB]
Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2432 B]
Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [5304 B]
Fetched 9903 kB in 1s (13.8 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libgl1-mesa-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgl1-mesa-glx' has no installation candidate

--> ERROR: process "/bin/sh -c apt-get update && apt-get install -y \tgit \tgit-lfs \tffmpeg \tlibsm6 \tlibxext6 \tcmake \trsync \tlibgl1-mesa-glx \t&& rm -rf /var/lib/apt/lists/* \t&& git lfs install" did not complete successfully: exit code: 100

```

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [August 13, 2025, 9:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F11 "2025-08-13T09:25:59Z")

</div>

In this case today, the cause is known, so I think it will probably be resolved soon, but[for now, there seems to be one workaround](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-get-error-when-deploy-space%2F166612%2F16).

---

<div class="post-metadata">

**Author:** ![madhuKukkadapu](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@madhuKukkadapu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FmadhuKukkadapu)%5C
**Post date:** [August 13, 2025, 11:18am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F12 "2025-08-13T11:18:22Z")

</div>

I am also facing same issue

---

<div class="post-metadata">

**Author:** ![Tonic](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/tonic/32/31301_2.png) [@Tonic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FTonic)%5C
**Post date:** [August 13, 2025, 11:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F13 "2025-08-13T11:43:32Z")

</div>

tried to resolve with packages.txt to switch the deprecated package with libglx-mesa0 does not resolve the issue i’m facing (what a surprise 🙂 )

---

<div class="post-metadata">

**Author:** ![Tonic](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/tonic/32/31301_2.png) [@Tonic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FTonic)%5C
**Post date:** [August 13, 2025, 11:57am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-with-factory-rebuild%2F79232%2F14 "2025-08-13T11:57:22Z")

</div>

the issue is not resolved currently .

duplicated to attempt a new build [https://huggingface.co/spaces/Tonic/chonkie-demo](https://huggingface.co/spaces/Tonic/chonkie-demo)  
original spaces with “removed packages.txt” to trigger a new build : [https://huggingface.co/spaces/Tonic/chonkie](https://huggingface.co/spaces/Tonic/chonkie)

> **[Web Search MCP - a Hugging Face Space by Tonic](https://huggingface.co/spaces/Tonic/chonkie?logs=build)**
>
> Search and extract web content for LLM ingestion
