{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifmffhklozkqyvam3owg5wiobjqc53v6ooci4w53vqlz33eek7buq",
"uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mi56xpxbaom2"
},
"path": "/t/critical-docker-space-stuck-in-building-state-stalls-minutes-and-not-resolving/174739#post_1",
"publishedAt": "2026-03-28T17:33:35.000Z",
"site": "https://discuss.huggingface.co",
"textContent": "**\nPriority: Critical** — This is blocking a production release cycle with a Tuesday deadline.\n\nMy Docker Space (SkipSnow/dev_ChatHealthyAIChatWindow) has been stuck in BUILDING stage for over 30 minutes following a successful git push. The Space is currently unresponsive.\n\nThis has been a recurring problem since we converted this Space to Docker SDK. Build times are unpredictable — sometimes 2 minutes, sometimes 30+ minutes with no progress.\n\nWe upgraded from cpu-basic to cpu-upgrade specifically to get better build times. That caused a different problem — a hardware mismatch where the Space requested cpu-upgrade but was allocated cpu-basic, leaving it stuck in BUILDING indefinitely. We had to factory-restart back to cpu-basic to recover from that incident.\n\nThe Dockerfile is a minimal 7-line file based on the HuggingFace Docker template — no custom build logic:\n\n\n FROM python:3.12-slim\n WORKDIR /app\n COPY requirements.txt .\n RUN pip install --no-cache-dir -r requirements.txt\n COPY . .\n EXPOSE 7860\n CMD [\"python\", \"main.py\"]\n\n\n\n**Details:**\n\n * Space: SkipSnow/dev_ChatHealthyAIChatWindow\n\n * SDK: docker\n\n * Hardware: cpu-basic (current and requested both cpu-basic, no mismatch)\n\n * Repo SHA: 54e2aa5329f0 (latest push, verified via /tree/main API)\n\n * Runtime SHA: f9335c700a9e (stale, from previous build)\n\n * Replicas: current=0, requested=1\n\n\n\n\n**What I’ve tried:**\n\n * Factory restart (POST /restart?factory=true) — did not resolve\n\n * Regular restart — did not resolve\n\n * Build log API returns timeout (no log data streaming)\n\n * The previous container was killed by the factory restart, so the Space is now unresponsive\n\n\n\n\nThe code is confirmed in the HF repo. The Docker build queue appears stuck. Can someone from HF engineering check the build infrastructure for this Space?",
"title": "CRITICAL — Docker Space stuck in BUILDING state stalls: minutes and not resolving"
}