This page covers the most common issues you may encounter when using Lager, organized by category. Each section includes the error or symptom, the likely cause, and the fix.Documentation Index
Fetch the complete documentation index at: https://docs.lagerdata.com/llms.txt
Use this file to discover all available pages before exploring further.
Connection Issues
lager hello fails with 'No route to host'
lager hello fails with 'No route to host'
Cause: Your computer cannot reach the Lager Box on the network.Fix:
- Verify your VPN is connected: run
tailscale statusand confirm your Lager Box appears in the list. - Check the IP address is correct: run
lager boxesto see your saved box IPs. - If using Tailscale, try
ping <box-ip>to verify network connectivity. - Ensure the Lager Box is powered on and connected to the network.
lager hello fails with 'Connection refused'
lager hello fails with 'Connection refused'
Cause: The network path to the box works, but the Lager service on the box is not running.Fix:
- The Docker container on the box may have stopped. Contact your administrator to restart it.
- Run
lager hello --box <box>to check the box’s service status. - If you have SSH access, connect to the box and check Docker:
docker ps | grep lager.
lager hello fails with 'Connection timed out'
lager hello fails with 'Connection timed out'
Cause: The network request is being sent but not reaching the box, often due to a firewall or incorrect IP.Fix:
- Double-check the IP address with
lager boxes. - If the box was recently moved or reprovisioned, its IP may have changed. Check your Tailscale admin panel or router DHCP table.
- Try pinging the box:
ping <box-ip>.
Box was working but is now unreachable
Box was working but is now unreachable
Cause: The box may have lost power, network connectivity, or had its IP address change.Fix:
- Verify the box is powered on.
- Check your VPN connection:
tailscale status. - If the box IP changed, update it:
lager boxes edit --name my-box --ip <new-ip>. - Run
lager hello --box <name>to check box status.
Instrument Detection
lager instruments returns an empty list
lager instruments returns an empty list
Cause: No instruments are detected on the box’s USB ports.Fix:
- Verify instruments are physically connected via USB to the Lager Box (not to your laptop).
- Check that USB cables are properly seated — try a different cable or port.
- Ensure the Docker container is running with USB passthrough. Run
lager hello --box <box>. - Run
lager update --box <box>to install the latest udev rules and drivers.
A specific instrument is missing from the list
A specific instrument is missing from the list
Cause: The instrument may not be recognized, may be using a different USB port, or may need updated drivers.Fix:
- Unplug and replug the instrument’s USB cable.
- Run
lager update --box <box>to ensure udev rules are current. - Check that the instrument is powered on (some instruments need external power in addition to USB).
- Verify the instrument model is supported.
'Resource busy' error when using an instrument
'Resource busy' error when using an instrument
Cause: Another process (such as a TUI session or another CLI command) is actively using the instrument’s USB connection.Fix:
- Close any running TUI sessions (press
qto exit). - Wait a moment and retry — the previous command may still be completing.
- If the issue persists, the instrument handle may be stuck. Run
lager update --box <box>to restart the service.
Power Supply Issues
OVP or OCP tripped (output disabled unexpectedly)
OVP or OCP tripped (output disabled unexpectedly)
Cause: The output voltage or current exceeded the protection threshold you set, so the supply shut off to protect your device.Fix:
- Check the current state:
lager supply <NET> state --box <box>. - Clear the fault:
lager supply <NET> clear-ovporlager supply <NET> clear-ocp. - Adjust your protection thresholds if they are too tight, or investigate why the output exceeded the limit.
- Re-enable the output:
lager supply <NET> enable --box <box>.
Voltage reads 0V when the supply is enabled
Voltage reads 0V when the supply is enabled
Cause: The supply output may not actually be enabled, or the load may be pulling the voltage down.Fix:
- Verify the output is enabled:
lager supply <NET> state --box <box>— check that “Enabled” shows ON. - Confirm you set both the voltage and enabled the output (setting voltage alone does not enable it):
- Check if OVP/OCP tripped (see above).
Debug / Flash Issues
'No target detected' when flashing
'No target detected' when flashing
Cause: The debug probe cannot communicate with the target MCU.Fix:
- Verify the SWD/JTAG wiring between the debug probe and your DUT.
- Ensure the DUT is powered (the debug probe does not always supply power).
- Check that the MCU type in the debug net matches your actual device:
lager debug <NET> status --box <box>. - Try a lower SWD speed:
lager debug <NET> gdbserver --speed 100 --box <box>.
'GDB server failed to start'
'GDB server failed to start'
Cause: The J-Link or pyOCD process may be stuck from a previous session.Fix:
- Disconnect any existing session:
lager debug <NET> disconnect --box <box>. - Retry:
lager debug <NET> gdbserver --box <box>. - Check the debug probe health:
lager debug <NET> health --verbose --box <box>.
Python Script Issues
ImportError: No module named 'lager'
ImportError: No module named 'lager'
Cause: You are running the script directly with Do not run
python instead of using lager python.Fix: The lager Python library is only available inside the Lager Box environment. Always run scripts with:python my_script.py directly on your laptop.InvalidNetError: Net 'XYZ' not found
InvalidNetError: Net 'XYZ' not found
Cause: The net name in your script does not match any net configured on the box.Fix:
- List available nets:
lager nets --box <box>. - Check for typos in the net name. Net names are case-sensitive.
- If the net doesn’t exist, create it using
lager nets tui --box <box>.
Script runs but produces no output
Script runs but produces no output
Cause: The script may be failing silently, or output may not be flushed.Fix:
- Add
print()statements to confirm the script is executing. - Wrap your code in try/except to catch errors:
- Check stderr output — errors from the box are shown in red in the terminal.
Getting More Help
If the solutions above don’t resolve your issue:- Check box logs:
lager logs --box <box>shows recent log output from the box’s Docker container. - Check box status:
lager hello --box <box>verifies the box is online and responsive. - Open an issue: Report problems on GitHub with your box name, the command you ran, and the error output.

