Troubleshooting
Ce contenu n’est pas encore disponible dans votre langue.
Common issues and solutions when working with themes in CV Wonder.
Theme Installation Issues
Section titled “Theme Installation Issues”Authentication Errors
Section titled “Authentication Errors”Error: authentication required or 404: Not Found for private repositories
Solution: Ensure you have proper authentication configured:
-
Verify GitHub CLI authentication:
gh auth statusIf not authenticated, run:
gh auth login -
Check environment variables:
echo $GITHUB_TOKENecho $GH_TOKENIf empty, set one:
export GITHUB_TOKEN="ghp_your_personal_access_token" -
Verify token permissions:
- Token must have
reposcope for private repository access - Visit GitHub Token Settings to check
- Token must have
-
Debug authentication detection:
cvwonder theme install <url> --log-level debugLook for messages indicating which authentication method is being used.
Network/Connection Issues
Section titled “Network/Connection Issues”Error: failed to clone repository or connection timeout
Solution:
- Check your internet connection
- Verify the repository URL is correct
- Try with a public repository to test connectivity:
cvwonder theme install https://github.com/germainlefebvre4/cvwonder-theme-default
Permission Denied
Section titled “Permission Denied”Error: permission denied or access forbidden
Possible Causes:
- GitHub token has insufficient permissions
- Repository is private and you don’t have access
- Token has expired
Solution:
- Verify you have access to the repository on GitHub
- Create a new personal access token with
reposcope - Ensure the token is correctly set:
export GITHUB_TOKEN="ghp_new_token_here"cvwonder theme install <url> --log-level debug
Theme Generation Issues
Section titled “Theme Generation Issues”Theme Not Found
Section titled “Theme Not Found”Error: theme 'my-theme' not found
Solution:
- List installed themes:
cvwonder theme list
- Verify the theme name matches exactly
- Install the theme if missing:
cvwonder theme install <theme-url>
Branch Switching Errors
Section titled “Branch Switching Errors”Error: Error switching ref 'develop' or your local changes would be overwritten
Cause: You have uncommitted changes in the theme directory that would be overwritten when switching branches.
Solution:
-
Use the –force flag to discard local changes and switch anyway: Re-run your install command with
--force(see Install a remote theme). -
Or save your changes first:
cd themes/my-themegit stashcd ../..# then re-run your install command
Template Rendering Errors
Section titled “Template Rendering Errors”Error: Template errors during generation
Solution:
- Validate your CV file first:
cvwonder validate --input=cv.yml
- Check theme compatibility with your CV structure
- Review theme documentation for required fields
- Use debug mode to see detailed errors:
cvwonder generate --log-level debug
CI/CD Integration Issues
Section titled “CI/CD Integration Issues”GitHub Actions Authentication
Section titled “GitHub Actions Authentication”Problem: Theme installation fails in CI/CD pipeline
Solution: Use the built-in GITHUB_TOKEN:
- name: Install theme env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: cvwonder theme install https://github.com/your-org/your-themeFor cross-repository access, use a Personal Access Token:
- name: Install theme from another org env: GITHUB_TOKEN: ${{ secrets.PRIVATE_THEME_TOKEN }} run: cvwonder theme install https://github.com/other-org/themeDocker Environment
Section titled “Docker Environment”Problem: Authentication not working in Docker
Solution: Pass environment variables to the container:
docker run -e GITHUB_TOKEN="$GITHUB_TOKEN" \ -v $(pwd):/cv \ germainlefebvre4/cvwonder:latest \ theme install https://github.com/your-org/your-themeGetting Help
Section titled “Getting Help”If you continue to experience issues:
-
Enable debug mode:
cvwonder theme install <url> --log-level debug -
Check the logs for detailed error messages
-
Verify system requirements:
- Git is installed and accessible
- Network connectivity
- Proper file permissions
-
Open an issue on GitHub with:
- CVWonder version (
cvwonder version) - Operating system
- Debug output
- Steps to reproduce
- CVWonder version (
See Also
Section titled “See Also”- Install Remote Theme - Detailed installation guide
- Theme Authentication - CLI authentication details
- Development Guide - Development setup