Bootstrap Issues
Error: Script Exits Immediately
Symptom:set -e (exit on error) and explicitly checks for root:
apt-get Command Not Found
Symptom:-
Manually install required tools:
ansibleagebw(Bitwarden CLI)chezmoigitcurl
-
Then proceed with:
Snap Installation Fails
Symptom:Bitwarden Issues
Bitwarden Login Fails
Symptom:1. Incorrect Credentials
Verify credentials by logging into the web vault at https://vault.bitwarden.com2. Self-Hosted Instance
If using a self-hosted Bitwarden server:3. Two-Factor Authentication
If 2FA is enabled:4. API Rate Limiting
Wait a few minutes and try again if you see:Bitwarden Session Expired
Symptom:BW_SESSION environment variable is not set or expired.
Solution:
~/.bashrc:
Cannot Find Secret in Bitwarden
Symptom:-
List all items:
-
Check specific note:
-
Create missing note:
- Log into Bitwarden web vault
- Create Secure Note with exact name (case-sensitive)
- Paste secret content
- Save
- Sync CLI:
bw sync
chezmoi-age-key- Age encryption key- SSH keys as configured in templates
Age Encryption Issues
Age Key Not Found
Symptom:~/.config/chezmoi/key.txt.
Solution:
-
Check if key exists:
-
If missing, retrieve from Bitwarden:
-
If not in Bitwarden, you need the original key or must re-encrypt all files:
Wrong Age Key Permissions
Symptom:Cannot Decrypt File
Symptom:-
Verify current key’s public key:
-
Check which key was used to encrypt:
-
If keys don’t match, you need the correct key from:
- Another machine where it works
- Your backup/password manager
- Re-encrypt the file with current key (if you have unencrypted version)
Chezmoi Issues
chezmoi init Fails
Symptom:-
Check network connectivity:
-
Verify repository exists:
-
Try with full URL:
-
Use SSH instead of HTTPS:
Template Execution Error
Symptom:-
Check current config:
-
Re-run init to answer prompts:
-
Or manually edit config:
Add missing variables:
Files Not Applied
Symptom: Files exist in repository but are not in home directory afterchezmoi apply.
Cause: Conditional templates excluding files based on OS or machine type.
Solution:
-
Check what would be applied:
-
See which files are managed:
-
Verify template conditions:
-
Check your config data:
Ansible Issues
Ansible Playbook Fails
Symptom:Package Installation Fails
Symptom:-
Check if repository is configured:
-
Verify GPG key:
-
Manually run repository setup:
-
Check for errors in apt:
Permission Denied During Ansible Run
Symptom:Git Configuration Issues
Wrong Git Identity
Symptom: Commits show wrong name/email in work repositories. Cause: Conditional git config not matching repository path. Solution:-
Check current config:
-
Check conditionalInclude paths:
-
Verify work gitconfig:
-
Fix path matching:
Ensure paths match your actual directory structure:
SSH Issues
SSH Key Not Loaded
Symptom:-
Check key permissions:
-
Fix permissions:
-
Add key to agent:
-
Verify key is loaded:
-
Test connection:
AWS Configuration Issues
AWS Profile Not Found
Symptom:~/.aws/credentials.
Solution:
-
List existing profiles:
-
Check credentials file:
-
If empty, re-apply dotfiles:
-
Verify credentials were populated:
Environment Variables Not Set
Symptom:-
Use
aws_envfunction: -
Verify variables are set:
-
Expected output:
General Debugging
Enable Verbose Output
For chezmoi:Check Logs
Clean State and Retry
Getting Help
If you encounter issues not covered here:- Check chezmoi documentation: https://www.chezmoi.io/
- Check Bitwarden CLI docs: https://bitwarden.com/help/cli/
- Check age documentation: https://github.com/FiloSottile/age
- Review repository issues: https://github.com/yurgenlira/dotfiles/issues
Reporting Issues
When reporting issues, include:- Output of
chezmoi doctor - Operating system and version:
lsb_release -a - Error messages (full output)
- Steps to reproduce
- What you expected to happen