Troubleshooting
Common issues and solutions when working with themes in CV Wonder.
Theme Installation Issues
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_TOKEN
echo $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> --debugLook for messages indicating which authentication method is being used.
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
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> --debug
Theme Generation Issues
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
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:
cvwonder theme install github.com/user/repo@develop --force -
Or save your changes first:
cd themes/my-theme
git stash
cd ../..
cvwonder theme install github.com/user/repo@develop
Using --force will discard any uncommitted changes in the theme directory. Make sure to back up any customizations before using this flag.
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 --debug
CI/CD Integration Issues
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-theme
For 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/theme
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-theme
Getting Help
If you continue to experience issues:
-
Enable debug mode:
cvwonder theme install <url> --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
- Install Remote Theme - Detailed installation guide
- Theme Authentication - CLI authentication details
- Development Guide - Development setup