Deployment
Troubleshooting
Quick diagnostics, finding root causes, and debugging the stack.
Troubleshooting
If you encounter issues during deployment or operation, the payment-gateway-deploy repository includes built-in diagnostic tools to help identify and resolve problems.
Quick Diagnostics (Podman)
If you are deploying with Podman, use the built-in diagnostic script from the payment-gateway-deploy repository root (not from podman/):
# Check the status of all services
./scripts/diagnose.sh
# Find the root cause of failures
./scripts/diagnose.sh --root-cause
# Start services one-by-one with verification
./scripts/diagnose.sh --startup
# Enable debug mode (prevents cascade failures during complex debugging)
./scripts/diagnose.sh --debug-onGeneral Troubleshooting
Regardless of the platform, follow these general steps if something goes wrong:
- Check Deployment Logs:
cat podman/deploy.logorcat docker-compose/deploy.log
- View Service Logs:
- For Docker Compose (from
docker-compose/):docker compose logs -f <service-name>— names matchdocker-compose.yml(e.g.payment-gateway-admin-backend,mongo). - For Podman: use
journalctl --user -f -u payment-gateway-app.targetfor the whole stack, orjournalctl --user -f -u payment-gateway-admin-backendfor a single service.
- For Docker Compose (from
- Emergency Rollback:
- Use
./rollback.shin the respective platform directory to revert to the previous working state.
- Use
- Reset Deployment:
- Delete the secrets file
.env.secretsfrom the project root. - For Podman: Remove the
~/.config/payment-gateway-deploy/directory. - For Docker Compose: Remove the
.envfile from the platform directory. - Re-run
./deploy.sh.
- Delete the secrets file