RepoDNA Documentation

Troubleshooting

Start with:

repodna doctor

It checks the installation, storage, the cache, Git, language definitions, configuration, plugins, and AI settings, and says what to do about each problem. Every error message names what went wrong, and most end with a hint: line. Exit codes are listed in the CLI reference.

Analysis#

No history is reported. History needs Git on your PATH (or REPODNA_GIT pointing to it) and the root of a Git working tree. RepoDNA analyzes a subdirectory of a repository, an archive, or a directory without .git as files only, and the History section says why. In CI, checkouts are often shallow (fetch-depth: 1); fetch the full history (fetch-depth: 0 with actions/checkout) for complete results.

A Git URL is refused. Unencrypted http:// and git:// URLs need --allow-insecure-urls, and hosts on private networks need --allow-private-hosts. ext:: and local transports are always refused.

GitHub branch URL fails with Git exit code 128. Stable v1.5.0 only accepts clone URLs, not GitHub browser /tree/<branch> links. In development builds after v1.5.0, branch-root links are recognized and the selected branch is checked out. An invalid or missing branch still fails with a helpful hint. The latest development-only revision work resolves slash-containing /tree/ links against actual remote branch/tag refs, selecting the longest matching prefix and verifying any trailing directory exists. This includes hidden folders like .github and percent-encoded spaces in directory names. It then analyzes the whole repository at that revision (not only the directory). If the ref is unavailable, or a path contains an unsupported URL component, or remote discovery is refused, paste the branch-root URL or use the explicit --branch/--tag selector. With published stable v1.5.2, clone the repository yourself and analyze the local checkout.

A GitHub pull request, issue, or release page cannot be cloned. These are browser pages rather than Git repository URLs. Development builds support /tree/<branch-or-tag> and, with the newer revision-selection work, /commit/<full-SHA>; other unsupported routes are rejected before invoking Git. Published v1.5.0, v1.5.1, and v1.5.2 installers do not include the branch-link feature or the new explicit revision selectors. Use a repository clone URL or an already checked-out local directory.

An exact commit is unavailable. A full commit SHA may not be present in the objects fetched by git clone; shallow clones especially limit the available history. Try a branch containing the commit, or retry without --clone-depth. RepoDNA does not silently analyze another revision. If a branch is missing, check that your Git credentials can access it and that you did not paste a directory URL in place of a branch-root URL.

A copied GitHub repository-root URL contains browser navigation. Links from a browser can include ?tab=... or #readme, which are not part of the Git remote. Development builds after v1.5.0 remove those suffixes for recognized GitHub repository-root URLs before cloning; other hosts remain unchanged. With stable v1.5.0, remove the suffix manually or copy the repository's clone URL.

A private repository cannot be cloned. RepoDNA never lets Git prompt for credentials. Use a URL your Git can access without prompting (for example an SSH URL with a key in your agent, or a credential helper), or clone the repository yourself and analyze the directory. Avoid putting passwords or access tokens directly in Git URLs: your shell history or operating system's process list may expose them. Development builds after v1.5.0 redact HTTP(S) URL userinfo and password-bearing userinfo in supported SSH URL schemes when Git echoes those URLs in errors. This is not a universal secret scanner and cannot protect credentials entered elsewhere. Prefer a Git credential helper or SSH agent.

The analysis is slow. Try --profile quick (no history) or --profile standard instead of deep, limit history with --max-commits, and exclude large generated or vendored directories with [ignore] patterns. Repeat analyses reuse the per-file cache unless you pass --no-cache or --no-store. See the benchmarks for typical times.

Some files are not analyzed. Files larger than analysis.max_file_bytes (2 MB) are classified but not read, binary files are not read, and paths matched by .gitignore, .ignore, or [ignore] patterns are skipped. repodna show --section structure reports how many files were skipped and which ignore patterns applied.

Generated or vendored code distorts the results. Mark it in repodna.toml ([classification] generated = ["src/gen/**"], vendor = ["third_party/**"]) or with linguist-generated and linguist-vendored in .gitattributes.

A finding is wrong for this repository. Findings are signals, not verdicts. Accept it with a reason, so it stays visible but no longer fails CI:

[[suppress]]
rule = "quality.large-file"
path = "src/generated/**"
reason = "Generated from the schema"

If you think the rule itself is wrong, open an issue.

A language is not recognized. It is listed under unrecognized files. A language plugin can add it.

Configuration#

invalid configuration (exit code 4). The message names the file and the key. Unknown keys are errors, which catches typos. Run repodna config validate.

A setting in repodna.toml has no effect. [ai], [plugins], [execution], privacy.remote_ai, and privacy.telemetry are ignored in a repository's configuration, with a warning; set them in your user configuration (repodna config path). repodna config show prints every effective value and where it came from.

Storage#

local storage could not be read or written (exit code 6). Check that the data directory is writable (see privacy); set REPODNA_HOME to use another directory.

