Troubleshooting
Common issues and resolutions for AgentCube deployments. When the AI platform connects through the Context Engine, check the Context Engine’s /health and logs first (see Context Engine Issues), then the connector behind it. The other tables cover the connectors and the AI platforms.
Connectivity Issues
Section titled “Connectivity Issues”| Symptom | Cause | Resolution |
|---|---|---|
Connector health endpoint returns unhealthy, or its backend.status is unreachable | Connector cannot reach the backend | Verify ESSBASE_SERVER_URL, PLANNING_SERVER_URL, or FCCS_SERVER_URL is correct and accessible from the container’s network |
| Health endpoint not responding | Container not running or not exposed | Check container status and ingress configuration |
Data call returns a connection error (test_datasource direct, or get_data via the Context Engine) | Backend credentials invalid or expired | Verify username/password; check for account lockout |
Data call fails with connector call exceeded 30.0s | Queries against that system routinely take longer than the Context Engine waits | In the admin portal, open the system’s page and raise its Call timeout (between 5 and 210 seconds), or choose Use default to go back to the deployment-wide limit. The change applies to the next call; no restart is needed. Status checks keep their own short limit |
Authentication Issues
Section titled “Authentication Issues”| Symptom | Cause | Resolution |
|---|---|---|
| SSO popup doesn’t appear | OIDC base URL mismatch | Ensure the OIDC base URL exactly matches the public URL of the endpoint the AI platform connects to: AGENTCUBE_CE_OIDC_BASE_URL on the Context Engine, or OIDC_BASE_URL on a directly connected connector |
| SSO login fails | Identity provider misconfiguration | Verify app registration, redirect URI, and client credentials |
| Oracle token exchange fails | JWT assertion rejected by OCI | Verify signing key, certificate alias (AGENTCUBE_SIGNING_KID), and OCI confidential app configuration |
| User gets “access denied” from the data source | User not in OCI Identity Domain, or username mismatch | Ensure user exists in OCI Identity Domain with username matching corporate email |
| Account locked in OCI | Repeated failed authentication attempts | Reset the user’s password in OCI Identity Domain |
AI Platform Issues
Section titled “AI Platform Issues”| Symptom | Cause | Resolution |
|---|---|---|
| Tools don’t appear in Claude.ai | Connector added mid-conversation | Start a new conversation |
| Stale tool definitions in Copilot Studio | Copilot caches MCP tool definitions | Disconnect and reconnect the MCP connector in agent Actions settings |
| Connection errors from Copilot Studio | Compatibility issue | Verify the connector is accessible from Microsoft’s network |
Container Issues
Section titled “Container Issues”| Symptom | Cause | Resolution |
|---|---|---|
| Container restarts frequently | Resource limits too low or application error | Check container logs; ensure at least 1 vCPU and 2 GiB memory for the Context Engine and 0.25 vCPU and 0.5 GiB for each connector (see Container Images) |
| Image update doesn’t take effect | Container platform cached the previous image | Force a fresh pull: use a unique image tag or revision suffix, or trigger a forced redeployment on your platform. On Azure Container Apps a revision suffix allows only lowercase letters, numbers and hyphens, so drop the dots from a version (v317, not v3.1.7) |
| Environment variable changes not applied | Container not restarted | Restart the container after changing environment variables |
| Users must re-authenticate after a connector restart | Expected behavior for a connector reached directly in OIDC mode | The connector keeps OAuth state in memory, so users re-authenticate after it restarts. The Context Engine stores OAuth client state in its database, so Context Engine restarts and redeploys do not force re-authentication |
Context Engine Issues
Section titled “Context Engine Issues”| Symptom | Cause | Resolution |
|---|---|---|
Context Engine /health reports a problem | Database unavailable or misconfigured | Check the persistence block first; it reports unhealthy when the Context Engine cannot reach its PostgreSQL database |
| Adding a data source is refused, or the dashboard shows “Data sources cannot be added until a valid license is installed.” | No valid license installed, or the license cannot be validated | Check the license block in /health (data_source_provisioning reads blocked_by_license) and open Admin & Security → License in the admin console. Install or renew the license key there. Allow outbound HTTPS to https://licensing.caprus.ai |
| License install is refused with “AGENTCUBE_CE_CREDENTIAL_KEY is not configured” | The credential encryption key is not set | Set AGENTCUBE_CE_CREDENTIAL_KEY on the deployment, restart, then install the license again |
| A data call through the Context Engine returns a connector error | The connector behind the Context Engine is unhealthy or unreachable | Check the connector’s own /health and logs, then use the tables above |
Log Access
Section titled “Log Access”Check the Context Engine’s logs first, then the affected connector’s. Replace {app_name}, {container_name} and the other placeholders with the Context Engine’s or connector’s name in your deployment. Each command is a single line and runs as written in PowerShell or bash.
az containerapp logs show --name {app_name} --resource-group {resource_group} --tail 50aws logs get-log-events --log-group-name {log_group} --log-stream-name {log_stream} --region {region}The log group and stream name are configured in the task definition. You can also view logs in the AWS Console under CloudWatch → Log groups.
docker logs {container_name} --tail 50 --followdocker compose logs -f {service_name}kubectl logs -f deployment/{deployment_name} -n {namespace} --tail 50View logs in the OCI Console under Container Instances → {instance_name} → Logs, or use the OCI CLI:
oci logging-search search-logs --search-query 'search "{compartment_ocid}/{log_group_ocid}/{log_ocid}"' --time-start {start_time} --time-end {end_time}Increasing Log Verbosity
Section titled “Increasing Log Verbosity”Set AGENTCUBE_CE_LOG_LEVEL=DEBUG on the Context Engine, or AGENTCUBE_LOG_LEVEL=DEBUG on a connector, for verbose logs while troubleshooting. Set it back to INFO afterwards to reduce log volume. The Context Engine does not read AGENTCUBE_LOG_LEVEL.
Getting Help
Section titled “Getting Help”If you cannot resolve an issue using this guide, contact Caprus AI support with:
- The health endpoint responses (
/health) from the Context Engine and the affected connector - Container logs at debug level (
AGENTCUBE_CE_LOG_LEVEL=DEBUGon the Context Engine,AGENTCUBE_LOG_LEVEL=DEBUGon a connector) - The specific error message or behavior observed
- Your Context Engine version and authentication mode, plus the version and authentication mode of the affected connector