Troubleshooting
Find the error you see below. Each entry names the symptom, the fix, and the page that has the detail.
KVM is missing or not usable
Section titled “KVM is missing or not usable”On Linux, or in a WSL distribution, ls -l /dev/kvm prints No such file or directory, or test -r /dev/kvm && test -w /dev/kvm && echo "KVM is usable"
doesn’t print KVM is usable.
/dev/kvmis missing: enable hardware virtualization in the firmware, or load the KVM module for your CPU withsudo modprobe kvm_intelorsudo modprobe kvm_amd. On WSL, enable nested virtualization./dev/kvmexists, but KVM isn’t usable: add your user to thekvmgroup withsudo usermod -aG kvm "$USER", then log out and in again. On WSL, runwsl --shutdownfrom PowerShell instead and open the distribution again.
See System requirements and Windows: run Firebrick in WSL 2.
glibc is older than 2.35
Section titled “glibc is older than 2.35”The release binaries need glibc 2.35 or newer. On an older distribution, fbk
and fbkd don’t start, and the dynamic loader prints lines like these, with the
versions your build needs:
fbk: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by fbk)Check your version with ldd --version | head -1. Use a distribution with glibc
2.35 or newer, such as Ubuntu 22.04, or build the binaries on the machine
instead; see Installing with Cargo
and Building from source.
mise install fails in the sandbox
Section titled “mise install fails in the sandbox”fbk start or fbk run prints mise’s error and exits with a non-zero status:
Error: ... mise install failed in sandbox my-project: ...mise ERROR Failed to install npm:@openai/codexx@latest: package not found: @openai/codexxThe sandbox keeps running, so you can connect and fix the config. There are two common causes:
- A wrong tool name, such as the typo above. Correct the name in
mise.tomland runfbk startagain, or setmise.enabled: falsein.firebrick.ymlto skip the install. - A host the network policy blocks. With
network.enforce: true, mise can only download from the hosts you allow, and the error names the blocked host. Find the hosts withfbk network log, allow them withfbk network allow, and runfbk startagain. Each failed attempt only reaches the first blocked host, so repeat this until the install succeeds.
See Installing an agent for the project and Installing with the network policy enforced.
A host port is already in use
Section titled “A host port is already in use”fbk start prints a warning, and the sandbox still starts without that forward:
warning: couldn't forward localhost:3000: <reason>fbk port forward fails with couldn't forward localhost:<port>: <reason> and
changes nothing. Free the port and run fbk start again.
See Forwarding ports.
The browser warns about the certificate of a forwarded port
Section titled “The browser warns about the certificate of a forwarded port”Run fbk cert trust and restart the browser. On Linux, Chrome and Firefox only
pick up the certificate authority when certutil is installed, or when they
read the system store, as on Arch; fbk cert trust prints a note when it
skipped them. If the browser warned only after an update or a restart of fbkd,
check its log for replaced the localhost certificate authority: it then made a
new CA, which you have to trust again.
When the page doesn’t load at all, the daemon log says the TLS handshake with the guest failed: the dev server serves plain HTTP, so open it with http://,
or it requires client certificates or old TLS versions, which don’t work through
a forward.
See HTTPS dev servers.
SSH sessions start in /bin/sh and SHELL isn’t set
Section titled “SSH sessions start in /bin/sh and SHELL isn’t set”SSH sessions run in /bin/sh, and clients that require SHELL, such as the
Codex desktop app, can’t work. A sandbox created by Firebrick 0.9 or earlier
runs SSH sessions this way. Recreate it:
fbk rm --forcefbk startSee SSH host names.
The daemon doesn’t restart after an upgrade
Section titled “The daemon doesn’t restart after an upgrade”After you upgrade from Firebrick 0.9.0 or earlier, an fbk command prints:
the firebrick daemon is older than fbk <version> and can't be restarted by fbk; stop the fbkd process and try againStop the old daemon once. Sandboxes keep running, and the next fbk command
starts the new daemon:
pkill -TERM -x fbkdOn Windows, run Stop-Process -Name fbkd instead. When the restarted daemon
still has another version, the fbkd next to fbk, or on your PATH, isn’t
the one you installed; fbk names the binary it started, so you can replace it.
See Upgrading and uninstalling.
A paused sandbox can’t be started or upgraded
Section titled “A paused sandbox can’t be started or upgraded”fbk refuses to act on a paused sandbox:
sandbox my-project is paused; try again once it has stoppedsandbox my-project is paused; stop it before upgradingThere’s no resume command. Stop the sandbox with fbk stop, then run fbk start or fbk upgrade again.
See fbk upgrade.