# Troubleshooting

Use this guide to diagnose common issues across CloudSigma AI Studio, OmniFabric database instances, and the HTTP API. For exact HTTP status codes and JSON error codes, see [Error Codes](https://omnifabric.cloudsigma.com/docs/reference/error-codes.html.md).

## 1. Region and workspace mismatch

Each CloudSigma region (`mnl2`, `jhb`, `pom`) is an independent deployment with its own console, API base URL, access tokens, workspaces, resources, and Credit balance.

| Symptom | Likely cause | What to check |
| --- | --- | --- |
| Workspace or resource cannot be found (`404` / `ErrNotFound`) | Wrong region selected in the console, or `CLOUDSIGMA_API_BASE` does not match the region that owns `X-Workspace-ID` | Verify the console URL and regional API base URL in [Endpoints & Authentication](https://omnifabric.cloudsigma.com/docs/developer/endpoints-and-authentication.html.md), and copy the exact workspace ID from [Workspace](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/resource-center/workspace.html.md) |
| API key works in the console but returns `401` in scripts | Personal access token was issued in a different region (for example, `cloudsigma.com` vs `kumulcloud.com.pg`) | Create or copy the token from **Access credentials** in the same regional console; see [Access credentials](https://omnifabric.cloudsigma.com/docs/guides/billing/credentials.html.md) |
| Expected product entry is missing from the menu | The feature (such as OmniFabric database instances, compute resources, model resources, or runtime environments) is not enabled in the current region | Confirm regional availability in [Endpoints & Authentication](https://omnifabric.cloudsigma.com/docs/developer/endpoints-and-authentication.html.md#regional-product-availability) |

## 2. Sign-in and workspace permissions

| Symptom | Likely cause | What to check |
| --- | --- | --- |
| Missing actions such as creating workflows, knowledge bases, or managing users | Your active role in the current workspace lacks the required feature or object permission | Ask a workspace administrator to review your role under [Role permissions](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/permissions/roles.html.md) and [User management](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/permissions/users.html.md) |
| API call returns `403` / `ErrForbidden` or `ErrIAMDenied` | Caller is not a member of the target workspace or lacks permission for the target object | Confirm workspace membership and object grants before retrying |
| Cannot sign in to the regional console | Using credentials from another region or domain | Verify the regional console URL in [Endpoints & Authentication](https://omnifabric.cloudsigma.com/docs/developer/endpoints-and-authentication.html.md) |

## 3. API authentication and rate limiting

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| `401 Unauthorized` / `ErrUnauthenticated` | Missing, expired, or revoked personal access token, or passing `Authorization: Bearer` instead of `X-API-Key` | Pass the personal access token in `X-API-Key` without a `Bearer` prefix; see [Make your first AI Studio API call](https://omnifabric.cloudsigma.com/docs/developer/quickstart/index.html.md) |
| `400 ErrMultipleAuthCredentials` | Multiple credentials sent together (for example, saved browser cookies sent alongside `X-API-Key`) | Send only `X-API-Key` (and `X-Workspace-ID` when required) from a clean HTTP client with cookies disabled |
| `429 Too Many Requests` / `ErrDynamicServiceRateLimit` / `ErrDynamicServiceConcurrencyLimit` | Request rate or concurrency limit reached for a published workflow/operator service or upstream model provider | Inspect the `Retry-After` response header if present, reduce client concurrency, and retry with exponential backoff |
| `404` or HTML page returned from an API call | `CLOUDSIGMA_API_BASE` is missing `/v5` or points to the console URL instead of the API base URL | Confirm `CLOUDSIGMA_API_BASE` ends with `/v5` as listed in [Endpoints & Authentication](https://omnifabric.cloudsigma.com/docs/developer/endpoints-and-authentication.html.md) |

## 4. Data import and knowledge base processing

- **Import task stalls or fails**: Open task run details in [Load tasks](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/data-sources/load-tasks.html.md) and check source connectivity, credentials, file encoding, schema mapping, and destination Catalog volume permissions.
- **Knowledge base stuck in processing or missing citations**: Open the knowledge base **Data Source** tab to verify processing status is **Completed** ([Create knowledge bases and configure sources](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/knowledge-bases/create-and-sources.html.md)). For scanned PDFs or malformed files, confirm text can be extracted cleanly before re-indexing.
- **SQL query or NL2SQL cannot find a table**: Confirm the table is registered in Catalog under the active workspace ([SQL Editor](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/processing/sql-editor.html.md)).
- **IM channel integration issues**: For Feishu, WeCom, Slack, or Telegram webhook or reply issues, see [IM integration troubleshooting](https://omnifabric.cloudsigma.com/docs/guides/ai-studio/agents/manage-agents/im-connection/troubleshoot.html.md).

## 5. OmniFabric database connection issues

- **Connection timed out or refused**: Confirm the instance status is **Available**, verify host and port from the console, and add your client's public egress IP under **Network Policy** ([Connect and query an instance](https://omnifabric.cloudsigma.com/docs/guides/matrixone/connect-and-query.html.md)).
- **TLS / SSL handshake error**: Match the TLS parameters shown in the console connection command (for example, `--ssl-mode=REQUIRED` or `sslMode=REQUIRED`).
- **Authentication or SQL privilege error**: Verify the `admin` password, or sign in as `<username>:<role_name>` for regular users and confirm `GRANT` privileges ([OmniFabric permissions](https://omnifabric.cloudsigma.com/docs/guides/matrixone/permissions.html.md)).

## 6. Insufficient Credit and billing limits

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| Operations fail or an instance enters a restricted state due to low balance | The current region's CloudSigma Credit balance is insufficient, or a spending limit was reached | Check the remaining balance and recent charges in [View costs and usage](https://omnifabric.cloudsigma.com/docs/guides/billing/cost-and-usage.html.md); note that Credit balances are not shared across regions |
| Need to replenish Credit | Account requires additional Credit in the active region | Follow [Top up Credits](https://omnifabric.cloudsigma.com/docs/guides/billing/manage-billing.html.md) when self-service top-up is enabled, or contact your CloudSigma account administrator |
| Unexpected OmniFabric database charges | Storage, network, or running instance usage continues to accrue | Review instance consumption under Usage Details and see [OmniFabric billing](https://omnifabric.cloudsigma.com/docs/guides/billing/matrixone-billing.html.md) |

## Before contacting support

If the steps above do not resolve the issue, submit a ticket through your CloudSigma support portal or account representative and include the following redacted diagnostics (never include raw passwords, API keys, or access tokens):

- **Region and account context**: Region code (`mnl2`, `jhb`, or `pom`), console URL, and workspace ID (or database instance ID).
- **Identifiers**: HTTP `request_id` / `trace_id`, import task ID, workflow run ID, knowledge base name, or SQL query ID.
- **Timestamp**: Exact UTC timestamp (or timestamp with time zone) when the failure occurred.
- **Error details and redacted logs**: Full HTTP status code, JSON error `code` and `msg`, client command or request path with credentials removed, and redacted screenshots.
