Skip to content

Troubleshoot Sonjoo

View as Markdown

Start with the symptom and check the suggested diagnostic before changing the audit configuration.

Symptom Diagnostic and next action
sonjoo: command not found Check whether cargo install --locked --path . succeeded. Add Cargo’s bin directory to PATH and start a new terminal. See Install Sonjoo.
The dashboard did not open Read the terminal for the local address. If its port is already in use, start sonjoo serve --no-open --port 7361 and open http://127.0.0.1:7361/.
The API returns 401 Read the port and token from the current process’s serve.json. Send X-Sonjoo-Token and ensure the request goes to the stated port. See API authentication.
The API returns 409 on start Check for an active run and wait for it to finish, or cancel it if it is yours. See Runs and findings.
CLI returned 1 Look for the report at --output or on stdout. Check its gate to see the threshold that failed. See CLI exit codes.
CLI returned 2 before producing a report Read stderr or the JSON-stream error for configuration, argument, or operational details. Confirm that the path you expected is writable.
A rule is unmeasured Open Rule coverage and read the reason. The rule may require browser rendering, a crawl, or data from a successful fetch.
Browser checks lack results Run sonjoo self doctor to check local prerequisites. If needed, set SONJOO_CHROMIUM to your Chromium executable and rerun with browser rendering enabled.

If a problem persists, run sonjoo --version, capture the exact command and error, and reproduce with an isolated SONJOO_HOME or the local fixture. Share a sanitized reproduction in GitHub Issues.