Troubleshooting
This guide helps you resolve common issues when using Rhamaa CLI. If you don't find your issue here, please check our FAQ or create an issue on GitHub.
Installation Issues
Command Not Found
Problem: rhamaa: command not found after installation
Solutions:
-
Check Installation Path
-
Use Python Module
-
Install with User Flag
-
Check Virtual Environment
Permission Errors
Problem: Permission denied during installation
Solutions:
-
Use User Installation
-
Use Virtual Environment
-
Fix Permissions (Linux/Mac)
Python Version Issues
Problem: Rhamaa CLI requires Python 3.7+
Solutions:
-
Check Python Version
-
Use Specific Python Version
-
Update Python
- Install Python 3.7+ from python.org
- Use pyenv for version management
Project Creation Issues
Wagtail Not Found
Problem: wagtail: command not found when running rhamaa start
Solutions:
-
Install Wagtail
-
Check Wagtail Installation
-
Use Same Environment
Template Download Fails
Problem: Template download fails or times out
Solutions:
-
Check Internet Connection
-
Check GitHub Access
-
Use VPN/Proxy
- If behind corporate firewall
-
Configure proxy settings
-
Manual Download
Project Already Exists
Problem: Directory with project name already exists
Solutions:
-
Choose Different Name
-
Remove Existing Directory
-
Backup Existing
App Installation Issues
Not a Wagtail Project
Problem: "This doesn't appear to be a Wagtail project"
Solutions:
-
Check Current Directory
-
Navigate to Project Root
-
Verify Project Structure
App Not Found
Problem: "App 'appname' not found in registry"
Solutions:
-
Check Available Apps
-
Check Spelling
-
Get App Information
App Already Exists
Problem: "App already exists in apps/ directory"
Solutions:
-
Use Force Flag
-
Remove Existing App
-
Backup Existing
Download Failures
Problem: App download fails or is corrupted
Solutions:
-
Check Internet Connection
-
Clear Temporary Files
-
Retry Installation
-
Manual Installation
Runtime Issues
Import Errors
Problem: ImportError when running Django
Solutions:
-
Check INSTALLED_APPS
-
Run Migrations
-
Check App Structure
Migration Issues
Problem: Migration errors after installing apps
Solutions:
-
Check Dependencies
-
Reset Migrations
-
Fake Migrations
Static Files Issues
Problem: Static files not loading
Solutions:
-
Collect Static Files
-
Check Static Settings
-
Check App Static Directory
Network Issues
Corporate Firewalls
Problem: Downloads fail behind corporate firewall
Solutions:
-
Configure Proxy
-
Use pip Proxy
-
Download Manually
DNS Issues
Problem: Cannot resolve GitHub domains
Solutions:
-
Check DNS
-
Use Different DNS
-
Use IP Address
Performance Issues
Slow Downloads
Problem: App downloads are very slow
Solutions:
-
Check Connection Speed
-
Use Different Network
- Try different WiFi network
-
Use mobile hotspot
-
Download During Off-Peak
- Try downloading at different times
Memory Issues
Problem: Out of memory during installation
Solutions:
- Close Other Applications
-
Free up system memory
-
Increase Swap Space (Linux)
-
Use Smaller Apps
- Install apps one at a time
Environment Issues
Virtual Environment Problems
Problem: Apps not working in virtual environment
Solutions:
-
Activate Environment
-
Check Environment
-
Recreate Environment
Path Issues
Problem: Python can't find installed packages
Solutions:
-
Check Python Path
-
Install in Development Mode
-
Add to Python Path
Getting More Help
Debug Information
When reporting issues, include:
# System information
python --version
pip --version
rhamaa --version # or python -m rhamaa --version
# Environment information
pip list | grep -E "(rhamaa|wagtail|django)"
# Error messages
# For detailed steps, re-run with --force and capture full output
rhamaa startapp iot --prebuild mqtt --force
Log Files
Check for log files in:
/tmp/rhamaa.log(Linux/Mac)%TEMP%\rhamaa.log(Windows)- Current directory
Reporting Issues
When creating GitHub issues:
- Use Issue Template: Follow the provided template
- Include Debug Info: System and environment details
- Provide Steps: How to reproduce the issue
- Include Logs: Error messages and log files
- Be Specific: Exact commands and error messages
Community Support
- GitHub Issues: https://github.com/RhamaaCMS/RhamaaCLI/issues
- Discussions: https://github.com/RhamaaCMS/RhamaaCLI/discussions
- Documentation: Check this documentation thoroughly
Prevention Tips
Best Practices
- Use Virtual Environments: Always use virtual environments
- Keep Updated: Update Rhamaa CLI regularly
- Check Requirements: Verify system requirements
- Backup Projects: Backup before major changes
- Test First: Test in development environment
Regular Maintenance
# Update Rhamaa CLI
pip install --upgrade rhamaa
# Check for issues
rhamaa --help
rhamaa startapp --list
# Clean temporary files
rm -rf /tmp/rhamaa_*
If you continue to experience issues after trying these solutions, please create an issue on our GitHub repository with detailed information about your problem.