Troubleshooting
This guide helps you diagnose and fix common issues when using AIGNE DocSmith. If you encounter problems during generation, publishing, or configuration, please check the solutions for the following scenarios.
Configuration Issues#
Issue 1: Configuration File Format Error#
Error messages:
Error: Failed to parse config file: Implicit map keys need to be followed by map values at line 112, column 1:
lastGitHead: d9d2584f23aee352485f369f60142949db601283
appUrl: https://docsmith.aigne.ioError: Failed to parse config file: Map keys must be unique at line 116, column 1:
docsDir: .aigne/doc-smith/docs
appUrl: https://docsmith.aigne.io
^Possible causes: YAML syntax errors in the configuration file, common issues include:
- Using tabs instead of spaces for indentation
- Using Chinese colons(:)instead of English colons(:)
- Missing necessary quotes
- Duplicate configuration items
Solutions:
- Check the line number in the error message to locate the problem
- Verify that the indentation is correct (use spaces, not tabs)
- Ensure colons are English half-width colons(:), not Chinese full-width colons(:)
- Use an online YAML validator to check syntax
- After fixing, run
aigne doc publishagain
Tip: In addition to fixing configuration file format errors, if certain parameters are not correctly configured, the system will automatically use default values, which will not affect basic functionality.
Generation Issues#
Issue 2: Generated Content Doesn't Meet Expectations#
You may encounter:
- Generated content tone doesn't match your requirements
- Document structure doesn't match your expectations
- Missing some important information
Possible causes:
- The
rulesdescription in the configuration is not detailed or clear enough targetAudienceTypessettings don't match the actual target audience- Too few or irrelevant reference documents in
sourcesPath
How to fix:
- Enrich
rules: Add detailed guidance inconfig.yaml:rules: | ### Documentation Structure Requirements 1. Each document must include: * Clear title and overview * Step-by-step instructions * Code examples where applicable * Troubleshooting section ### Content Tone - Use clear, concise language - Include concrete data and examples - Avoid marketing terminology - Focus on actionable information - Adjust audience: Ensure
targetAudienceTypesmatches the actual audience:targetAudienceTypes: - endUsers # For end users - developers # For technical audience - Add more sources: Include relevant documents in
sourcesPath:sourcesPath: - ./README.md - ./docs - ./CHANGELOG.md - ./src - ./package.json
Issue 3: Low Quality or Missing Images#
You may encounter:
- Images in generated documentation are not clear enough
- Expected images don't appear
Cause: The media.minImageWidth setting value is too high, filtering out some images.
How to fix:
- Open the
config.yamlfile and find themediaconfiguration:media: minImageWidth: 800 # Current threshold - Adjust this value according to your needs:
- 400-600: Will include more images, but may include some lower quality images
- 600-800: Balanced quality and quantity (recommended setting)
- 800-1000: Only high-quality images, fewer in number
- After saving the file, run the update command:
aigne doc update
Issue 4: Missing or Incomplete Documentation#
You may encounter:
- Some expected documents are not generated
- Generated documents are incomplete
Possible causes:
sourcesPathdoesn't include all necessary source files- Source files are not accessible or have permission issues
documentationDepthis set too low
How to fix:
- Check source paths: Verify all necessary files are included:
sourcesPath: - ./README.md - ./src # Include source code directories - ./docs # Include existing documentation - ./package.json # Include configuration files - Increase documentation depth: If you need comprehensive documentation:
documentationDepth: comprehensive # Instead of essentialOnly - Verify file permissions: Ensure DocSmith has read access to all files in
sourcesPath
Translation Issues#
Issue 5: Translation Fails or Produces Poor Quality#
You may encounter:
- Translation command fails
- Translated content has poor quality or errors
Possible causes:
localeandtranslateLanguageshave conflicting settings- Source documentation has syntax errors
- Network issues during translation
How to fix:
- Check language settings: Ensure
translateLanguagesdoesn't include the same language aslocale:locale: en translateLanguages: - zh # OK - ja # OK # - en # ❌ Don't include locale language - Fix source documentation: Ensure source documents are valid before translation:
# First verify source documents are correct aigne doc create # Then translate aigne doc translate - Retry translation: If network issues occur, simply run the command again:
aigne doc translate
Publishing Issues#
Issue 6: Publishing Fails with Invalid URL Error#
Error message:
Error: ⚠️ The provided URL is not a valid ArcBlock-powered website
💡 Solution: To host your documentation, you can get a website from the ArcBlock store:Cause: The appUrl in the configuration is empty or points to an invalid website address.
How to fix: Set the correct deployment address in config.yaml:
# Enter your website address
appUrl: https://your-site.user.aigne.io
# If you don't have a website yet, you can leave this empty for now
# appUrl: ""Alternatively, you can specify the URL when publishing:
aigne doc publish --appUrl https://your-docs-website.comIssue 7: Publishing Fails with Authorization Error#
Error messages:
❌ Publishing failed due to an authorization error:
💡 Please run aigne doc clear to reset your credentials and try again.❌ Publishing failed due to an authorization error:
💡 You're not the creator of this document (Board ID: docsmith). You can change the board ID and try again.
💡 Or run aigne doc clear to reset your credentials and try again.Cause: Your login credentials have expired or you don't have permission to publish to the specified board.
How to fix: Run the following commands in order:
# First clear old authorization information
aigne doc clear
# Then republish, the system will prompt you to log in again
aigne doc publishWhen running aigne doc clear, select to clear authentication tokens. Afterward, run aigne doc publish again and you will be prompted to re-authenticate.
Issue 8: Publishing Fails Due to Network Issues#
Error message:
❌ Could not connect to: https://your-site.com
Possible causes:
• There may be a network issue.
• The server may be temporarily unavailable.
• The URL may be incorrect.
Suggestion: Please check your network connection and the URL, then try again.How to fix:
- Check network connection: Ensure your network can access the target URL
- Verify URL: Confirm the
appUrlis correct and accessible - Retry: Network issues are often temporary, try again after a few moments:
aigne doc publish
How to Recover#
Method 1: Using Git to Restore#
If you use Git to manage your code, you can quickly restore to a previously working configuration:
# Stash current changes
git stashThen regenerate documentation:
aigne doc createTip: If you want to restore the stashed changes later, you can run
git stash pop
Method 2: Clear and Regenerate#
If you encounter issues that cannot be located, you can clear all generated files and regenerate from scratch:
# Clear all generated files, then regenerate
aigne doc clear && aigne doc createNote: This will delete all generated content, but will not affect your configuration file. After execution, the system will regenerate documentation based on the current configuration.
Method 3: Reset Configuration#
If configuration issues persist, you can reset the configuration file:
# Clear configuration (select config file when prompted)
aigne doc clear
# Then reinitialize
aigne doc initWarning: This will remove your current configuration. Make sure to back up important settings before proceeding.
Best Practices#
Here are some practical suggestions to help you avoid common issues:
- Save modification history: If using Git, commit after each configuration file modification so you can easily revert to previous versions if problems occur
- Backup before modifying: Before modifying important configurations, copy the configuration file as a backup, just in case
- Test immediately after modification: After each configuration modification, immediately run
aigne doc createoraigne doc updateto test, so problems can be discovered early - Check format correctness: After modifying YAML files, use online tools to check if the format has errors
- Start simple: Start with the simplest configuration, confirm everything works, then gradually add more complex features
- Record your modifications: Simply record what you modified each time and why, making it easier to find the cause when problems occur later
- Keep sources updated: Regularly update
sourcesPathto include new source files and documentation - Review generated content: After generation, review the output to ensure it meets expectations before publishing
Getting More Help#
If the above methods cannot solve your problem, you can try:
- Consult configuration documentation: Check Configuration Reference to understand detailed explanations of each configuration item
- Check command documentation: Refer to command documentation to understand detailed usage of commands
- Review error logs: Carefully read the error messages displayed in the terminal, which usually contain specific hints
- Use AIGNE Observability: Use the AIGNE Observability tool described below to get detailed execution records
- Seek community help: Visit AIGNE Community to ask questions, other users or developers may help you
Using AIGNE Observability for Troubleshooting#
When you encounter complex issues that require in-depth troubleshooting, or need to report problems to the community, you can use AIGNE Observability. It records every step of the execution process in detail, helping you or technical support quickly locate the problem.
Starting the Observability Server#
Run the following command to start the local Observability server:
Start Observability Server
aigne observeYou will see output showing:
- Database path: Where tracking data is saved
- Server address: Open this address in your browser to view the Observability dashboard

Viewing Execution Records#
- Open the dashboard: Click the server address shown in the output, or open it in your browser
- View operation records: The dashboard will display all DocSmith operations, including:
- Input and output data
- Time spent on each step
- Executed operation steps and results
- Detailed error messages

Using Observability to Report Issues#
When reporting problems to the community:
- Capture tracking: Keep the Observability server running during the problematic operation
- Export tracking data: Export relevant execution records from the dashboard
- Report the issue: Visit AIGNE Community and include:
- Problem description
- Reproduction steps
- Exported tracking file
- Your configuration (if relevant)
Tip: Tracking records contain complete information about DocSmith execution, including every operation and result. Providing this information to technical support or the community can greatly improve problem resolution efficiency.