OpenSAI Documentation · v1.1.0

OpenSAI v1.0.0 · Materials v1.1.0

OpenSAI FAQ, Support & Maintenance

Quickly diagnose setup, connectivity, application dependency, and adaptation behavior issues, and keep your OpenSAI deployment healthy over time.

Keep the original job_id handy whenever you investigate a run so you can correlate CLI output, Web console views, and .run/ process logs.

Quick Symptom Triage

SymptomTypical CauseFirst Action
opensai: command not foundProject virtual environment .venv is not activeActivate .venv (source .venv/bin/activate or .venv\Scripts\Activate.ps1) and run opensai --help
Console opens, but your local worker is missingSimulated Sample data mode is active, or worker is not connectedClick Switch to live data in the top banner (or disable sample data under Settings), then run opensai devices list
Application or DAG job ends in FAILEDMissing Python library on worker, missing dataset, or step exceptionOpen the failed run and step under Runs in the console to read its exact error message
Dataset files exist on disk, but the app cannot find themDataset is not a direct child of OPENSAI_DATA_DIR, or name differsRun opensai data list and match the reported dataset name to app.yaml
Wait command times out, or MCP returns done=falseJob exceeds the client wait window and is still executingDo not resubmit; query the existing job_id via opensai result get YOUR_JOB_ID
Knobs stay unchanged even with a deadline setAvailable resources already meet the deadline at default quality, or -k pinned the knobInspect candidates with opensai explain YOUR_JOB_ID; enable adaptive mode for joint placement + knob tuning

1. Installation & First Run

Do I need multiple computers or a dedicated GPU to get started?

No. A single laptop can run the coordinator hub, a worker process, and the Web console. pi_pipeline, the starter template, number_stats, cluster_analytics, and lightweight coop_perception all run on CPU. You only need a GPU and PyTorch on workers that execute deep-learning steps such as how2comm_perception.

Are Node.js, Docker, or Kubernetes required?

No. The release ships with a prebuilt Web console, and tasks execute directly inside lightweight Python worker pools with OS-level core affinity and resource limits. Node.js is only needed if you modify frontend/ source code and rebuild the UI bundle.

What if Python package downloads are slow?

Point PIP_INDEX_URL to a fast regional PyPI mirror before running setup:

bash
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple bash scripts/setup.sh

Core functionality requires only lightweight base dependencies—install ML packages later only on workers that need them.

2. Web Console & Multi-Network Connectivity

The console loads, but the sidebar says "Coordinator offline" or "Disconnected"

The browser UI is served by user_client.py (bound to 127.0.0.1:5000 by default), which maintains an auto-reconnecting link to the coordinator hub (TCP 8888). Run opensai cluster status in a terminal to isolate the issue: if the CLI also fails, check that server.py is running on the expected address; if the CLI succeeds, verify Bridge address under Settings in the console (leave empty when served from the bridge itself).

Why can't another machine open :5000, and why are "System parameters" read-only?

How do I connect devices across separate LANs?

Establish virtual private connectivity among the hub, clients, and workers first using Tailscale, WireGuard, or a corporate VPN, then set OPENSAI_HOST to the hub's reachable private IP.

3. Applications, Dependencies, Data & Models

Registration succeeded—why did a step fail with ModuleNotFoundError?

opensai app register distributes steps/*.py source files to workers automatically, but does not install third-party packages remotely. Check requires in app.yaml and install those packages inside .venv on every worker eligible to run the step.

Where should model weights and large datasets be stored?

Store them on the workers that execute the corresponding loading or inference steps:

Does video_counting use a live camera? Can I plug in my own YOLO model?

video_counting generates synthetic frames with numpy against known object counts so you can test dual-branch pipelines and resolution/stride knobs anywhere. To process live RTSP streams, video files, or a custom YOLO detector, replace the capture and detection steps, install OpenCV / PyTorch and weights on eligible workers, expose tunable resolution or frame stride as knobs, and keep business-critical thresholds fixed.

How can a job report SUCCEEDED when some steps are SKIPPED?

Applications can mark transient collaborators (such as an assisting vehicle leaving an intersection) with optional: true. If that participant is offline, lacks data, or returns SKIP:, OpenSAI skips the optional branch cleanly so required downstream fusion steps still finish on time using remaining inputs.

4. Understanding Metrics & Adaptation

Does setting --deadline guarantee completion within that time?

A deadline guides device placement, core allocation, and knob selection—it cannot override physical hardware limits. Check duration_s and qos attainment in the job result: if even the lightest knob tier misses the target consistently, add compute capacity, enable GPU execution, or lower the input rate.

Why doesn't duration_s equal compute_s + fetch_s + queue_s? Does quality 0.9 mean 90% accuracy?

5. MCP & Agent Skill

I imported SKILL.md, so why don't any opensai_* tools show up?

SKILL.md provides agent instructions, while callable tools come from the opensai_mcp server. Follow Sections 1–2 of the Agent Integration Guide to install --agent dependencies, configure the MCP server, and verify connectivity with python -m opensai_mcp --check.

6. Routine Maintenance, Archiving & Upgrades

In-memory job records and intermediate worker artifacts expire automatically (OPENSAI_JOB_TTL_S, OPENSAI_ARTIFACT_TTL_S) and are not intended for permanent storage. Preserve the following across updates:

AssetRecommended Practice
Custom application packagesTrack app.yaml, steps/, and version tags in Git
Datasets and model weightsKeep on dedicated storage outside the release folder and mount via OPENSAI_DATA_DIR or symlinks
Startup environment & tokensDocument custom OPENSAI_* settings; store OPENSAI_MCP_TOKEN and OPENSAI_ADMIN_TOKEN securely
Important results & benchmarksExport result.to_dict() as JSON via the SDK or write outputs to persistent storage
Diagnostic logsInspect server, device, and user logs under .run/ when troubleshooting

Before upgrading, let active jobs finish, back up custom apps and settings, extract the new release into a clean directory, run setup, reconnect datasets, and validate with a quick smoke job before switching production callers.

7. Getting Help & Reporting Issues

Use Issues on github.com/INSAI-institute/OpenSAI for bug reports and Discussions for architecture questions or deployment scenarios. Useful reports include:

  1. OpenSAI software and materials versions, OS, and Python version;
  2. Cluster setup (single-host vs. multi-host worker count) and launch flags;
  3. Minimal reproducible DAG or application manifest, full error output, and job_id (redact Bearer tokens, credentials, and private data before sharing logs).

Report credential leaks or security vulnerabilities privately via repository Security Advisories rather than public Issues (see Contributing & Citation; 中文常见问题与维护).