Troubleshooting¶
Solutions to common issues with the Developer Environment Framework.
Vagrant Issues¶
VM Won't Start¶
Symptoms: vagrant up fails or hangs
Solutions:
-
Check VirtualBox is running:
-
Try with debug output:
-
Check for port conflicts:
-
Verify VT-x/AMD-V is enabled in BIOS
-
Destroy and recreate:
Vagrant Stuck on "Waiting for machine to boot"¶
Solutions:
-
Increase boot timeout in Vagrantfile:
-
Check VM console in VirtualBox GUI for errors
-
Try SSH manually:
"The guest machine entered an invalid state"¶
Solutions:
-
Check VirtualBox logs:
-
Try different provider:
-
Reinstall VirtualBox guest additions:
Shared Folder Errors¶
Symptoms: /vagrant not accessible or sync errors
Solutions:
-
Install vbguest plugin:
-
Manually mount:
-
Use alternative sync method in Vagrantfile:
Ansible Issues¶
Provisioning Fails¶
Symptoms: vagrant provision or vagrant up fails during Ansible run
Solutions:
-
Check Ansible syntax:
-
Run with verbose output:
-
Test playbook directly:
-
Check Python version on guest:
"Module not found" Errors¶
Solutions:
-
Install required Ansible collections:
-
Use fully qualified collection names:
Variables Not Working¶
Solutions:
-
Check variable precedence:
-
Verify group_vars path structure
-
Use debug module:
Network Issues¶
Can't Access Forwarded Ports¶
Solutions:
-
Check port forwarding:
-
Verify service is listening:
-
Check firewall rules:
-
Bind service to 0.0.0.0 instead of localhost
SSH Connection Refused¶
Solutions:
-
Check SSH service:
-
Reset SSH config:
-
Try with password authentication:
DNS Resolution Fails¶
Solutions:
-
Check resolv.conf:
-
Set explicit DNS in Vagrantfile:
Application Issues¶
Docker Not Working¶
Solutions:
-
Check Docker service:
-
Add user to docker group:
-
Verify Docker socket permissions:
Kubernetes Tools Not Working¶
Solutions:
-
Check kubectl configuration:
-
Verify k3s installation:
-
Set KUBECONFIG:
Python Packages Won't Install¶
Solutions:
-
Upgrade pip:
-
Use virtual environment:
-
Check for conflicting packages:
Performance Issues¶
VM Running Slowly¶
Solutions:
-
Increase RAM/CPU in Vagrantfile:
-
Disable GUI:
-
Use paravirtualization:
-
Enable VT-x/AMD-V in BIOS
Disk Space Issues¶
Solutions:
-
Check disk usage:
-
Clean Docker:
-
Increase disk size in Vagrantfile:
Slow File Sync¶
Solutions:
-
Use rsync instead of vboxsf:
-
Exclude unnecessary files:
-
Use NFS (Unix/macOS only):
Build Issues¶
Base Image Build Fails¶
Solutions:
-
Verify ISO download:
-
Check disk space:
-
Increase timeout values
-
Try with different mirror
Organization Spin Build Fails¶
Solutions:
-
Ensure base image exists:
-
Re-add base box:
-
Check app configurations in apps.yml
Testing Issues¶
Tests Failing¶
Solutions:
-
Run tests individually:
-
Check test dependencies:
-
Review test output for specific errors
Ansible Syntax Tests Fail¶
Solutions:
-
Lint playbooks:
-
Check YAML syntax:
Documentation Issues¶
MkDocs Won't Build¶
Solutions:
-
Install dependencies:
-
Check for syntax errors:
-
Use virtual environment:
MkDocs Serve Not Working¶
Solutions:
-
Use different port:
-
Check if port is in use:
Getting More Help¶
Diagnostic Information¶
When reporting issues, include:
# System information
uname -a
vagrant --version
ansible --version
VBoxManage --version
# VM status
vagrant status
vagrant global-status
# Recent logs
vagrant up --debug > vagrant-debug.log 2>&1
Where to Get Help¶
Before Reporting Issues¶
- Check this troubleshooting guide
- Search existing issues
- Try with latest version
- Test with minimal configuration
- Gather diagnostic information