Skip to content

KrakenHashes Troubleshooting Guide

This guide helps you resolve common issues when using KrakenHashes. If your issue isn't covered here, please contact support with relevant error messages and logs.

Table of Contents

  1. Installation Issues
  2. Login and Authentication Problems
  3. Job Creation and Execution Issues
  4. Agent Connection Problems
  5. Performance Issues
  6. File Upload Errors
  7. Results Not Appearing
  8. How to Check Logs and Get Help

Installation Issues

Docker Compose Fails to Start

Error: docker-compose: command not found - Solution: Install Docker Compose following the official documentation for your OS

Error: Cannot connect to the Docker daemon - Solution: - Ensure Docker is running: sudo systemctl start docker - Add your user to the docker group: sudo usermod -aG docker $USER - Log out and back in for group changes to take effect

Error: Port 8080 is already in use - Solution: - Check what's using the port: sudo lsof -i :8080 - Stop the conflicting service or change KrakenHashes ports in docker-compose.yml

Database Migration Failures

Error: pq: password authentication failed for user - Solution: - Check your DATABASE_URL environment variable - Ensure PostgreSQL credentials match in docker-compose.yml - Try resetting with: docker-compose down -v then docker-compose up -d

Error: migration failed: table already exists - Solution: - Reset migrations: docker-compose exec backend make migrate-down - Clean database: docker-compose down -v - Restart: docker-compose up -d

SSL/TLS Certificate Issues

Error: NET::ERR_CERT_AUTHORITY_INVALID - Solution: - For self-signed certificates, follow the installation guide in docs/SSL_TLS_SETUP.md - Import the CA certificate to your browser/OS trust store - For production, use proper certificates with KH_TLS_MODE=provided

Login and Authentication Problems

Cannot Log In

Error: Invalid credentials - Solution: - Verify username and password are correct - Check if account is active (admin can verify) - Try resetting password through admin

Error: Token expired - Solution: - Clear browser cookies/localStorage - Log in again - If persistent, check system time synchronization

Multi-Factor Authentication Issues

Error: Invalid TOTP code - Solution: - Ensure device time is synchronized - Verify you're using the correct authenticator app - Try backup codes if available - Contact admin to reset MFA

Error: Email verification code not received - Solution: - Check spam/junk folder - Verify email address is correct in profile - Check backend logs for SMTP errors - Contact admin to check email configuration

Session Timeout

Issue: Logged out unexpectedly - Solution: - Check JWT token expiration settings - Enable "Remember Me" during login - Check for network connectivity issues

Job Creation and Execution Issues

Cannot Create Job

Error: No hashlist selected - Solution: - Upload a hashlist first via Hashlists page - Ensure hashlist contains valid hashes - Check hashlist format matches selected hash type

Error: No available agents - Solution: - Verify at least one agent is connected - Check agent status on Agents page - Ensure agents have required capabilities

Error: Invalid workflow configuration - Solution: - Verify all required fields are filled - Check attack mode parameters are valid - Ensure selected wordlists/rules exist

Job Stuck in Pending

Issue: Job never starts - Causes: - No agents available with required capabilities - Agent offline or disconnected - Resource constraints on agent - Solution: - Check agent status and capabilities - Verify agent GPU requirements match job - Check agent logs for errors

Job Failed Immediately

Error: Hashcat execution failed - Solution: - Check job logs for specific hashcat errors - Verify hash format matches selected type - Ensure wordlists/rules are accessible - Check agent has sufficient disk space

Agent Connection Problems

Agent Won't Connect

Error: websocket: bad handshake - Solution: - Verify backend URL in agent config - Check firewall allows WebSocket connections - Ensure SSL certificates are trusted by agent

Error: Invalid API key - Solution: - Regenerate API key from agent settings - Update agent configuration with new key - Restart agent after configuration change

Error: Claim code invalid or expired - Solution: - Generate new claim code from UI - Use claim code within 15 minutes - Ensure claim code hasn't been used already

Agent Keeps Disconnecting

Issue: Frequent reconnections - Causes: - Network instability - Firewall/proxy timeout settings - Backend overload - Solution: - Check network connectivity - Increase WebSocket timeout settings - Monitor backend resource usage

Agent Not Detecting GPUs

Error: No GPUs detected - Solution: - Verify GPU drivers are installed: - NVIDIA: nvidia-smi - AMD: rocm-smi - Intel: Check oneAPI installation - Run agent with sudo if needed - Check GPU is not in exclusive mode

Performance Issues

Slow Hash Cracking

