Troubleshooting¶
Common issues and solutions when using ConfluenceSynkMD.
Authentication Errors¶
401 Unauthorized¶
Cause: Invalid or expired credentials.
Solutions:
- Verify
CONFLUENCE__BASEURLincludes the correct domain - Check that
CONFLUENCE__USEREMAILandCONFLUENCE__APITOKENare correct - Generate a new API token at id.atlassian.com
- For Bearer auth, ensure the token hasn't expired
403 Forbidden¶
Cause: The account lacks permissions for the target space.
Solutions:
- Verify the account has read/write access to the Confluence space
- Check space permissions in Confluence: Space Settings → Permissions
Space and Page Errors¶
Space not found¶
- Verify the space key (not the display name):
--conf-space DEV - Check for typos — space keys are case-sensitive
Page not found¶
- Verify the page ID:
--conf-parent-id 12345 - Ensure the page exists and is accessible by the authenticated user
Diagram Rendering Issues¶
docker not found / Mermaid fails¶
Cause: Docker CLI is not installed or not on PATH.
Solutions:
Diagrams blank or error¶
- Check Node.js version (requires 22+)
- In Docker, ensure Chromium dependencies are installed (handled by the provided Dockerfile)
- Try
--diagram-output-format png(more compatible than SVG)
Upload Issues¶
Pages not updating¶
- Remove
--skip-updateto force re-upload - Check if content hashes match (same content = skip)
- Verify
--no-write-backis not preventing page-ID tracking
Duplicate pages created¶
- Ensure page-ID write-back is enabled (don't use
--no-write-back) - Check for
<!-- confluence-page-id: ... -->comments in your Markdown files - Use
--loglevel debugto see collision detection output
Download Issues¶
Missing files or wrong structure¶
- Verify
--conf-parent-idor--root-pagepoints to the correct root - Check that pages were originally uploaded with
--keep-hierarchy - Use
--loglevel debugto see which pages are being fetched
Logging¶
Increase log verbosity for debugging:
Log levels: debug, info, warning, error, critical
Logs are written to:
- Console — real-time output
- File —
logs/md2conf-{date}.log(rolling daily)