Troubleshooting
GitHub Actions Failed
SonarQube Scan Fail
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