Troubleshooting guide
Resolve common issues you might encounter when self-hosting Screenshothis. This guide provides step-by-step solutions, diagnostic commands, and prevention strategies to keep your instance running smoothly.Quick diagnostics
Start here to quickly assess your system’s health and identify issues:Check application health
Verify readiness
Review recent logs
Common startup issues
Application won’t start
When your Screenshothis instance fails to start or exits immediately:Missing environment variables
Missing environment variables
- Ensure all required variables are set in your
.envfile - Key required variables include:
DATABASE_URLBETTER_AUTH_SECRET- S3 configuration (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, etc.) VITE_SERVER_URL(for frontend)
Port already in use
Port already in use
Error: listen EADDRINUSE: address already in use :::3000Diagnose and fix:Docker build failures
Docker build failures
- Ensure sufficient disk space (at least 2GB free)
- Check internet connectivity for package downloads
- Verify Node.js version compatibility
Database connection problems
PostgreSQL connectivity issues
When you can’t connect to your PostgreSQL database:Connection refused errors
Connection refused errors
Connection refused, Database does not exist, or timeout errorsDiagnose the issue:Verify PostgreSQL is running
Verify database exists
Test connection
Migration and schema errors
Migration and schema errors
Redis connectivity issues
Cache and session problems
When Redis connections fail or caching doesn’t work:Redis connection failed
Redis connection failed
Redis connection to localhost:6379 failed or session issuesDiagnose and fix:Authentication errors
Authentication errors
NOAUTH Authentication required or permission deniedFix authentication:Storage and S3 issues
Screenshot upload failures
When screenshots can’t be saved to storage:S3 access denied errors
S3 access denied errors
AccessDenied, Forbidden, or upload failure errorsDiagnose the issue:Verify credentials
Check bucket permissions
Test upload
MinIO local development issues
MinIO local development issues
Check MinIO status
Access MinIO console
- Open http://localhost:9001 in your browser
- Login with:
- Username:
screenshothis-access-key - Password:
screenshothis-secret-key
- Username:
- Create the bucket
screenshothis-bucketif it doesn’t exist
Reset MinIO if needed
Screenshot generation problems
Capture failures and timeouts
When screenshots fail to generate or take too long:Screenshot timeouts
Screenshot timeouts
Screenshot generation timed out or requests timing outDiagnose performance:- CPU: At least 2 cores for production
- RAM: Minimum 2GB, recommended 4GB+
- Disk: At least 5GB free space
Memory issues and crashes
Memory issues and crashes
- Docker Compose
- Docker Run
- Kubernetes
Chromium browser issues
Chromium browser issues
Check security settings
Verify dependencies
Configure Chrome arguments
Performance optimization
System resource management
When your instance is slow or consuming too many resources:High CPU and memory usage
High CPU and memory usage
- Limit Concurrency
- Optimize Screenshots
- Memory Management
Slow screenshot generation
Slow screenshot generation
Network and connectivity
External service connectivity
When you can’t reach databases, S3, or other external services:External service connectivity
External service connectivity
Check firewall rules
Verify DNS resolution
Test with curl
Firewall and security group issues
Firewall and security group issues
- UFW (Ubuntu)
- iptables
- AWS Security Groups
Monitoring and diagnostics
System health monitoring
Set up monitoring to prevent issues before they occur:Enable health monitoring
Set up automated monitoring
Monitor application metrics
Getting help and support
When you need additional assistance:GitHub Issues
Community Discussions
Documentation
Configuration Reference
Collecting diagnostic information
When reporting issues, include this diagnostic information:System information
Application logs
Configuration (redacted)
Container status
Prevention and maintenance
Regular maintenance tasks
Keep your Screenshothis instance healthy with regular maintenance:Weekly maintenance
Weekly maintenance
Monthly maintenance
Monthly maintenance
Monitoring alerts
Monitoring alerts
- Disk space > 85% full
- Memory usage > 90%
- Health check failures
- SSL certificate expiry (30 days before)
- High error rates in logs
- Database connection failures