Troubleshooting Guide
Common issues and solutions for Mist deployments.
Quick Links
- Forgot Password Recovery - Reset your password using CLI
- Manual Update Guide - Update Mist manually if dashboard update fails
- Community Support - Get help from the community
Installation Issues
Installation Script Fails
Problem: Installation script exits with errors
Solutions:
- Check system requirements:
# Verify Docker is installed and running
docker --version
docker ps
# Check disk space (need at least 2GB)
df -h /opt
# Verify network connectivity
curl -s https://github.com- Run with proper permissions:
sudo bash install.sh- Check the installation log:
tail -50 /tmp/mist-install.logGo Installation Fails
Problem: Go download or installation fails
Solution:
# Manually install Go 1.22+
wget https://go.dev/dl/go1.22.11.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.22.11.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go versionDocker Permission Denied
Problem: Docker commands fail with permission errors
Solution:
# Add current user to docker group
sudo usermod -aG docker $USER
# Restart shell or run
newgrp docker
# Verify
docker psService Issues
Mist Service Won't Start
Problem: systemctl start mist fails
Diagnosis:
# Check service status
sudo systemctl status mist
# View recent logs
sudo journalctl -u mist -n 50 --no-pager
# Check if port 8080 is already in use
sudo lsof -i :8080Solutions:
- Port already in use:
# Stop the conflicting service
# Reload and restart
sudo systemctl daemon-reload
sudo systemctl restart mist- Database issues:
# Check database file permissions
ls -la /var/lib/mist/mist.db
# Fix permissions if needed
sudo chown root:root /var/lib/mist/mist.db
sudo chmod 644 /var/lib/mist/mist.db- Binary issues:
# Rebuild the binary
cd /opt/mist/server
sudo go build -o mist
sudo systemctl restart mistService Crashes After Update
Problem: Service won't start after running update
Solution:
# Check for stuck update logs
sudo journalctl -u mist -n 100 --no-pager | grep -i update
# If update is stuck, manually clear it using CLI
sudo mist-cli settings list
# View update logs via API or dashboard
curl http://localhost:8080/api/updates/history
# Force restart the service
sudo systemctl daemon-reload
sudo systemctl restart mistDeployment Issues
Build Fails
Problem: Application build fails during deployment
Diagnosis:
# Check build logs in the dashboard
# Or check Docker logs
docker logs <container-id>Common causes:
- Missing dependencies:
# Add missing dependencies to Dockerfile
RUN npm install
# or
RUN pip install -r requirements.txt- Wrong build context:
# Ensure Dockerfile is in repository root
# Or specify custom path in deployment settings- Build timeout:
- Increase timeout in deployment settings
- Optimize Dockerfile with multi-stage builds
- Use build cache effectively
Container Keeps Restarting
Problem: Deployed container restarts repeatedly
Diagnosis:
# View container logs
docker logs <container-name>
# Check container status
docker ps -a | grep <app-name>
# Inspect container
docker inspect <container-name>Common solutions:
- Application crashes on startup:
- Check environment variables are set correctly
- Verify database connection strings
- Check port configuration
- Health check failures:
- Ensure health check endpoint returns 200
- Increase health check timeout
- Verify health check path is correct
- Missing environment variables:
# Check via Mist dashboard or API
# Add missing variables in Environment Variables sectionPort Already in Use
Problem: Deployment fails with "port already allocated" error
Solution:
# Find conflicting container
docker ps | grep <port>
# Stop conflicting container
docker stop <container-id>
# Or change your app's port in environment variablesDomain & SSL Issues
Domain Not Resolving
Problem: Custom domain doesn't point to your application
Checklist:
- DNS Configuration:
# Verify DNS records
dig yourdomain.com
nslookup yourdomain.com
# Should point to your server IP
# A record: yourdomain.com -> your-server-ip- Wildcard domain setup:
# Verify wildcard domain setting
mist-cli settings get --key wildcard_domain
# Should be set to your domain
mist-cli settings set --key wildcard_domain --value apps.example.com- Traefik configuration:
# Check Traefik is running
docker ps | grep traefik
# Restart Traefik if needed
cd /opt/mist
docker compose -f traefik-compose.yml restartSSL Certificate Issues
Problem: SSL certificate not generating or invalid
Diagnosis:
# Check Traefik logs
docker logs traefik
# Verify domain is accessible
curl -v https://yourdomain.comSolutions:
- Let's Encrypt rate limit:
- Wait 1 hour (for failures) or 1 week (for cert limit)
- Use staging environment for testing
- DNS not propagated:
# Wait for DNS propagation (up to 48 hours)
# Check propagation status
dig +trace yourdomain.com- Firewall blocking ports:
# Ensure ports 80 and 443 are open
sudo ufw status
sudo ufw allow 80/tcp
sudo ufw allow 443/tcpDatabase Issues
Cannot Connect to Database
Problem: Application can't connect to database service
Solutions:
- Verify database is running:
docker ps | grep postgres
# or
docker ps | grep mysql- Check connection string:
- Ensure environment variables are correct
- Format:
postgresql://user:password@host:5432/dbname - Host should be the container name
- Network issues:
# Verify containers are on same network
docker network inspect traefik-netDatabase Data Lost After Restart
Problem: Data disappears when container restarts
Solution:
- Ensure volumes are properly configured
- Check volume mounts:
docker inspect <container-name> | grep -A 10 MountsGitHub Integration Issues
GitHub App Not Connecting
Problem: Cannot connect GitHub repositories
Diagnosis:
- Verify GitHub App is installed on your organization/account
- Check webhook delivery in GitHub App settings
- Ensure webhook URL is accessible from internet
Solution:
# Verify GitHub App settings in Mist dashboard
# Go to Settings -> Git
# Test webhook:
curl -X POST https://your-mist-domain.com/api/github/webhook \
-H "Content-Type: application/json" \
-d '{"action": "ping"}'Webhook Delivery Fails
Problem: GitHub webhooks not reaching Mist
Solutions:
- Firewall blocking webhooks:
# Ensure Mist is accessible from internet
# Check if your server has public IP
curl ifconfig.me- Wrong webhook URL:
- Update in GitHub App settings
- Format:
https://your-mist-domain.com/api/github/webhook
Performance Issues
Slow Dashboard Loading
Problem: Dashboard takes long to load
Solutions:
- Check system resources:
# View CPU and memory usage
htop
# Check disk space
df -h
# View container resource usage
docker stats- Too many logs:
# Clean up old logs
sudo find /var/lib/mist/logs -type f -mtime +7 -delete- Database optimization:
# Vacuum SQLite database
sqlite3 /var/lib/mist/mist.db "VACUUM;"High CPU Usage
Problem: Server CPU constantly high
Diagnosis:
# Check which process is using CPU
top -bn1 | head -20
# Check Docker container CPU
docker stats --no-streamSolutions:
- Too many containers:
- Enable auto cleanup in settings
- Manually clean stopped containers:
docker container prune -f- Container resource limits:
- Set CPU/memory limits in deployment settings
Update Issues
Manual Update Available
If you're experiencing issues with dashboard updates, you can update manually using the install script.
Update Stuck in Progress
Problem: Update shows "in progress" but nothing happens
Solution:
# Check if update process is actually running
ps aux | grep install.sh
# If not running, the startup check should auto-resolve it
# Force restart to trigger the check
sudo systemctl restart mist
# Alternatively, manually clear stuck update via API
# (requires owner access)
curl -X POST http://localhost:8080/api/updates/clear?id=<update_log_id> \
--cookie "session_token=your_token"Or perform a manual update:
# See full manual update guide
curl -fsSL https://trymist.cloud/install.sh | sudo bashUpdate Failed
Problem: Update failed and service won't start
Solution:
# Check update logs
sudo journalctl -u mist -n 100 --no-pager
# Revert to previous version if needed
cd /opt/mist
git log --oneline -10
sudo git reset --hard <previous-commit>
cd server
sudo go build -o mist
sudo systemctl restart mistOr perform a manual update with automatic recovery:
curl -fsSL https://trymist.cloud/install.sh | sudo bashCLI Issues
CLI Command Not Found
Problem: mist-cli command not found
Solution:
# Check if CLI is installed
ls -la /usr/local/bin/mist-cli
# If not found, rebuild and install
cd /opt/mist/cli
sudo go build -o mist-cli
sudo cp mist-cli /usr/local/bin/
sudo chmod +x /usr/local/bin/mist-cliCLI Database Access Denied
Problem: CLI can't access database
Solution:
# Run with sudo
sudo mist-cli user list
# Or fix database permissions
sudo chown root:root /var/lib/mist/mist.db
sudo chmod 644 /var/lib/mist/mist.dbNetwork Issues
Cannot Access Dashboard
Problem: Cannot reach Mist dashboard in browser
Checklist:
- Service running:
sudo systemctl status mist
curl http://localhost:8080/api/health- Firewall:
# Check firewall rules
sudo ufw status
# Allow port 8080
sudo ufw allow 8080/tcp- Port forwarding:
- If behind NAT, ensure port forwarding is configured
- Check router/cloud provider settings
Applications Not Accessible
Problem: Deployed apps return 404 or 502 errors
Diagnosis:
# Check Traefik logs
docker logs traefik
# Verify Traefik config
cat /var/lib/mist/traefik/dynamic.yml
# Check app container is running
docker ps | grep <app-name>Solutions:
- Traefik not running:
cd /opt/mist
docker compose -f traefik-compose.yml up -d- Wrong domain configuration:
- Verify domain is correctly set in Mist dashboard
- Check DNS points to your server
- Container not in traefik-net:
docker network connect traefik-net <container-name>Getting More Help
If you're still experiencing issues:
- Check logs:
# Service logs
sudo journalctl -u mist -n 100 --no-pager
# Container logs
docker logs <container-name>
# Traefik logs
docker logs traefik- Enable debug logging:
# Edit service file
sudo nano /etc/systemd/system/mist.service
# Add debug environment variable
Environment=LOG_LEVEL=debug
# Restart
sudo systemctl daemon-reload
sudo systemctl restart mist- Community support:
- GitHub Issues: github.com/trymist/mist/issues
- Discord: discord.gg/kxK8XHR6
- Gather diagnostic information:
# System info
uname -a
docker version
docker compose version
# Mist version
curl http://localhost:8080/api/updates/version
# Resource usage
free -h
df -h
docker stats --no-stream