How to Troubleshoot Common Issues
Items not appearing in matrices
Check that the item’s role matches a row or column role in your configured matrices.
Items with roles not referenced in any matrix still exist in the graph but won’t appear in matrix output.
Verify the item was parsed correctly — run the stats command:
npx antora-tracer stats -i modules/ --preset requirements-engineering
This shows item counts per role.
Relationships not showing up
Verify the relation type is listed in coverageRelations for the relevant column.
Only relations matching those types count as coverage in the matrix.
For example, if your matrix defines coverageRelations: design: [addresses, satisfies], then a design → requirement relation using implements won’t appear in that matrix cell.
"Relation not allowed" errors
Your configuration doesn’t permit that relation type between those roles. The error message lists the allowed types. Example:
Error: Relation 'verifies' not allowed from 'design' to 'requirement'. Allowed: [addresses, satisfied_by, implements]
Fix: either use an allowed relation type, or add the missing type to your traceability.yml:
traceability:
relations:
design:
requirement:
- addresses
- satisfied_by
- implements
- verifies # ← add this
"Unknown role" warnings
The item’s role attribute doesn’t match any role in your configuration.
Example:
Warning: Unknown role "widget". Known roles: requirement, design, test.
Unknown roles generate warnings, not errors — the item is still stored in the graph.
To fix: either add the role to traceability.yml, or correct the role attribute on the item.
Build completes but no traceability output
Check:
-
enabled: truein your playbook config (or the default, which istrue) 2. Your.adocfiles are in the Antora content catalog (have page family) 3. The files contain valid[item]blocks
Enable verbose logging for more detail:
npx antora antora-playbook.yml --log-level debug
"target of xref not found" when referencing partial items
Partials don’t produce HTML pages — use inline relationship macros instead of xref:partial$.... See How to use partial files with items.