Build error with factory rebuild

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

===== 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
1 Like

I’m also having this issue in a streamlit app.

This issue still happening in simple gradio app. ( OpenKYC - FaceOnLive Community Project - a Hugging Face Space by FaceOnLive
Please resolve this.

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

@Wauplin, would it be better if we open an issue on huggingface/huggingface_hub in this case?

@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)

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

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

1 Like

Thank you! Just checked; all good now!

Popping up again? I just received the following error


Build error

Build failed with exit code: 1

Build logs:

===== 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

I am also facing this same issue. Getting below error

build error

Job failed with exit code: 1

Build logs:

===== 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
1 Like

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.

I am also facing same issue

1 Like

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 :slight_smile: )

1 Like

the issue is not resolved currently .

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

1 Like