Troubleshooting
This guide helps diagnose and resolve common runtime, permission, cache, CLI, HTTP workbench, and TUI issues in VulnParse-Pin v2.1.1.
Fast Triage Flow
- Run with
--log-level INFOorDEBUGto inspect phase execution. - Confirm your
.vpp.dband cache paths contain no symlinks or world-writable permissions. - Run
vpp intel statusto verify local feed/SQLite cache freshness and HMAC/SHA-256 health. - Confirm input format, file size (
--allow-large), andvpp verifyoutput paths.
v2.1.1 Common Issues & Fixes
1. DuckDB .vpp.db Symlink or Permission (0o600 / 0o700) Errors
Symptoms:
Refusing symlink DuckDB workspace path: ...orRefusing symlink DuckDB WAL sidecar: ...Refusing symlink loop in ...orFilePermissionError/FilePathErrorwhen opening.vpp.db
Cause:
VppDatabase(_validate_duckdb_paths) checks the.vpp.dbtarget, every ancestor directory, and.wal/.tmpsidecars against symlinks and symlink loops, and enforces0o600POSIX permissions on.vpp.db/.walfiles (0o700on created directories).
Fixes:
- Point
--dbto a real, non-symlinked local path whose parent directories contain no symlinks (for example/work/vpp.dbinstead of a symlinked shortcut). - If an existing
.vpp.dbor.vpp.db.walhas overly permissive modes or belongs to another user, ensure it is owned by the current user withchmod 600 .vpp.db(andchmod 700on its private state directory).
2. Read-Only $HOME or XDG_DATA_HOME Errors (--portable)
Symptoms:
PermissionErroror path policy errors when runningvpp scan,vpp diff,vpp export, orvpp intelin containers (--read-onlyrootfs), restricted CI runners, or systemd services where$HOME/~/.local/shareis non-writable.
Fixes:
- Pass
--portable(-P) or setVULNPARSE_PIN_PORTABLE=1and run inside a writable working directory so VulnParse-Pin writes configs, caches, and logs under./data. - Alternatively, mount a writable volume and set
HOME=/workorXDG_DATA_HOME=/work/xdg. - Note:
vpp verify <runmanifest.json>is strictly read-only by default and does not write to$HOMEorXDG_DATA_HOMEunless you explicitly pass a custom--log-file.
3. vpp intel status HMAC, World-Writable, or Checksum Diagnostics
Symptoms:
vpp intel statusreportsintegrity=world-writable,integrity=tampered,integrity=no-signature,integrity=missing-checksum, orintegrity=symlink.
Diagnosis:
vpp intel status
vpp intel status --json
Reported health |
Meaning & Fix |
|---|---|
world-writable |
Cache file or .sig.json has group/other-writable (o+w) permissions. Fix permissions (chmod 600 <file>) or delete and re-sync (vpp intel sync --refresh). |
tampered |
File digest mismatch, or VP_SQLITE_HMAC_KEY / VP_FEED_CACHE_HMAC_KEY is set/unset differently from when the cache was created. Export the matching key or re-sync with vpp intel sync --refresh. |
no-signature / missing-checksum |
Sidecar .sig.json or .sha256 is missing. Re-sync (vpp intel sync --refresh) or pass --allow-regen if local sidecar regeneration is acceptable. |
symlink |
Cache file or sidecar is a symlink. Replace with a real file via vpp intel sync --refresh. |
corrupt |
SQLite index table could not be queried. Remove the corrupt .sqlite3 file and re-run vpp intel sync --refresh. |
4. Large Scan Rejected (> 500 MiB / --allow-large)
Symptoms:
FileInputValidatoror parser rejects a large.nessus,.xml,.sarif, or.jsonlfile.
Cause:
- By default,
FileInputValidatorenforces a500 MiB(max_size_mb=500) guardrail.
Fix:
-
Pass
--allow-large(-al) onvpp scanto raise the limit up to50 GiB:vpp scan huge_scan.nessus --allow-large --log-level WARNING
5. CSV Export Fails with Exit Code 2 (--no-csv-sanitize)
Symptoms:
[ERROR] Refusing to disable CSV cell sanitization without explicit --confirm-unsafe-csv.(exit code2)
Cause:
- Disabling spreadsheet formula-injection protection (
=,+,-,@prefix neutralization) requires explicit acknowledgment on bothvpp scanandvpp export.
Fix:
-
Keep default CSV sanitization enabled (recommended), or pass both flags intentionally:
vpp export --db .vpp.db --format csv --output raw.csv --no-csv-sanitize --confirm-unsafe-csv
6. vpp diff --fail-on or vpp assets audit --fail-on Exits with Code 2 in CI
Symptoms:
vpp diffprints the delta summary and exits with code2.vpp assets auditprints coverage and shadow/stale-rule counts and exits with code2.
Cause:
- Exit code
2fromvpp diff --fail-on <p1|p2|kev|pre-kev|stale-assumption>orvpp assets audit --fail-on <shadow|stale-rules|any>is an intentional policy/drift gate trigger (for example, a deferred CVE entered CISA KEV, crossed EPSS thresholds, triggered a Pre-KEV breakout alert, or an unmatched shadow asset / staleassets.yamlrule appeared), whereas exit code1indicates a runtime, missing-DB, or invalid-run error.
Fix:
- Inspect
--output-pr-comment/--output-json(forvpp diff) or--output-md/--json(forvpp assets audit) to review invalidated deferrals, Pre-KEV breakouts, or unmatched shadow assets. - Use
vpp assets bootstrap --db .vpp.db --merge assets.yaml --output assets.yamlto generate reviewable stubs for shadow assets. - In CI/cron scripts, branch explicitly on exit code
2vs1(see Workflow Examples).
7. vpp verify Fails on Listed Output Artifacts
Symptoms:
[FAIL] RunManifest verification failed: ...: Listed output artifact '<key>' is missing: ...[FAIL] RunManifest verification failed: ...: Output artifact '<key>' digest mismatch: ...Refusing symlink output artifact '...'
Cause:
vpp verifyvalidates not onlyrunmanifest.jsonand itsledger_eventsSHA-256 chain, but also verifies that every non-null output file recorded underoutputsexists on disk, is not a symlink (unless--allow-symlinks-readis passed), and matches its SHA-256 digest inoutput_hashes(outputs_sha256).
Fixes:
- Keep exported artifacts (
.json,.csv,_summary.md,_technical.md,_dossier.md/.html) at the paths recorded inrunmanifest.jsonwithout post-export editing. - Do not modify
runmanifest.jsonor exported reports aftervpp scan --output-runmanifestseals them; re-runvpp scanorvpp exportif you need updated outputs. - If verifying across symlinked artifact directories intentionally, pass
--allow-symlinks-read(while keeping symlink rejection enabled in untrusted environments).
8. vpp ui Fails: Missing Textual [ui] Dependencies
Symptoms:
Textual UI dependencies are not installed. Install with: pip install "vulnparse-pin[ui]"(exit code1)
Fix:
-
Core
vulnparse-pinintentionally excludes Textual to keep headless CI installs lightweight. Install the[ui]extra:pipx install --force "vulnparse-pin[ui]" # or inside your virtualenv: pip install "vulnparse-pin[ui]" -
For non-interactive
vpp demoruns without[ui], passvpp demo --no-ui.
9. dossier.html Displays Pending post-export RunManifest seal (see runmanifest.json)
Cause:
- During single-pass
vpp scan(orvpp demo),dossier.htmlanddossier.mdare written beforeRunManifesthashes all output artifacts intooutput_hashes(preventing a circular SHA-256 self-hash).
Fix:
-
This is expected for inline single-pass exports;
runmanifest.jsonholds the authoritative sealed digest and hash ofdossier.html. If you need the sealedsha256:...digest embedded insidedossier.htmlitself (for standalone distribution outside the RunManifest bundle), re-export post-scan from.vpp.db:vpp export --db .vpp.db --format dossier-html -o out/dossier.html
10. --enforce-root-read Rejects Scan Files Under $PWD
Symptoms:
FilePathError: ... is outside allowed rootswhen runningvpp scan ... --enforce-root-readorvpp verify ... --enforce-root-readon files in the current working directory.
Cause:
- Without
--portable,PermFileHandleranchorsroot_dirto the OS user data directory (~/.local/share/VulnParse-Pin/), not$PWD.
Fix:
-
Combine
--enforce-root-readwith--portable(-P) so$PWDbecomesroot_dir:vpp scan scans/nessus.xml --portable --enforce-root-read vpp verify out/runmanifest.json --portable --enforce-root-read
11. Vendor Export & Webhook Caveats
- Qualys CSV metadata preambles:
QualysCSVParserskips up to 25 non-empty report header lines to locate the realqidheader row; if a custom export has a longer preamble, trim excess title rows above theQIDcolumn header. - Nmap port-only XML vs.
--nmap: Passingnmap.xmlpositionally (vpp scan nmap.xml) emitsInformationalopen-port findings; pass--nmap nmap.xmlalongside primary Nessus/Qualys/Trivy/Nuclei scans to enrich exposure and open-port tiebreaking. - Signed webhook fails closed: Setting
--webhook-endpoint(orwebhook.enabled: true) withoutVP_WEBHOOK_HMAC_KEYexported fails closed rather than sending unsigned payloads. ExportVP_WEBHOOK_HMAC_KEYbefore runningvpp scan.
12. vpp gui and vpp mcp HTTP 401 / 403 / 415 / 501 Errors
Symptoms:
- HTTP client or browser requests to
vpp guiorvpp mcp --transport streamable-httpfail with401,403,415, or501, or startup refuses a non-loopback--host.
Causes & Fixes:
- Startup refuses non-loopback
--host: Binding outside loopback (127.0.0.1,::1,localhost) requires--auth-token-env <ENV_VAR>pointing to an environment variable at least16characters long. 401 Unauthorized: Missing or incorrectAuthorization: Bearer <token>header when--auth-token-envis active.403 Forbidden:Hostheader does not match the bound host/port (DNS-rebinding protection).Originheader is present and does not match the bound origin/port (CSWSH protection).- Missing or mismatched
X-VPP-CSRFheader onPOST /api/rpcinvpp gui. - Write-gated operation (
gui_propose_deferralorgui_promote_shadow_asset) invoked without--allow-writeonvpp gui.
415 Unsupported Media Type:POST /api/rpc(vpp gui) orPOST /mcp(vpp mcp) received aContent-Typeother thanapplication/json.501 Not Implemented: Request includedTransfer-Encoding(chunked/encoded request bodies are intentionally rejected; send a fixedContent-Lengthinstead).
13. vpp assets Errors (64 MiB Cap, --column-map, Positional Args)
Symptoms & Fixes:
exceeds 67108864 byte limit(64 MiB):vpp assets compileenforces a64 MiBhard cap per offline inventory export file. Split oversized exports by region, account, or site before compiling.- CSV headers not recognized: Pass repeatable
--column-map FIELD=HEADERoverrides (for example--column-map hostname=FQDN --column-map owner=AppTeam). Each value must followFIELD=HEADERwith non-empty left and right sides. does not accept positional input filesonaudit/bootstrap: Onlyvpp assets compileaccepts positional input files (and requires at least one). Forvpp assets auditandvpp assets bootstrap, pass--db .vpp.db(and--assets assets.yamlforaudit) without positional files.
14. vpp simulate Selector & Validation Errors
Symptoms & Fixes:
--target-risk-pct requires --goal risk-pct:--target-risk-pctis only valid when paired with--goal risk-pct(and must be in(0.0, 100.0]; omitting it with--goal risk-pctdefaults to80.0%).--top must be between 1 and 500: Pass a positive integer1..500to--top. (If no selector flags are passed at all,vpp simulatedefaults to--top 3at runtime.)
General Input & Performance Checks
Input Not Detected or Unsupported
- Confirm the file is a supported format (
nessus-xml,openvas-xml,qualys-xml,nmap-xml,sarif-2.1.0,nuclei-jsonl,nessus-csv,qualys-csv). - Check for truncated XML/SARIF exports or unexpected root tags.
- Use
--show-ingestion-summaryand--log-level INFOto inspect parser selection and ingestion confidence. See Detection and Parsing.
Slow Processing on Large Workloads
- Pass
--log-level WARNINGorERRORto avoid excessive log I/O on 100k+ findings. - Keep local intel caches warm via
vpp intel syncbefore running--offlinescans. - Validate host memory and throughput expectations against
benchmarks/bench_scale.pyand Benchmarks.
Useful Diagnostic Commands
vpp --version
vpp scan --debug-path-policy
vpp intel status
vpp demo --no-ui
vpp verify out/runmanifest.json
When Filing an Issue
Include:
vpp --versionoutput- Exact command used (redact sensitive paths, hosts, and tokens)
- Input format(s) and approximate finding count
- Relevant
--log-level DEBUGexcerpts and exit code vpp intel status --jsonoutput (if enrichment-related)