Skip to content

Troubleshooting

Symptom → fix, every entry traceable to something this guide's lab actually did, broke, or misread. The run's own header lines — templates loaded, targets loaded — are the first evidence in most of them.

Nuclei prints its banner, then sits there

Fix: it is waiting for targets on standard input (chapter 7). Given no -u and no -l, nuclei reads the pipe, and a script or terminal that never fills the pipe leaves it politely hanging (its input-read timeout defaults to three minutes, per the help). Pass targets explicitly, or redirect input from /dev/null in scripts. The lab lost several runs to exactly this before spotting it, because the banner makes it look started.

A template loads, the scan runs, and it never matches

Work the evidence in this order:

  1. Case. Word matchers are case-sensitive unless told otherwise. The lab's appliance template matched x-lab-appliance: while the server sent X-Lab-Appliance: — validated, ran, matched nothing (chapter 5). Compare your matcher's spelling with the wire's, from curl -s -i, not from memory.
  2. Part. Is the string in the part you named — header, body? Extract with curl and look at where the trait actually lives.
  3. Condition. Under matchers-condition: and, one failing test silences the rest. The status matcher is the usual silent partner: right page, wrong code.
  4. The trait is genuinely absent. Prove the target has the trait by hand before blaming the template — and keep a known-answer target around for exactly this argument.

Validation fails with an unmarshal error

[ERR] Error occurred loading template …: yaml: unmarshal errors:
  line 1: field idd not found in type templates.Alias
[FTL] Could not validate templates: errors occurred during template validation

Fix: believe it — it names the file, the line, and the field it doesn't know (here a typo, idd for id). Run -validate on your templates before any scan does; it is the cheapest red light in the tool. What it cannot check is logic: the case bug above validated perfectly.

An error about a missing nuclei-ignore file

[ERR] Could not read nuclei-ignore file on an early run means the template collection is not installed yet (the file is created by the install, chapter 2). Let a normal run install the collection, or run -ut; the error is cosmetic and does not affect the templates you pointed at directly.

Templates loaded is 0 — or thousands, not the handful you meant

Fix: the selection is the scan. List before you launch with -tl and the same flags, and read the paths it prints. Usual causes: -t pointed at the collection instead of your folder (or the reverse), a -tags/-severity/-id filter narrower than intended, or the ignore list at work — templates tagged dos, fuzz, bruteforce, local, or txt-service sit out default runs by design (chapter 6).

A workflow finishes instantly with no results and no error

Two suspects. The gate didn't open: the first template didn't match, so the subtemplates were never run (chapter 10) — test the gate template alone against the target. Or the workflow's template names didn't resolve: watch for an [ERR] Could not find template '…' line above the summary. Workflow names resolve from the folder you run in and the default template directory, not from the workflow's own folder; run from the templates' directory.

An extracted value has junk on the end

The lab's extractor returned LabWidget/2.1 (lab fixture)\r — the header block is raw text, line endings included, and a greedy pattern keeps them. Exclude \r and \n from what the pattern captures (chapter 5's shipped form), and check extractions in -jsonl output, where the junk is visible instead of trimmed by the console's display.

A finding won't reproduce by hand

Replay it exactly: the finding's own curl-command (chapter 9) is the request as sent. If the answer differs, something between the runs changed — the service, its mood under load, a rate limiter answering instead of the application, or a template that matched a transient state. A match is a lead (chapter 6); a lead that won't reproduce is information about the target's behaviour under scan conditions, and occasionally about the scan's manners (chapter 8).

The report is a wall of info

The scan was wider than the question. Narrow by tag, product, or id (chapter 6), use -severity to set a floor, and read chapter 6's families again: a pile of tech and exposure findings is an inventory, not an incident.

Check: nearly every entry above resolves to one of three questions, in this order — did it load what I meant, did it ask what I meant, did the target actually say that? The header lines, -tl, and a curl answer all three.