Verification and Troubleshooting
Verification Steps
AKS
kubectl logs deployment/tooljet -n tooljet | grep "TOOLJET APPLICATION STARTED SUCCESSFULLY"
Azure Container Instances
az container logs --resource-group your-rg --name tooljet-container | grep "TOOLJET APPLICATION STARTED SUCCESSFULLY"
Database version verification
psql "postgresql://username:[email protected]:5432/database?sslmode=require" -c "SELECT version();"
Common Issues and Solutions
SSL Connection Required
Symptoms: connection requires SSL
or SSL is required
Solutions:
- Ensure
PGSSLMODE=require
is set in environment variables - Verify the connection string includes
?sslmode=require
- Check that Azure PostgreSQL Flexible Server has SSL enforcement enabled
Authentication Errors
Symptoms: password authentication failed for user
Solutions:
- Verify database credentials are correct
- Check if the user exists and has proper permissions
- Confirm database name is correct
- Test connection from Azure Cloud Shell
Network Connectivity
Symptoms: Connection timeouts or connection refused
Solutions:
- Check Azure PostgreSQL Flexible Server firewall rules
- Verify VNet/subnet configuration if using private networking
- Ensure Azure PostgreSQL server is in Available state
- Check NSG (Network Security Group) rules
Container Startup Failures
Symptoms: Container fails to start or restart loops
Solutions:
- Check container logs for detailed error messages
- Verify all required environment variables are set
- Ensure adequate CPU/memory resources are allocated
- Test database connectivity separately
Manual Connection Testing
# Test Azure PostgreSQL connection from Azure Cloud Shell
az postgres flexible-server connect \
--name your-server-name \
--admin-user your-username \
--database-name your-database
# Test from local machine with SSL
psql "postgresql://username:[email protected]:5432/database?sslmode=require" -c "SELECT version();"
# Test using Azure CLI with psql
az postgres flexible-server execute \
--name your-server-name \
--admin-user your-username \
--admin-password your-password \
--database-name your-database \
--querytext "SELECT version();"