This page collects the most common MiniBox errors and their solutions. Each accordion entry describes the symptom, root cause, and the exact steps to resolve it.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chaitu426/minibox/llms.txt
Use this file to discover all available pages before exploring further.
Connection refused — cannot reach the daemon
Connection refused — cannot reach the daemon
SymptomorCause
miniboxd is not running, or it is listening on a different address/port than the CLI expects.Fix401 Unauthorized — API token mismatch
401 Unauthorized — API token mismatch
Build context rejected — path not under allowed prefix
Build context rejected — path not under allowed prefix
SymptomCauseThe directory you passed as the build context is not under any path in Then retry the build from the CLI:
MINIBOX_BUILD_PREFIXES. By default the allowed roots are /home, /tmp, /var/lib/minibox, /root, /srv, /opt, and /usr/local/src.FixEither move your project into an allowed directory, or add your path to the allowed list before starting the daemon:could not unshare mount namespace
could not unshare mount namespace
Error remounting root private
Error remounting root private
SymptomCauseThe mount namespace setup step failed to make the container’s root mount private before pivoting. This can happen if the host root mount is shared and the process does not have sufficient capability, or if overlayfs is not available in the kernel.Fix
- Confirm you are running on Linux with overlayfs support:
- Confirm the daemon is running as root (
sudo -E miniboxd). - On some hardened distributions, overlayfs may be restricted. Check
dmesgfor relevant denial messages:
DB containers exit immediately after start
DB containers exit immediately after start
SymptomA service with
db_mode: true (e.g. PostgreSQL, MongoDB) starts then immediately shows exited in minibox compose ps.CauseDatabase engines often rely on specific /dev entries (e.g. /dev/urandom, /dev/shm) and kernel capabilities during initialization. MiniBox provides a minimal /dev environment, and some DB images have expectations that the current beta release does not fully satisfy.FixIncrease shared memory if needed
Some PostgreSQL configurations require more than the 256 MB default:
DB container stability is a known beta limitation. Postgres support in particular is being improved. See the README for current status.
Wiping all local state cleanly
Wiping all local state cleanly
Slow daemon startup
Slow daemon startup
SymptomThe bridge will be created lazily when the first container with a port mapping is started. The blob index will be populated incrementally as images are built or pulled.
miniboxd takes several seconds to become responsive after launch.CauseBy default the daemon indexes all blobs in DataRoot/blobs/sha256/ and brings up the minibox0 bridge at startup. A large blob store or slow disk can make this take noticeable time.FixDefer both operations until they are first needed: