Overview
This guide covers common issues, error messages, and solutions across all Dex workflows.Workspace and Setup Issues
Workspace setup canceled or missing
Workspace setup canceled or missing
~/.config/dexdsl/workspaces.json) is missing or invalid.Solution:site and api repo roots.TTY required error
TTY required error
dex init, dex update, dex status, or dashboard features require an interactive terminal.Solution:- Run in an interactive terminal (not in CI/CD or redirected output)
- Use non-TTY alternatives where supported:
dex entry audit(non-interactive)dex assets validate(non-interactive)dex catalog validate(non-interactive)dex init --from seed.json(non-interactive with seed file)
DEX_WORKSPACE_FILE not found
DEX_WORKSPACE_FILE not found
DEX_WORKSPACE_FILE environment variable points to a non-existent file.Solution:- Check the environment variable:
- Either:
- Unset the variable:
unset DEX_WORKSPACE_FILE - Fix the path:
export DEX_WORKSPACE_FILE=~/.config/dexdsl/workspaces.json - Run setup:
dex setup --reset
- Unset the variable:
Entry Creation and Validation
Template not found
Template not found
- Verify the path:
- Use auto-detection (omit
--template) - Use canonical template:
Template validation failed
Template validation failed
<script> tags with specific IDs:dex-sidebar-configdex-sidebar-page-configdex-manifest
Video URL required for non-interactive init
Video URL required for non-interactive init
video.dataUrl.Solution:
Add video URL to seed file:Generated HTML failed sanitizer verification
Generated HTML failed sanitizer verification
- Forbidden runtime script hosts (squarespace, sqspcdn, legacysite)
- Missing auth trio scripts
- Legacy Auth0 blocks
- Use the canonical template:
- If using a custom template, ensure it:
- Includes auth trio scripts:
/assets/vendor/auth0-spa-js.umd.min.js/assets/dex-auth0-config.jsor/assets/dex-auth-config.js/assets/dex-auth.js
- Has no legacy Auth0 markers:
<!-- Auth0 -->id="btn-login"id="btn-profile-container"
- Has no external script sources from forbidden hosts
- Includes auth trio scripts:
Schema validation failed
Schema validation failed
- Missing required fields:
lookupNumberattributionSentencecredits.artist
- Invalid bucket names (must be A, B, C, D, E, or X)
- Malformed manifest structure
- Invalid video mode (
urlorembedonly)
Entry Audit Failures
FAIL: missing required runtime marker
FAIL: missing required runtime marker
id="scroll-gradient-bg"id="gooey-mesh-wrapper"class="dex-breadcrumb"
FAIL: invalid lookup token format
FAIL: invalid lookup token format
lookupNumber field has an invalid format.Expected format:LOOKUP-0042lookup:LOOKUP-0042- Plain lookup numbers are also accepted
entries/tim-feeney/entry.json directly:FAIL: recording index token parse error
FAIL: recording index token parse error
recordingIndexPdfRefrecordingIndexBundleRefrecordingIndexSourceUrl
- Lookup ref:
lookup:LOOKUP-0042 - Asset ref:
asset:1a2b3c4d5e6f - Bundle ref:
bundle:1a2b3c4d5e6f - Source URL: Valid HTTP(S) URL
FAIL: forbidden runtime script host detected
FAIL: forbidden runtime script host detected
squarespace.comsquarespace-cdn.comsqspcdn.comlegacysite.com
- Open update wizard:
- Regenerate from canonical template
- Or manually edit
entries/tim-feeney/index.htmlto remove forbidden scripts
Catalog and Manifest Issues
Catalog manifest entry not found
Catalog manifest entry not found
Catalog manifest patch requires resolvable entry_id
Catalog manifest patch requires resolvable entry_id
catalog.entries.json.Solution:
Provide explicit --entry-id:Catalog manifest remove blocked
Catalog manifest remove blocked
- Retire instead (recommended):
- Force remove (if you’re sure):
Spotlight entry not staged in manifest
Spotlight entry not staged in manifest
Home featured entry missing from catalog
Home featured entry missing from catalog
- Add to catalog:
- Remove from home featured:
Preflight and Deployment Issues
Preflight failed: no non-exempt entries audited
Preflight failed: no non-exempt entries audited
entry.json exist in entries/.Solution:- Check entries directory:
- Ensure entries have
entry.json: - Create entries if missing:
Preflight failed: entry audit failures
Preflight failed: entry audit failures
- Audit failing entries:
- Fix issues and repair:
- Re-run preflight:
Preflight failed: missing protected asset coverage
Preflight failed: missing protected asset coverage
- Inspect coverage:
- Add missing mappings in
data/protected.assets.json: - Re-run preflight
Preflight failed: generated HTML secure check failure
Preflight failed: generated HTML secure check failure
- Legacy Auth0 blocks
- Forbidden runtime script hosts
- Missing auth trio
Admin token/env mismatch
Admin token/env mismatch
- Confirm environment:
- Export correct token:
- Verify Worker secret exists:
- Add secret if missing:
Git push failed
Git push failed
Detached HEAD is not deployable
Detached HEAD is not deployable
Doctor and Repair Issues
Repair aborted: regenerated HTML failed sanitizer
Repair aborted: regenerated HTML failed sanitizer
- Use canonical template:
- Check entry metadata for forbidden patterns
- Ensure
entry.jsonis valid
Performance and Scale Issues
Entry audit taking too long
Entry audit taking too long
- Audit specific entries only:
- Use
--inventory-onlyto skip runtime checks: - Run in parallel for specific slugs (if scripting)
Debug Strategies
Enable Verbose Logging
Set environment variable:Inspect Generated Files
Check entry artifacts:Validate JSON Files
Check File Permissions
Getting Help
Check Documentation
Run Manual Verification
Run Full Test Suite
Common Gotchas
Wrong Working Directory
Stale Environment Variables
Workspace Config Stale
dex setup --reset to update pathsGit State Issues
Next Steps
If you’ve exhausted these solutions:- Check GitHub issues: dexdsl/dex-cli issues
- Review commit history for recent breaking changes
- Consult with team leads or file a support ticket
- Run verification suite for contract validation