Skip to main content

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

Error Message:
Cause: Missing PostgreSQL development headers or incorrect pg_config path.Solutions:
Error Message:
Cause: Wrong Ruby version installed.Solutions:
Error Message:
Cause: Incompatible Bundler version.Solution:

Node.js and Package Manager Issues

Error Message:
Cause: Wrong Node.js version.Solutions:
Error Message:
Cause: pnpm not installed.Solutions:
Error Message:
Cause: Peer dependency conflicts or corrupted cache.Solutions:

Database Errors

PostgreSQL Connection Issues

Error Message:
Cause: PostgreSQL service not running or incorrect connection parameters.Solutions:
Error Message:
Cause: Database not created.Solution:
Error Message:
Cause: Database schema is not up to date.Solutions:

Redis Connection Issues

Error Message:
Cause: Redis service not running.Solutions:

Application Runtime Errors

Rails Server Issues

Error Message:
Cause: Another process is using port 3000.Solutions:
Error Message:
Cause: SECRET_KEY_BASE not set in environment.Solution:
Error Message:
Cause: Webpack assets not compiled or compilation failed.Solutions:

Sidekiq Worker Issues

Error Message:
Cause: Sidekiq worker not running.Solutions:
Error Message:
Cause: Redis running out of memory.Solutions:

Testing Errors

RSpec Test Failures

Error Message:
Cause: Test database not set up properly.Solution:
Error Message:
Cause: Factory definitions loaded multiple times.Solution:
Error Message:
Cause: ChromeDriver not installed or incompatible version.Solutions:

Development Environment Issues

IDE and Editor Problems

Error: Ruby IntelliSense not working, no syntax highlighting.Solutions:
Error: Ruby documentation and autocomplete not working.Solutions:

Git and Version Control Issues

Error: Git commit rejected due to linting errors.Solutions:
Error: Git LFS or large file warnings.Solutions:

Performance Issues

Slow Application Startup

Cause: Large codebase, slow database, or memory issues.Solutions:
Cause: Database setup, factory creation, or inefficient tests.Solutions:

Email and Communication Issues

Email Delivery Problems

Cause: SMTP configuration or email service issues.Solutions:

WebSocket Connection Issues

Error: Real-time features not working, WebSocket connection failed.Solutions:

Debugging and Logging Issues

Log File Problems

Cause: Excessive logging in development.Solutions:

Debugging Tool Issues

Cause: Debugger not properly configured or running in wrong context.Solutions:

Quick Diagnostic Commands

System Health Check

Environment Validation

Getting Additional Help

If you’re still experiencing issues after trying these solutions:
  1. Search GitHub Issues: Check if others have reported similar problems
  2. Check Logs: Look at log/development.log for detailed error messages
  3. Discord Community: Join the Chatwoot Discord for real-time help
  4. Documentation: Review the official documentation
  5. 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.