Setup Troubleshooting

Having trouble with the examples? This guide covers common issues and their solutions.

🚨 Quick Diagnostics

Run this diagnostic script to identify common problems:

# Save as check-environment.sh
#!/bin/bash

echo "πŸ” Tasker Environment Diagnostics"
echo "================================="

# Check Ruby version
echo -n "Ruby version: "
ruby -v 2>/dev/null || echo "❌ Ruby not found"

# Check Rails version
echo -n "Rails version: "
rails -v 2>/dev/null || echo "❌ Rails not found"

# Check PostgreSQL
echo -n "PostgreSQL: "
psql --version 2>/dev/null || echo "❌ PostgreSQL not found"

# Check Redis
echo -n "Redis: "
redis-server --version 2>/dev/null || echo "❌ Redis not found"

# Check Git
echo -n "Git: "
git --version 2>/dev/null || echo "❌ Git not found"

# Check internet connectivity
echo -n "GitHub connectivity: "
curl -s --max-time 5 https://github.com >/dev/null && echo "βœ… OK" || echo "❌ Failed"

echo ""
echo "If any items show ❌, install them before proceeding."

πŸ› Common Issues

Installation Problems

"Ruby version not supported"

Error: Ruby 3.2+ is required. Found: 3.0.x

Solution:

"Rails not found"

Error: rails: command not found

Solution:

"PostgreSQL connection failed"

Error: could not connect to server: Connection refused

Solution:

"Redis connection failed"

Error: Error connecting to Redis on localhost:6379

Solution:

Download Problems

"curl failed to download script"

Error: curl: (7) Failed to connect to raw.githubusercontent.com

Solution:

"Permission denied"

Error: Permission denied (publickey)

Solution:

Application Setup Problems

"Bundle install failed"

Error: An error occurred while installing pg (1.x.x)

Solution:

"Database migration failed"

Error: PG::ConnectionBad: could not connect to server

Solution:

"Sidekiq won't start"

Error: Redis::CannotConnectError

Solution:

Runtime Problems

"Task handler not found"

Error: Tasker::ProceduralError: No registered class for order_processing

Solution:

"Step failures not retrying"

Error: Steps fail immediately instead of retrying

Solution:

"No route matches"

Error: ActionController::RoutingError: No route matches [POST] "/checkout"

Solution:

Testing Problems

"Curl commands fail"

Error: curl: (7) Failed to connect to localhost port 3000

Solution:

"Payment simulator returns errors"

Error: All payments fail with "simulator not found"

Solution:

πŸ”§ Environment-Specific Issues

macOS

"Command not found after installation"

Solution:

"Homebrew permissions"

Solution:

Linux (Ubuntu/Debian)

"Permission denied for gem install"

Solution:

"Build tools missing"

Solution:

Windows (WSL)

"WSL networking issues"

Solution:

πŸ“ž Getting Additional Help

Before Asking for Help

  1. Run the diagnostic script above

  2. Check the error logs: tail -f log/development.log

  3. Try a clean environment: Fresh terminal, restart services

  4. Search existing issues: Someone might have solved it already

Where to Get Help

  1. GitHub Issues: Create a new issue

    • Include diagnostic output

    • Share error messages

    • Describe what you were trying to do

  2. GitHub Discussions: Ask the community

    • General questions about workflows

    • Best practices

    • Use case discussions

  3. Documentation: Check the official Tasker docs

Creating Good Bug Reports

Include this information:

πŸš€ Performance Troubleshooting

Slow Workflow Execution

Symptoms: Tasks take much longer than expected

Diagnosis:

Solutions:

  • Add database indexes for large task volumes

  • Tune Redis memory settings

  • Use connection pooling for external APIs

Memory Issues

Symptoms: Application consuming too much memory

Diagnosis:

Solutions:

  • Reduce Sidekiq concurrency

  • Implement result cleanup for old tasks

  • Use streaming for large data processing


Most issues have simple solutions. When in doubt, start fresh with a clean environment and follow the diagnostic steps.

Last updated