Issue: Lower than expected hash rates - Causes: - Thermal throttling - Incorrect workload tuning - CPU bottleneck - Solution: - Monitor GPU temperature - Adjust workload profile in job settings - Ensure adequate cooling - Check hashcat benchmark mode

High Memory Usage

Issue: System running out of memory - Solution: - Reduce wordlist buffer size - Split large hashlists - Use rule-based attacks instead of large wordlists - Monitor with docker stats

Database Performance

Issue: Slow query responses - Solution: - Check database indexes are created - Monitor with docker-compose logs postgres - Consider increasing PostgreSQL resources - Clean up old completed jobs

File Upload Errors

Upload Fails

Error: Request entity too large - Solution: - Check file size limits in nginx config - Split large files into smaller chunks - Use compression for text files

Error: Invalid file format - Solution: - Verify file format matches expected type: - Hashlists: One hash per line - Wordlists: Plain text, one word per line - Rules: Hashcat rule format - Remove any special characters or BOM

Error: Permission denied - Solution: - Check backend data directory permissions - Ensure Docker volumes are writable - Verify disk space available

Files Not Appearing

Issue: Uploaded files not visible - Solution: - Refresh the page - Check upload completed successfully - Verify file processing logs - Check file storage directory

Results Not Appearing

Cracked Passwords Not Showing

Issue: Job shows progress but no results - Causes: - Results not yet synced - Database write issues - Display filtering - Solution: - Wait for sync interval (usually 30 seconds) - Check job logs for errors - Verify database connectivity - Check results filter settings

Export Not Working

Error: Export failed - Solution: - Check browser download permissions - Try different export format - Verify results exist to export - Check browser console for errors

Statistics Incorrect

Issue: Progress/statistics don't match - Solution: - Force refresh the page - Check for duplicate hashes - Verify job status is updated - Review calculation logic in logs

How to Check Logs and Get Help

Accessing Logs

Docker Logs

# View all logs
docker-compose logs

# View specific service logs
docker-compose logs -f backend    # Backend logs
docker-compose logs -f postgres   # Database logs
docker-compose logs -f app        # Frontend/nginx logs

# Save logs to file
docker-compose logs backend > backend.log

Log File Locations

  • Backend: /home/zerkereod/Programming/passwordCracking/kh-backend/logs/krakenhashes/backend/
  • PostgreSQL: /home/zerkereod/Programming/passwordCracking/kh-backend/logs/krakenhashes/postgres/
  • Nginx: /home/zerkereod/Programming/passwordCracking/kh-backend/logs/krakenhashes/nginx/

Agent Logs

# On agent machine
tail -f /var/log/krakenhashes-agent.log

# Or check systemd
journalctl -u krakenhashes-agent -f

What to Include When Reporting Issues

  1. Error Messages
  2. Exact error text
  3. Screenshot if UI issue
  4. Time when error occurred

  5. Environment Information

  6. KrakenHashes version
  7. Browser type and version
  8. Operating system
  9. Docker version

  10. Steps to Reproduce

  11. What you were trying to do
  12. Exact steps taken
  13. Expected vs actual behavior

  14. Relevant Logs

  15. Error entries from logs
  16. Stack traces if available
  17. Related warning messages

Getting Help

  1. Check Documentation
  2. Review relevant guides in /docs
  3. Check CLAUDE.md for development info
  4. Review API documentation

  5. Search Known Issues

  6. Check GitHub issues
  7. Review release notes
  8. Search error messages

  9. Contact Support

  10. Email: support@krakenhashes.com
  11. Include issue report with details above
  12. Provide job IDs if relevant

Debug Mode

Enable debug logging for more details:

# Backend
export LOG_LEVEL=debug

# Agent
krakenhashes-agent --debug

# Frontend
# Open browser developer console

Common Quick Fixes

  1. Restart Services

    docker-compose restart backend
    

  2. Clear Browser Cache

  3. Hard refresh: Ctrl+Shift+R (Cmd+Shift+R on Mac)
  4. Clear site data in browser settings

  5. Reset Database Connection

    docker-compose restart postgres backend
    

  6. Verify Connectivity

    # Test backend
    curl -k https://localhost:8080/api/v1/health
    
    # Test database
    docker-compose exec postgres pg_isready
    

Prevention Tips

  1. Regular Maintenance
  2. Monitor disk space
  3. Clean old job data
  4. Update regularly
  5. Backup database

  6. Performance Monitoring

  7. Use docker stats
  8. Monitor agent resources
  9. Set up alerting

  10. Security Best Practices

  11. Keep software updated
  12. Use strong passwords
  13. Enable MFA
  14. Regular security audits