> ## Documentation Index
> Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

## Installing the watsonx Orchestrate Developer Edition

You might encounter errors when installing the watsonx Orchestrate Developer Edition. To address the most common errors, see the following topics for solutions:

> [accordion] server start command fails with pull access denied
>
> 1. Try to log in manually with the following command:
>
>    ```bash theme={null}
>    docker login -u cp -p APIKEY cp.icr.io
>    ```
>
> 2. If you manage to log in and the server still fails to start, locate the Docker config file. Usually, you find this file in `~/.docker/config.json`. If it doesn't exist, you can create it.
>
> 3. Add the following content to the file:
>
>    ```json theme={null}
>    {
>      "auths": {
>        "us.icr.io": {
>          "auth": "BASE64_ENCODED_APIKEY"
>        }
>      }
>    }
>    ```
>
>    Where `BASE64_ENCODED_APIKEY` is the base64 encoded string of `iamapikey:DOCKER_IAM_KEY`.

> [accordion] Permission denied when trying to download Docker images
>
> You get an error message such as the following one:
>
> ```
> dial unix /var/run/docker.sock: connect: permission denied
> ```
>
> This issue happens because the Docker daemon runs as a root-owned process that communicates through a Unix socket. You must have the necessary permissions to access this socket.
>
> To solve this problem, follow these steps:
>
> 1. Add Docker to the group of users that can use `sudo`.
>
>    ```
>    sudo usermod -aG docker $USER
>    ```
>
> 2. Run the following command to log in to a new group:
>
>    ```
>    newgrp docker
>    ```
>
> 3. Check if your user belongs to the `docker` group:
>
>    ```
>    groups
>    ```
>
> 4. Try running Docker's `hello-world` to check if you're able to run Docker:
>
>    ```
>    docker run hello-world
>    ```

> [accordion] Document processing image not found during server startup
>
> If you encounter an error when starting the server with document processing enabled (`--with-doc-processing` or `-d`), such as:
>
> ```
> Error response from daemon: failed to resolve reference "registry.dl.watson-orchestrate.ibm.com/cp/wxo-lite/document-processing/wo_doc_processing_evaluation_pg_init:20260629-main-67-230c0a9":
> registry.dl.watson-orchestrate.ibm.com/cp/wxo-lite/document-processing/wo_doc_processing_evaluation_pg_init:20260629-main-67-230c0a9: not found
> ```
>
> This issue occurs when required document processing Docker images are not available in the registry. This can happen with certain versions or registry configurations.
>
> To resolve this issue:
>
> 1. **Verify your ADK version**: Ensure you're using the latest version of the ADK CLI:
>
>    ```bash theme={null}
>    orchestrate --version
>    ```
>
> 2. **Update to the latest version** if needed:
>
>    ```bash theme={null}
>    pip install --upgrade ibm-watsonx-orchestrate
>    ```
>
> 3. **Reset and restart the server**:
>
>    ```bash theme={null}
>    orchestrate server reset
>    orchestrate server start -e <path-.env-file> --with-doc-processing
>    ```
>
> 4. **Check your registry configuration**: If you're using a custom registry or on-premises setup, verify that all required images are available in your registry. Contact your administrator if images are missing.
>
> 5. **Alternative workaround**: If document processing is not critical for your current work, start the server without the `-d` or `--with-doc-processing` flag:
>
>    ```bash theme={null}
>    orchestrate server start -e <path-.env-file>
>    ```
>
> > [!NOTE]
> >
> > **Note:** Document processing requires additional system resources. Ensure your system meets the minimum requirements of 24 GB RAM when using this feature.

