Skip to content
Documentation

Troubleshooting

This page is published from the rig repository. Edit on GitHub View source

Symptoms, their cause and the fix, grouped by the step that shows them. When a step fails, first re-run it with --dry-run to see the exact command sent to the guest, then run that command yourself in the guest (vagrant ssh <machine> from vagrant/) to see its full output.

Build

SymptomCause and fix
The link of agent fails with undefined __isoc23_strtol or GLIBCXX_3.4.31The distribution is older than the prebuilt ONNX Runtime needs, and the build was forced with --ort prebuilt. Use --ort-compat or --ort static (provisioning.md)
agent-build: this guest cannot link the prebuilt ONNX RuntimeThe same, caught before the build by --ort auto. Pick one of the two options it prints
bpf-linker not on PATHThe toolchain provisioning did not finish (bpf-linker's download failed, or the disk filled). Run vagrant provision <machine> --provision-with toolchain
agent status reports a build "without embedded eBPF probes"bpf-linker or the eBPF nightly was missing when the agent was built. Re-provision as above, then run bash /synthaea/rig/tools/diagnose-ebpf-toolchain.sh in the guest, which prints the real probe-build error
probe toolchain nightly-... missingThe agent's ebpf-toolchain.txt changed since the guest was provisioned. Re-run the toolchain provisioner
Unknown attribute kind ... Producer LLVM NN ... Reader LLVM MM during the probe buildbpf-linker's LLVM and the nightly's LLVM disagree. The pin lives in the agent's packaging/toolchain/; align it there, then re-provision
rust-src missing for the probe toolchainrustup component add rust-src --toolchain "$(cat /synthaea/agent/packaging/toolchain/ebpf-toolchain.txt)" in the guest
Offline eBPF build: no matching package named core or compiler_builtinsThe vendor directory lacks the sysroot crates, because the bundle was made by hand. Let --offline make it (offline-builds.md)
the offline bundle (...) was made for another Cargo.lock or probe toolchainThe agent's lockfile or toolchain changed. Re-run the build from the host with --offline, which makes and pushes a new bundle
Online builds fail with failed to select a version ... vendored-sourcesA hand-written ~/.cargo/config.toml with a global source replacement. agent-build.sh moves such a file aside to config.toml.vendored-bak; check for one under another name
rustc is killed with signal: 9Too little RAM for the job count. Re-run vagrant provision <machine> --provision-with build-host-setup after changing RIG_MEMORY_MB, so CARGO_BUILD_JOBS follows
No space left on device during provisioningA box with small volumes. See the box's fix-up in vagrant/README.md

VMs

SymptomCause and fix
<machine> has no box for the <provider> providerThe catalog has no box for this host's provider (no Windows or Arch guest on Apple Silicon, for example). RIG_PROVIDER selects another installed provider
vagrant rsync ignores a new exclude or folderVagrant records the synced folders at up; run vagrant reload <machine> once
/synthaea stays empty in the guestThe box has no rsync. Install it in the guest, then vagrant rsync <machine>
Hyper-V up fails with 0x800705AAThe host cannot give the VM its 2 GB startup memory. Run wsl --shutdown, close memory-heavy applications, halt other VMs (windows.md)
Hyper-V prompts for SMB credentials on upA box that defaults /vagrant to SMB. The rig's Vagrantfile disables that share; make sure vagrant runs from vagrant/ (or through rig.py)
The guest cannot resolve static.crates.io on Hyper-VDefault Switch DNS. See windows.md
A Vagrant command from PowerShell mangles a bash snippetUse Invoke-LabShell (vssh) from the Hyper-V helpers, which sends the snippet base64-encoded (windows.md)
A shell script fails in the guest with $'\r': command not foundThe file was checked out with CRLF line endings. .gitattributes forces LF for *.sh; re-checkout the file, or check git config core.autocrlf

Runs

SymptomCause and fix
no ~/synthaea-rig/build-info: build firstrun before build on this VM (or after down --destroy). Run rig.py build <machine>
/etc/synthaea/agent.toml missingThe agent refuses to start without a configuration. build installs the template; re-run it
fix the catalog firstrun-scenarios.sh --check found a problem; the lines above it say which. A new scenario in the scenarios checkout needs a row in runner/scenarios.conf
A scenario is ERROR with "agent did not start"Read agent.log in the scenario's run directory (the report names it). A configuration error or a sensor that failed to attach shows there
The --alerts file fails with EACCES when running the agent by handLet the agent create the file. Under fs.protected_regular, root cannot open a file pre-created by another user in a sticky directory such as /tmp
T1562.001 fires in a scenario that sends no signalStopping the agent is itself a signal to a security process. The runner snapshots the alerts before stopping it, so reports are not affected; when running by hand, read the alerts before stopping the agent
A BAYES or lineage alert names sshd or your shellThe operator's own session, seen by the correlator. Reported as UNEXPECTED
timestomp-linux is SKIP on kernel 6.1 or 5.15Expected: its catalog row has min_kernel 6.3, because the inode_setattr LSM hook it relies on has the (idmap, dentry, attr) signature only from 6.3. The runner skips it without starting an agent
A scenario's console output is truncated under PowerShellPowerShell drops interleaved output from vagrant ssh. Trust the report and the files in the run directory, not the screen
rig.py run ends with the runner wrote no reportThe runner stopped before its report (exit 2: the guest is not ready; exit 1: the catalog check failed). Its own message is above