The database is damaged. repodna cache repair checks it, moves a damaged database aside (it is never deleted automatically), and rebuilds the index from the stored artifacts. repodna cache reset deletes the database and cache but keeps the artifacts.

Writing a report is refused. RepoDNA does not overwrite files or write into directories it did not create, and never writes reports into the root of a Git working tree. Choose another --output, or pass --force.

Web interface#

The page says the build does not include the interactive web interface. The binary was built without the web interface (for example with cargo install --git). Install a release binary, or build the interface first (npm ci && npm run build -w @repodna/web) and reinstall; see installation.

The page asks you to sign in, or the API returns 401. Open the link that repodna serve printed; it contains the session token. A new token is generated every time the server starts.

The port is in use. repodna serve --port 0 picks a free port.

A copy of the web version on GitHub Pages shows the README instead of the interface. GitHub Pages is publishing the repository's files from a branch. The Web version workflow puts the interface back about a minute after each push; to keep the README from showing at all, set Settings > Pages > Source to GitHub Actions, then run the Web version workflow once from the Actions tab. See the web version.

A browser folder selection is not accepted. Select one repository root, not files from multiple unrelated folders. Browser imports reject unsafe or duplicate relative paths. If the folder contains generated or vendored material that is not needed, choose a smaller project folder or analyze the working tree with the CLI instead. See the browser workflow.

Browser analysis is missing commit history or contributors. The static web version analyzes files locally with WebAssembly, but it cannot read the repository's Git database. Use repodna analyze, repodna serve or the desktop app to include history. See the full-history workflow.

A recent analysis is missing after reopening the page. Recent entries are kept in browser storage, separately from stored CLI analyses. Private-browsing sessions, disabled storage, cleared site data and browser eviction can remove them. Open the original .repodna or repodna.json file again. Review the recent-analysis preference in Settings before assuming the source analysis was lost.

The web version does not work offline. Visit it successfully while connected before trying it offline; the browser needs to cache the interface and its WebAssembly files. Browser storage eviction or clearing site data may require another online load. A locally installed binary or desktop app avoids depending on browser offline caching.

The What's New dialog no longer appears. It is shown once per installed version after first launch or update. Reopen App > What's New from the sidebar to review the bundled notes. This does not need an internet connection.

Desktop app#

It does not start on Linux. Install WebKitGTK 4.1 (libwebkit2gtk-4.1-0 on Debian and Ubuntu, webkit2gtk4.1 on Fedora).

macOS or Windows refuses to open it. The app is not code-signed; see unsigned binaries.

Findings and exports#

An exported file has fewer findings than the analysis. Findings exports use the current search, severity, category and suppression filters. Clear the filters or enable Show suppressed where applicable before exporting. The CSV, JSON and Markdown exports include all matching results, not only the first 25 displayed on the page.

A findings JSON export cannot be opened as a RepoDNA analysis. The Findings page exports an array of matched finding records; it is not the full RepositoryDNA artifact. Use Reports & export to save the full analysis, or run repodna analyze . --format json > repodna.json.

The exported review contains private information. Reports and finding evidence may include file paths, commit metadata, and contextual details. Choose the public sharing preset where appropriate, then review the actual output before distributing it. See the sharing workflow and privacy.

AI explanations#

Message What to do
AI features are off Configure [ai] in your user configuration; see AI.
Remote providers are not allowed Set privacy.remote_ai = true or pass --allow-remote-ai.
The API key is missing Export the variable named by ai.api_key_env.
The request timed out Raise ai.timeout_seconds, or use a smaller model.
The model declined to answer The message gives the provider's reason when there is one. Models differ in what they decline: try another ai.model, or a narrower request such as --module.
Could not reach the AI provider: a certificate error RepoDNA checks the provider's certificate against the Mozilla root certificates built into it, not the operating system's store, so a proxy that re-signs HTTPS traffic is rejected. Ask for the provider's host to be exempted, or use a local gateway as ai.endpoint.

repodna explain --dry-run shows what would be sent without contacting anything. HTTP providers use the proxy named by ALL_PROXY, HTTPS_PROXY, or HTTP_PROXY and honor NO_PROXY; endpoints on this machine are always reached directly.

Plugins#

A plugin is not found. repodna plugins list shows what was discovered and where; pass --plugin-dir or add the directory to [plugins] directories.

A plugin fails. Its error output is shown as a warning, and the rest of the analysis is unaffected. repodna plugins check DIR validates its manifest and language definitions. Raise [plugins] timeout_seconds for slow analyzers.

Reporting a problem#

Include the output of repodna version --json and repodna doctor --json, the command you ran, and what you expected. repodna doctor --export diagnostics.zip collects the checks, your environment, and your configuration in one file you can attach, without any source code; read it before you share it. Use the issue templates. Report security vulnerabilities privately, as described in SECURITY.md.

Edit this page on GitHub