> [accordion] DNS resolution failure when pulling Docker images from the IBM registry
>
> When you run `orchestrate server start`, the ADK pulls Docker images from the IBM Container Registry. If you cannot resolve the registry hostname, the command fails immediately with an error similar to:
>
> ```
> [ERROR] - Error logging into Docker:
> Error response from daemon: Get "https://registry.us-south.assistant-builder.watson.cloud.ibm.com/v2/":
> dial tcp: lookup registry.us-south.assistant-builder.watson.cloud.ibm.com on <dns>:53: no such host
> ```
>
> **Common causes**
>
> * Corporate DNS or web proxy blocking IBM Cloud hostnames
> * VPN split-tunnel configuration dropping traffic to IBM registry endpoints
> * Docker Desktop that uses its own internal DNS resolver rather than the system resolver
> * Cloud VM (AWS EC2, Azure VM, GCP) default DNS not forwarding external hostnames
>
> **Step 1 Confirm that DNS resolution is the problem**
>
> Run the following commands outside of Docker to check whether your system can resolve the hostname at all:
>
> ```bash theme={null}
> # Resolve the registry hostname
> nslookup registry.us-south.assistant-builder.watson.cloud.ibm.com
>
> # Alternative using dig
> dig registry.us-south.assistant-builder.watson.cloud.ibm.com
> ```
>
> If both commands return `NXDOMAIN`, `no such host`, or time out, the problem is with the DNS resolver that you are using. Proceed to the following workarounds.
>
> If `nslookup` succeeds but the ADK still fails, the issue is inside the Docker daemon. Skip to **Workaround 3**.
>
> **Step 2 Check whether Docker itself can reach the network**
>
> ```bash theme={null}
> # Pull a public image to confirm Docker networking is functional
> docker pull hello-world
>
> # Inspect the DNS servers the Docker daemon is using
> docker info | grep -i dns
> ```
>
> If `docker pull hello-world` fails, Docker has a general networking problem unrelated to the IBM registry. Reinstall Docker Desktop or check your firewall rules before you continue.
>
> **Workaround 1 Configure Docker Desktop to use a public DNS server**
>
> On macOS and Windows, Docker Desktop uses its own internal DNS resolver. Override it to use a public resolver such as Google (`8.8.8.8`) or Cloudflare (`1.1.1.1`):
>
> 1. Open Docker Desktop.
>
> 2. Go to **Settings** → **Docker Engine**.
>
> 3. Add or merge the following JSON into the daemon configuration:
>
>    ```json theme={null}
>    {
>      "dns": ["8.8.8.8", "1.1.1.1"]
>    }
>    ```
>
> 4. Click **Apply & restart**.
>
> 5. Retry `orchestrate server start`.
>
> **Workaround 2 Add a static entry to `/etc/hosts` (Linux / macOS)**
>
> If DNS resolution consistently fails for the registry hostname, you can pin it to its current IP address as a temporary fix.
>
> 1. Resolve the current IP address from a machine that can reach it (or contact your network team):
>
>    ```bash theme={null}
>    nslookup registry.us-south.assistant-builder.watson.cloud.ibm.com 8.8.8.8
>    ```
>
> 2. Open `/etc/hosts` with sudo privileges:
>
>    ```bash theme={null}
>    sudo nano /etc/hosts
>    ```
>
> 3. Add the following line, replacing `<IP>` with the address you resolved:
>
>    ```
>    <IP>   registry.us-south.assistant-builder.watson.cloud.ibm.com
>    ```
>
> 4. Save the file and retry `orchestrate server start`.
>
> > [!WARNING]
> >
> > Static IP entries can become stale if IBM rotates the registry IP. Remove the entry after your DNS issue is resolved and test again with `nslookup`.
>
> **Workaround 3 Configure a corporate proxy for Docker**
>
> If your organization routes all outbound traffic through a proxy, you must tell Docker about it so that image pulls can pass through.
>
> On macOS and Windows (Docker Desktop):
>
> 1. Open Docker Desktop → **Settings** → **Resources** → **Proxies**.
> 2. Enable **Manual proxy configuration**.
> 3. Enter your HTTP and HTTPS proxy addresses (for example, `http://proxy.company.com:8080`).
> 4. Add `localhost,127.0.0.1` to the **No proxy** field.
> 5. Click **Apply & restart**.
>
> On Linux, configure the Docker daemon's systemd drop-in:
>
> ```bash theme={null}
> sudo mkdir -p /etc/systemd/system/docker.service.d
> sudo tee /etc/systemd/system/docker.service.d/http-proxy.conf <<EOF
> [Service]
> Environment="HTTP_PROXY=http://proxy.company.com:8080"
> Environment="HTTPS_PROXY=http://proxy.company.com:8080"
> Environment="NO_PROXY=localhost,127.0.0.1"
> EOF
> sudo systemctl daemon-reload && sudo systemctl restart docker
> ```
>
> **Platform-specific notes**
>
> | Platform | Extra steps |
> | - | - |
> | **macOS (Docker Desktop)** | After you update daemon DNS settings in Docker Desktop → Settings → Docker Engine, click **Apply & restart** and wait for Docker to fully restart before retrying. |
> | **Windows (WSL 2)** | WSL 2 generates `/etc/resolv.conf` from the Windows DNS configuration. If Windows DNS is corporate-only, create `/etc/wsl.conf` with `[network] generateResolvConf = false`, then write a static `/etc/resolv.conf` pointing to `8.8.8.8`. Restart WSL with `wsl --shutdown` and then reopen your terminal. |
> | **AWS EC2** | The default VPC resolver (`169.254.169.253`) resolves public hostnames. If resolution fails, check that your Security Group outbound rules allow TCP 443 to `0.0.0.0/0` and that the subnet's route table has an Internet Gateway entry. |
> | **Azure VM and GCP VM** | Similar to AWS: verify that your NSG (Azure) or firewall rule (GCP) permits outbound HTTPS. The default cloud DNS resolvers forward public names correctly unless a custom DNS server or private DNS zone is overriding resolution. |

