Skip to content

Troubleshooting


GitHub Actions Failed

SonarQube Scan Fail

Check: sonarqube.enfection.com → Project → Issues
Fix: Code issues resolve කරලා re-push

Deploy Fail - Permission Denied

# Staging server
sudo chmod 755 /home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes
sudo chown -R ubuntu:ubuntu /home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes

Deploy Fail - SSH Connection

# Test SSH manually
ssh -i ~/.ssh/deploy_key ubuntu@13.234.20.114

# Check authorized_keys
cat ~/.ssh/authorized_keys

GitHub Secret ගෙ STAGING_SSH_KEY correct ද verify කරන්න.


Site Not Loading

# Nginx check
sudo nginx -t
sudo systemctl status nginx

# CloudPanel logs
tail -f /home/enfection-[client]/logs/[client].development.enfection.com/error.log

SonarQube Down

ssh ubuntu@13.232.46.24
cd /opt/sonarqube

# Check memory
free -h

# Restart
docker-compose restart
docker logs sonarqube -f

SSL Expired

# Manual renew
sudo certbot renew --force-renewal
sudo systemctl reload nginx

Theme Not Updating on Staging

# Check theme files deployed
ls /home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes/[client]-theme/

# WordPress cache clear
# WP Admin → Settings → (cache plugin) → Clear cache