sandcastle-worker [ActiveJob] [SandboxProvisionJob]…
- User
sandcastle-worker | [ActiveJob] [SandboxProvisionJob] [9bafbc22-f740-48ac-abb1-ee0ea967d861] [SolidCable::TrimJob] [79f777a9-a31e-4134-af64-5b2369c06c14] Performed SolidCable::TrimJob (Job ID: 79f777a9-a31e-4134-af64-5b2369c06c14) from SolidQueue(default) in 0.71ms sandcastle-worker | [ActiveJob] [SandboxProvisionJob] [9bafbc22-f740-48ac-abb1-ee0ea967d861] Error performing SandboxProvisionJob (Job ID: 9bafbc22-f740-48ac-abb1-ee0ea967d861) from SolidQueue(default) in 1705.41ms: SandboxManager::Error (Failed to pull image sc-snap-thies:snap-20260220-200605: {"message":"pull access denied for sc-snap-thies, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} sandcastle-worker | ): sandcastle-worker | app/services/sandbox_manager.rb:87:in 'SandboxManager#ensure_image' sandcastle-worker | app/jobs/sandbox_provision_job.rb:16:in 'SandboxProvisionJob#perform' sandcastle-worker | SolidQueue-1.3.1 Error in thread (0.0ms) error: "SandboxManager::Error Failed to pull image sc-snap-thies:snap-20260220-200605: {"message":"pull access denied for sc-snap-thies, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}\n"
Assistant
This error is in
ensure_image— it's trying to pull a local snapshot image (sc-snap-thies:snap-...) from Docker Hub instead of checking locally first. Let me look at the current implementation.Assistant
The fix is already partially there —
ensure_imagecallsDocker::Image.get(image)first and only pulls onNotFoundError. But the recent commit message mentions "check local image before pulling in ensure_image" — let me check if this is actually the latest version or if there's a different issue. The commit8e04678saysfix(sandbox): check local image before pulling in ensure_image, so this code should be fine.The problem is that
Docker::Image.getitself might be raising aDockerError(notNotFoundError) for the snapshot image namesc-snap-thies— or theNotFoundErroris being caught but thenDocker::Image.createtries to pull, which fails with an auth error that gets re-raised as a genericDockerError.The real issue: snapshot images (
sc-snap-thies:snap-*) are local-only and should never be pulled. Theensure_imagemethod should detect local snapshot image names and raise a cleaner error instead of attempting a pull.Let me look at how snapshots are created and how
ensure_imageis called:Assistant
Now I see the exact problem. The snapshot image
sc-snap-thies:snap-20260220-200605doesn't exist locally (maybe it was lost), soDocker::Image.getraisesNotFoundError, and then the code falls through toDocker::Image.createwhich tries to pull it from a registry — which always fails for local-onlysc-snap-*images.The fix: detect
sc-snap-*images and raise a clear error immediately if they're not found locally, without attempting a pull.Assistant
This gives a clear, actionable error message instead of the confusing "pull access denied" failure. The snapshot image simply doesn't exist on that host anymore — which could happen if Docker was reset, the image was pruned, or the sandbox was migrated.
The user will now see something like:
codeSnapshot image sc-snap-thies:snap-20260220-200605 not found locally (snapshots are never pulled from a registry)Which tells them the snapshot is gone and they'll need to start from the base image instead.