For Windows users, you might also encounter containerization issues as Windows systems do not support Docker natively.

> [accordion] No environment file
>
> If you're using Windows, you may have created your `.env` file on your local machine. To make it accessible within your Ubuntu environment in WSL, follow these steps:
>
> 1. Open **File Explorer** and enter the following path in the address bar, replacing `yourUsername` with your actual Linux username:
>
> ```text PATH theme={null}
> \\wsl.localhost\Ubuntu\home\yourUsername
> ```
>
> 2. Open another **File Explorer** window and navigate to the location where your `.env` file is saved.
>
> 3. Copy the `.env` file into your Linux home directory shown in the first window.

> [accordion] The Compose file is invalid because of unsupported variable types
>
> If you get an error similar to this:
>
> ```
> ERROR: The Compose file '/home/user/adktest/.venv/lib/python3.12/site-packages/ibm_watsonx_orchestrate/docker/compose-lite.yml' is invalid because:
> services.wxo-server-worker.environment.DO_NOT_TRACK contains true, which is an invalid type, it should be a string, number, or a null
> services.wxo-tempus-runtime.environment.REDIS_TLS contains false, which is an invalid type, it should be a string, number, or a null
> services.wxo-server.environment.DO_NOT_TRACK contains true, which is an invalid type, it should be a string, number, or a null
> services.socket-handler.build contains unsupported option: 'ssh'
> services.wxo-server-worker.depends_on contains unsupported option: 'required'
> services.wxo-server.depends_on contains unsupported option: 'required'
> ```
>
> That's because you're using an older version of **Docker Compose** ([v1](https://docs.docker.com/retired/#docker-compose-v1-replaced-by-compose-v2) instead of v2) that does not support some variable types.
>
> To solve this issue, you must install Docker Compose v2.
>
> On Ubuntu 24.04, for example, you can simply run the following commands:
>
> ```
> sudo apt-get remove docker-compose
> sudo apt-get install docker-compose-v2
> ```
>
> Check your distribution repositories for the appropriate packages of Docker Compose v2.

> [accordion] Homebrew not installed in Ubuntu
>
> If Homebrew is not installed in your Ubuntu distribution on WSL, you'll need to install it manually:
>
> 1. Open Ubuntu via the Start Menu
> 2. Check if Homebrew is already installed:
>
> ```bash BASH theme={null}
> brew --version
> ```
>
> If you get a "command not found" error, proceed to the next step.
>
> 3. Install Homebrew:
>
> ```bash BASH theme={null}
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
> ```
>
> 4. Verify the installation path:
>
> ```bash BASH theme={null}
> whereis brew
> ```
>
> > [!NOTE]
> >
> > **Note:** The default location is usually `/home/linuxbrew/.linuxbrew/bin/brew`

> [accordion] Python not installed or incorrect version
>
> The ADK supports Python 3.11 to Python 3.14. Follow these steps to configure Python 3.12:
>
> 1. Open Ubuntu via the Start Menu.
> 2. Check if Python 3.12 is installed:
>
> ```bash BASH theme={null}
> python3.12 --version
> ```
>
> If not installed, continue with the steps below.
>
> 3. Install Python 3.12 using Homebrew:
>
> ```bash BASH theme={null}
> brew install python@3.12
> ```
>
> 4. Set Python 3.12 as the default:
>
> ```bash BASH theme={null}
> ln -s /home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python3.12 /home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python
> ln -s /home/linuxbrew/.linuxbrew/opt/python@3.12/bin/pip3.12  /home/linuxbrew/.linuxbrew/opt/python@3.12/bin/pip
> echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/python@3.12/bin:$PATH"' >> ~/.zshrc
> source ~/.zshrc
> ```
>
> 5. Confirm the installation path:
>
> ```bash BASH theme={null}
> whereis python3.12
> ```
>
> 6. Verify that Python 3.12 is now the default:
>
> ```bash BASH theme={null}
> python --version
> ```
>
> This should return the installed version of Python 3.12.

## Managing connections for Python tools

There are many error messages that may occur when importing a Python tool with credentials (especially one with `expected_credentials`). Most serve to help guide the user in how to properly define their connections to work with their Python tool.

> [accordion] No app-id given
>
> If no app-id is passed into a tool that has `expected_credentials` you see the following error:
>
> ```bash BASH theme={null}
> [ERROR] - The tool 'my_sample_tool' requires an app-id 'my_app_id'. Please use the `--app-id` flag to provide the required app-id
> ```
>
> To fix this, be sure to pass in the --app-id flag when importing the tool and make sure that the name is correct:
>
> ```bash BASH theme={null}
> orchestrate tools import -k python -f <path to file> --app-id my_app_id
> ```

> [accordion] No connection exists
>
> If you try to pass in a connection that doesn't exist you see the following:
>
> ```bash BASH theme={null}
> [ERROR] - No connection exists with the app-id 'my_app_id'
> ```
>
> To fix this be sure that you create the connection before importing the tool:
>
> ```bash BASH theme={null}
> orchestrate connections add --app-id my_sample_tool
> ```

> [accordion] Type Mismatch
>
> If you specify an app id on a connection that is of a different type than what the tool specifies in `expected_credentials` you see the following:
>
> ```bash BASH theme={null}
> [ERROR] - The app-id 'my_app_id' is of type 'basic_auth'. The tool 'my_sample_tool' expects this connection to be of type 'api_key_auth'. Use `orchestrate connections list` to view current connections and use `orchestrate connections add ` to create the relevant connection
> ```
>
> To fix this remove the existing connection with that name and re-create it with the correct type. Or if that connection is used by a different tool that requires that type, create a new connection with a different name (`my_app_id_2`) and the correct type. Then import using an alias:
>
> ```bash BASH theme={null}
> orchestrate tools import -k python -f <path to file> --app-id my_app_id=my_app_id_2
> ```

## Remote MCP toolkits

The following sections describe errors that can occur when importing or executing remote MCP toolkits.

> [accordion] Toolkit import fails with CM-REFRESH-TOKEN-FAILED-001 (SSO/OBO connection)
>
> When you import a remote MCP toolkit that is associated with an SSO/OBO (`oauth_auth_on_behalf_of_flow`) connection, the import fails with an error similar to the following:
>
> ```
> ClientAPIException(status_code=500, message={"detail":"Failed to import tools from MCP server:
> CM-REFRESH-TOKEN-FAILED-001: Unable to authenticate with the application.
> Please try again. If this continues, ask your administrator to reauthorize the application connection."})
> ```
>
> **Cause**
>
> During toolkit import, watsonx Orchestrate calls the MCP server's `tools/list` endpoint to discover available tools. If the toolkit is bound to an SSO/OBO connection, the platform attempts to obtain an access token from the identity provider. This token exchange requires an authenticated end-user session, which does not exist at import time. The identity provider therefore rejects the request and the import fails.
>
> **Resolution**
>
> Configure the **draft** and **live** environments with different connection kinds. Use `key_value` for draft (where the import happens) and keep SSO/OBO for live (where tool execution happens with a real user session):
>
> ```bash BASH theme={null}
> # Create the connection
> orchestrate connections add -a my_sso_obo_connection
>
> # Configure draft with key_value (placeholder credentials are sufficient for tool discovery)
> orchestrate connections configure -a my_sso_obo_connection \
>     --env draft --type team --kind key_value
> orchestrate connections set-credentials -a my_sso_obo_connection \
>     --env draft -e "PLACEHOLDER=value"
>
> # Configure live with SSO/OBO for authenticated tool execution
> orchestrate connections configure -a my_sso_obo_connection \
>     --env live --type member --kind oauth_auth_on_behalf_of_flow
>
> # Import the toolkit — uses draft key_value connection and succeeds
> orchestrate toolkits import -f my_toolkit.yaml -a my_sso_obo_connection
> ```
>
> For more information, see [Importing toolkits with SSO/OBO connections](https://developer.watson-orchestrate.ibm.com/tools/toolkits/remote_mcp_toolkits.md#importing-toolkits-with-sso-obo-connections).

> [accordion] MCP tool execution fails with HTTP 431 (Request Header Fields Too Large)
>
> When a user executes a remote MCP tool through the embedded chat or a Microsoft Teams channel, the call fails. The surface-level error shown to the user is:
>
> ```
> 500: Failed to execute MCP tool. Please check server availability.
> ```
>
> The underlying error in platform logs is:
>
> ```
> HTTP 431 - Request Header Fields Too Large
> ```
>
> **Cause**
>
> watsonx Orchestrate enforces an 8 KB per-header size limit as part of RFC 6585-compliant header size validation. During remote MCP tool execution with an SSO/OBO connection, the platform propagates the user's access token in the `x-wxo-access-token` header. If your application injects many context variables into the JWT, the resulting access token can exceed this limit.
>
> **Resolution**
>
> Reduce the size of the JWT payload by removing context variables that are not needed by the agent or MCP tool. Common candidates for removal include internal system values, verbose metadata, or redundant fields added by the identity provider.
>
> After pruning, verify that the `x-wxo-access-token` header stays below 8 KB. You can measure the JWT size by base64-decoding it and checking the payload byte length.
>
> > [!NOTE]
> >
> > The 8 KB per-header limit applies to each individual header. If your use case requires a larger header, contact IBM support to evaluate configuration options.

## Creating agents

> [accordion] Agent creation fails immediately on an on-premises deployment
>
> When you create an agent on a fresh on-premises (CPD) installation of watsonx Orchestrate, either from the UI or by running `orchestrate agents import`, the operation fails immediately with:
>
> ```
> Creating the agent failed. Please try again.
> ```
>
> No additional diagnostic information is provided.
>
> **Cause**
>
> The platform requires at least one LLM model to be registered with the `default` tag before any agent can be created. On a fresh on-premises installation, no default model exists, so the agent creation request fails.
>
> **Resolution**
>
> 1. Create a model YAML file with the `default` tag:
>
>    ```yaml default-model.yaml theme={null}
>    spec_version: v1
>    kind: model
>    name: "watsonx/ibm/granite-3-8b-instruct"
>    display_name: "IBM Granite 3 8B Instruct"
>    model_type: chat
>    tags:
>      - default
>    ```
>
> 2. Import the model into your on-premises environment:
>
>    ```bash theme={null}
>    orchestrate models import -f default-model.yaml
>    ```
>
>    If the model is already imported without the `default` tag, remove it and re-import:
>
>    ```bash theme={null}
>    orchestrate models remove watsonx/ibm/granite-3-8b-instruct
>    orchestrate models import -f default-model.yaml
>    ```
>
> 3. Retry agent creation.
>
> This is a one-time post-installation step. Any model that supports tool calling can serve as the default. For more information, see [On-premises deployments: a default model is required before creating agents](https://developer.watson-orchestrate.ibm.com/llm/managing_llm.md#on-premises-deployments-a-default-model-is-required-before-creating-agents).
