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
Run the diagnostic script above
Check the error logs:
tail -f log/development.logTry a clean environment: Fresh terminal, restart services
Search existing issues: Someone might have solved it already
Where to Get Help
GitHub Issues: Create a new issue
Include diagnostic output
Share error messages
Describe what you were trying to do
GitHub Discussions: Ask the community
General questions about workflows
Best practices
Use case discussions
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