Common Issues

This guide helps you resolve common issues you might encounter while using Azu CLI. If you can't find a solution here, please check the specific troubleshooting sections or reach out to the community.

Quick Diagnosis

Check Your Environment

# Check Crystal version
crystal --version

# Check Azu CLI version
azu version

# Check if you're in an Azu project
ls -la | grep shard.yml

Common Error Patterns

Error Pattern
Likely Cause
Solution

command not found: azu

Azu CLI not installed

Error: Database connection failed

Database not running/configured

Error: Template not found

Missing template files

Error: Port already in use

Another process using the port

Error: Compilation failed

Crystal compilation errors

Getting Help

1. Check the Logs

Enable verbose logging to get more detailed error information:

2. Search Existing Issues

Before reporting a new issue, search existing issues:

3. Create a Minimal Reproduction

When reporting an issue, create a minimal reproduction:

4. Include System Information

When reporting issues, include:

Common Solutions

Reset Your Environment

If you're experiencing strange behavior, try resetting your environment:

Update Dependencies

Keep your dependencies up to date:

Check File Permissions

Ensure proper file permissions:

Debugging Techniques

1. Enable Debug Mode

2. Check Configuration

3. Test Individual Components

4. Use Crystal's Debug Tools

Performance Issues

Slow Startup

If Azu CLI is starting slowly:

Slow Generation

If code generation is slow:

Memory Issues

If you're experiencing memory issues:

Network Issues

Proxy Configuration

If you're behind a proxy:

SSL/TLS Issues

If you're experiencing SSL/TLS issues:

Platform-Specific Issues

macOS

Common macOS issues:

Linux

Common Linux issues:

Windows

Common Windows issues:

Database Issues

Connection Problems

Migration Issues

Development Server Issues

Port Conflicts

Hot Reload Issues

Build Issues

Compilation Errors

Dependency Issues

Template Issues

Missing Templates

Template Rendering Errors

Configuration Issues

Invalid Configuration

Environment Variables

Community Support

Discord Community

Join the Azu Toolkit Discord for real-time help:

  • Active community of developers

  • Quick answers to common questions

  • Share your projects and get feedback

GitHub Issues

For bug reports and feature requests:

  • Search existing issues first

  • Provide detailed reproduction steps

  • Include system information

Documentation

Contributing to Troubleshooting

If you find a solution that's not documented:

  1. Update this guide with your solution

  2. Share with the community on Discord

  3. Submit a PR to improve the documentation

  4. Help others with similar issues

Last updated