Common Errors and Solutions
This guide covers the most common errors encountered during Chatwoot development setup and their solutions. Use this as a quick reference when troubleshooting issues.Installation and Setup Errors
Ruby and Bundler Issues
Bundle install fails with native extension errors
Bundle install fails with native extension errors
- macOS
- Ubuntu/Debian
- CentOS/RHEL
Ruby version mismatch
Ruby version mismatch
- rbenv
- RVM
- asdf
Bundler version conflicts
Bundler version conflicts
Node.js and Package Manager Issues
Node.js version incompatibility
Node.js version incompatibility
- nvm
- n
- asdf
pnpm installation issues
pnpm installation issues
Package installation failures
Package installation failures
Database Errors
PostgreSQL Connection Issues
Database connection refused
Database connection refused
- macOS
- Ubuntu/Debian
- Docker
Database does not exist
Database does not exist
Migration errors
Migration errors
Redis Connection Issues
Redis connection refused
Redis connection refused
- macOS
- Ubuntu/Debian
- Docker
Application Runtime Errors
Rails Server Issues
Port already in use
Port already in use
Secret key base missing
Secret key base missing
Webpacker compilation errors
Webpacker compilation errors
Sidekiq Worker Issues
Sidekiq not processing jobs
Sidekiq not processing jobs
Redis memory issues
Redis memory issues
Testing Errors
RSpec Test Failures
Database not prepared for testing
Database not prepared for testing
Factory Bot errors
Factory Bot errors
Capybara/Selenium errors
Capybara/Selenium errors
Development Environment Issues
IDE and Editor Problems
VS Code Ruby extension not working
VS Code Ruby extension not working
Solargraph not working
Solargraph not working
Git and Version Control Issues
Pre-commit hooks failing
Pre-commit hooks failing
Large file errors
Large file errors
Performance Issues
Slow Application Startup
Rails server takes too long to start
Rails server takes too long to start
Slow test suite
Slow test suite
Email and Communication Issues
Email Delivery Problems
Emails not being sent in development
Emails not being sent in development
- MailHog
- Letter Opener
- Gmail SMTP
WebSocket Connection Issues
ActionCable not working
ActionCable not working
Debugging and Logging Issues
Log File Problems
Log files too large or not rotating
Log files too large or not rotating
Debugging Tool Issues
Pry or byebug not stopping execution
Pry or byebug not stopping execution
Quick Diagnostic Commands
System Health Check
Environment Validation
Getting Additional Help
If you’re still experiencing issues after trying these solutions:- Search GitHub Issues: Check if others have reported similar problems
- Check Logs: Look at
log/development.log
for detailed error messages - Discord Community: Join the Chatwoot Discord for real-time help
- Documentation: Review the official documentation
- Create an Issue: If it’s a bug, create a detailed GitHub issue
Creating a Good Bug Report
When reporting issues, include:This guide covers the most common development issues. For production deployment issues, see the Self-hosted documentation.