Troubleshooting¶
This page covers common issues and solutions when working with the Records Manager Skill and its documentation.
Documentation Issues¶
Build Errors¶
Problem: mkdocs build fails with errors
Common causes and solutions:
-
Invalid Mermaid syntax
-
Broken internal links
-
Missing images or assets
Clean build:
Local Preview Issues¶
Problem: mkdocs serve won't start
Port already in use:
Changes not reflecting:
-
Hard refresh browser (Ctrl+Shift+R or Cmd+Shift+R)
-
Check file saved in correct location (docs/ directory)
-
Restart server
Blank pages:
-
Check browser console for JavaScript errors
-
Verify Mermaid syntax is correct
-
Try
mkdocs build --strictto find errors
Skill Installation Issues¶
Paperless-ngx Connection Failed¶
Problem: Error: Failed to connect to paperless-ngx
Solutions:
-
Verify URL is correct
-
Test paperless-ngx is accessible
-
Verify API token
-
Check network/firewall
- Ensure paperless-ngx URL is accessible from your network
- Check if VPN is required
- Verify no firewall blocking connections
API Token Authentication Failed¶
Problem: Error: 401 Unauthorized or Error: 403 Forbidden
Solutions:
- Regenerate API token in paperless-ngx:
- Go to Settings → Tokens
- Create new token with "Read/Write" permissions
-
Update environment variable
-
Verify token permissions:
- Token must have "Read/Write" access
-
"Read only" tokens cannot upload documents
-
Check token format:
Environment Variables Not Set¶
Problem: Commands fail with "undefined" errors
Solutions:
-
Check if variables are set:
-
Set variables:
# Add to ~/.zshrc or ~/.bashrc export MADEINOZ_RECORDMANAGER_PAPERLESS_URL="https://your-paperless-url.com" export MADEINOZ_RECORDMANAGER_PAPERLESS_API_TOKEN="your-api-token" export MADEINOZ_RECORDMANAGER_COUNTRY="Australia" export MADEINOZ_RECORDMANAGER_DEFAULT_DOMAIN="household" # Reload shell source ~/.zshrc # or source ~/.bashrc -
Use .env file (recommended):
Document Upload Issues¶
Upload Fails with OCR Timeout¶
Problem: Document uploaded but OCR processing times out
Solutions:
- Check paperless-ngx OCR status:
- Go to paperless-ngx web UI
- Check "Tasks" in left menu
-
Verify OCR tasks are processing
-
Wait for OCR to complete:
- Large PDFs can take 30-60 seconds
- Image-heavy documents take longer
-
Check document in paperless-ngx UI for "Processing" status
-
Reduce file size:
- Scan at lower DPI (200 DPI instead of 300)
- Remove unnecessary pages
- Compress PDF before upload
No Tags Suggested¶
Problem: Document uploaded but no tags applied
Solutions:
- Wait for OCR completion:
- Tags are applied after OCR finishes
- Check document in paperless-ngx UI
-
Wait 30-60 seconds for processing
-
Verify document has text:
- OCR must extract text from document
- Image-only PDFs won't be tagged
-
Check if document text is selectable in paperless-ngx
-
Check domain taxonomy:
-
Manual tagging:
Search Issues¶
Search Returns No Results¶
Problem: Can't find recently uploaded documents
Solutions:
- Wait for OCR processing:
- Search works on extracted text
- Wait 30-60 seconds after upload
-
Check document in paperless-ngx UI
-
Broader search terms:
-
Check document was uploaded:
Retention Issues¶
Retention Check Shows Wrong Period¶
Problem: Documents show incorrect retention periods
Solutions:
-
Verify country setting:
-
Check document type:
- Different document types have different retention
- Tax documents: 7 years in Australia
- Medical records: 7 years for tax purposes
-
Insurance policies: While active + retention period
-
Update document type:
Deletion Issues¶
Deletion Blocked by Auditor¶
Problem: Can't delete documents even though retention expired
This is by design - Deletion Auditor requires explicit approval.
Solutions:
- Understand the workflow:
- Deletion Auditor is a safety feature
- Prevents accidental data loss
-
Requires explicit confirmation
-
Follow the approval process:
- Review what will be deleted
- Verify retention periods are truly expired
- Check documents aren't needed for audit
-
Type exact approval phrase when prompted
-
If you truly need to delete:
Hierarchical Taxonomy Issues¶
Path Validation Fails¶
Problem: Error: Invalid path when trying to classify a document
Example:
Solutions:
-
Use autocomplete to find valid paths:
-
Check path structure:
- Must have all 4 levels:
Function/Service/Activity/DocumentType - Use exact names (case-sensitive)
-
No spaces around slashes
-
Browse available functions:
Can't Find the Right Document Type¶
Problem: Don't know which hierarchical path to use for a document
Solutions:
-
Use keyword search:
Returns matching paths with relevance scores. -
Navigate step-by-step:
# Step 1: Get functions bun run ~/.claude/skills/RecordsManager/Tools/RecordManager.ts taxonomy functions --domain household # Step 2: Get services within a function bun run ~/.claude/skills/RecordsManager/Tools/RecordManager.ts taxonomy services \ --domain household \ --function HealthManagement # Step 3: Get activities within a service bun run ~/.claude/skills/RecordsManager/Tools/RecordManager.ts taxonomy activities \ --domain household \ --function HealthManagement \ --service MedicalCare # Step 4: Get document types for an activity bun run ~/.claude/skills/RecordsManager/Tools/RecordManager.ts taxonomy documenttypes \ --domain household \ --path "HealthManagement/MedicalCare/Consultations" -
Use fuzzy matching:
- Type partial paths:
health/med/consmatchesHealthManagement/MedicalCare/Consultations - Case-insensitive:
HEALTHmatchesHealthManagement - Autocomplete suggests completions
Hierarchical Tags Not Generated¶
Problem: Document uploaded but no hierarchical tags applied
Solutions:
-
Verify hierarchical taxonomy is enabled:
-
Check path was provided during upload:
-
Manually generate tags for existing document:
Storage Path Generation Fails¶
Problem: Can't generate filesystem-safe storage path
Solutions:
-
Validate path first:
-
Generate storage path from validated hierarchical path:
-
Ensure path has all 4 levels:
- Incomplete paths won't generate storage paths
- Must specify: Function/Service/Activity/DocumentType
Retention Requirements Unclear¶
Problem: Don't know how long to keep a document with hierarchical path
Solutions:
-
Get retention with full hierarchical context:
const retention = expert.getRetentionForActivity( 'household', 'HealthManagement', 'MedicalCare', 'Consultations', 'Medical Receipt' ); console.log(retention.legalCitation); // Shows legal basis console.log(retention.years); // Retention period console.log(retention.reason); // Why it can't be deleted -
Check country-specific retention:
- Australia: 7 years for medical expenses (ATO requirement)
- United States: Varies by state and document type
-
United Kingdom: 6 years for tax documents (HMRC requirement)
-
Verify retention enforcement:
Migration from Flat Taxonomies¶
Problem: Need to migrate existing flat-tagged documents to hierarchical structure
Solutions:
- Follow the migration guide:
- See Migration Guide for step-by-step instructions
- Automatic mapping for 90%+ of documents
-
Manual review for edge cases
-
Check migration status:
-
Use dual-mode during transition:
- Hierarchical taxonomies support backward compatibility
- Flat and hierarchical can coexist during migration period
- Legacy queries still work with flat tags
Autocomplete Not Working¶
Problem: Autocomplete doesn't suggest paths as expected
Solutions:
- Check input format:
- Use forward slashes:
HealthManagement/MedicalCare - No spaces around slashes
-
Case-insensitive matching supported
-
Try partial path:
-
Verify domain is correct:
- Different domains have different taxonomies
householdvscorporatevsunit-trust- Check domain supports the function you're searching for
Getting Help¶
Still Having Issues?¶
- Check the documentation:
- Installation Guide
- User Guide
-
Search existing issues:
-
Create a new issue: Include:
- Your OS and version
- paperless-ngx version
- Error message (full output)
- Steps to reproduce the problem
-
What you expected to happen
-
Check paperless-ngx documentation:
- paperless-ngx Docs
- Many issues are related to paperless-ngx configuration
Common Error Messages¶
| Error Message | Cause | Solution |
|---|---|---|
Failed to connect to paperless-ngx | URL incorrect or service down | Verify URL, test connection |
401 Unauthorized | Invalid API token | Regenerate token in paperless-ngx |
Document not found | Wrong document ID | Search for document to find correct ID |
No tags suggested | OCR not complete or no text | Wait for OCR, check document has text |
Retention period not found | Invalid country or document type | Verify country and domain settings |
Deletion requires approval | Deletion Auditor safety feature | Follow approval workflow |
Version: 1.2.0 Last Updated: 2026-01-20