

# Troubleshoot agent-ready WorkSpaces

**Note**  
This feature is in public preview. Features and behavior are subject to change.

With agent-ready WorkSpaces, an AI agent runs on the WorkSpace, and your users work with it from the chat and terminal panels in the WorkSpaces web client. This section helps you diagnose three problems: your users can't sign in to a connector, the agent doesn't start on a WorkSpace, and a connector shows an unexpected status.

During public preview, agent-ready WorkSpaces are available only in US East (Ohio). Behavior described here can change before general availability.

The following table lists each symptom and the section that covers it.


| If you see this | See | 
| --- | --- | 
| A user chooses a connector sign-in link and the sign-in doesn't complete | [Connector sign-in fails](#agentic-ts-connector-signin) | 
| The chat or terminal panel never connects, the agent doesn't respond, or the WorkSpace is in an error state after creation | [The agent won't start](#agentic-ts-agent-wont-start) | 
| A connector shows a status you don't expect, in the console or in the API | [Understand and check connector status](#agentic-ts-connector-status) | 

## Before you begin
<a name="agentic-ts-before-you-begin"></a>

Collect these. Support asks for them first.
+ The WorkSpace ID and the Region (US East (Ohio)).
+ The ID of the persona configuration that the WorkSpace was created from, and the output of `GetAgenticWorkspaceConfiguration` for the WorkSpace.
+ For account or connector problems, the output of `GetAgenticAccountSetup` and the connector ID.
+ The affected user, the connector name, and the time of the failure (with time zone).
+ A screenshot of the message the user saw.

To view a WorkSpace's agent configuration, use `GetAgenticWorkspaceConfiguration`. It returns the WorkSpace's models, agent runtime, connectors, and contexts. It also returns the policies associated with the WorkSpace, whether each was applied (`SyncStatus`), and the agent's health (`AgenticRuntimeState`). In the console, the **Agentic configuration** section of the WorkSpace details page shows the same information.

## Connector sign-in fails
<a name="agentic-ts-connector-signin"></a>

Connectors that use per-user OAuth (for example, GitHub and Asana) ask each user to sign in to the third-party service. The prompt appears the first time the agent uses the connector. The agent shows a sign-in link. The user approves access at the provider. After that, the connector works without further prompts.

The service doesn't keep your users' third-party tokens on the WorkSpace. Instead, agent-ready WorkSpaces store them for you and attach them to calls on the user's behalf. Sign-in is per WorkSpace and per connector: Signing in on one WorkSpace doesn't sign the user in on another. The sign-in page opens on its own in the browser on the WorkSpace desktop. Users can use the sign-in link once, and it expires after 10 minutes. A link copied to a browser on a local computer fails, because the return address is on the WorkSpace.

### The sign-in link doesn't appear
<a name="agentic-ts-signin-no-link"></a>

**Symptom:** The agent reports that a tool failed but shows no sign-in link, or the connector isn't offered at all.

**Cause:** One of the following: account setup isn't complete for your account; the connector isn't activated for your account; the connector isn't associated with the WorkSpace; the WorkSpace was created from a persona configuration that doesn't include the connector (a WorkSpace gets a copy of the persona configuration when it's created—to add a connector to an existing WorkSpace, use `AssociateWorkspaceAgenticConnectors`); the change hasn't reached the agent on the WorkSpace yet; or a policy blocks the connector's tools (the administrator-side tool control is the `disallowedTools` setting of the Agent Harness policy).

**Solution:**

1. In the console, choose **Agentic Catalog**, and then choose **MCP Connectors**. Confirm that the connector's status is **Active** for your account. If it isn't, activate it (`UpdateAgenticConnectorActivationStatus`).

1. Call `GetAgenticWorkspaceConfiguration` for the WorkSpace to see its connectors. If the connector is missing, add it with `AssociateWorkspaceAgenticConnectors`. The connector must be `ACTIVATED` first.

1. Wait for the change to reach the agent. You don't need to start a new session: The agent on the WorkSpace re-reads its connectors without a restart. For timing, see [When changes take effect](agentic-personas.md#agentic-personas-when-changes).

1. If the agent still doesn't offer the connector, check `disallowedTools` in the Agent Harness policy associated with the WorkSpace (`BatchGetAgentEnforcedPolicy`).

### The sign-in page doesn't open on the WorkSpace desktop
<a name="agentic-ts-signin-page-no-open"></a>

**Symptom:** The sign-in card in the chat says "The sign-in page didn't open on your WorkSpace desktop. Select Open on desktop to try again, then sign in there." Or the page opens, but it doesn't load.

**Cause:** The agent opens the sign-in page in the browser of the user who is connected to the WorkSpace desktop. If it can't start the browser in that session, the page doesn't open. The sign-in page is at `bedrock-agentcore.us-east-2.amazonaws.com`. The browser on the WorkSpace must reach that address, and the WorkSpace must reach the service to finish the sign-in.

**Solution:**

1. Ask the user to confirm that the desktop panel is connected, and then to choose **Open on desktop** on the card.

1. If the page opens but doesn't load, confirm that the WorkSpace's network allows HTTPS to `bedrock-agentcore.us-east-2.amazonaws.com`. For more information, see [Prerequisites for agent-ready WorkSpaces](agentic-prerequisites.md).

1. If the page still doesn't open, contact AWS Support with the information in [Before you begin](#agentic-ts-before-you-begin).

### The user selects the link, approves access, and the connector still asks them to sign in
<a name="agentic-ts-signin-reprompt"></a>

**Symptom:** The user completes the provider's consent page, returns to the WorkSpace, and the next tool call shows a new sign-in link.

**Cause:** One of the following: the sign-in didn't finish on the service side (a sign-in that fails to complete leaves no stored token, so the next call asks again); the user opened the sign-in link in a browser outside the WorkSpace; the user took longer than 10 minutes to complete the sign-in; the WorkSpace couldn't reach the service to finish the sign-in (the page that opens after consent shows "Authorization could not be completed"); or the user approved the provider's consent page for a different account or organization than the one that owns the repositories or workspaces they need.

**Solution:** Ask the user to request the action again. Ask them to complete the sign-in within 10 minutes, in the browser that opens on their WorkSpace. If the problem persists, collect the information in [Before you begin](#agentic-ts-before-you-begin) and contact AWS Support. Include the time of the last attempt.

### Sign-in succeeds but tool calls are denied
<a name="agentic-ts-signin-denied"></a>

**Symptom:** The provider shows the app as authorized, but the agent reports a permission or "not allowed" error for a specific tool.

**Cause:** One of the following: the provider account lacks access to the resource (repository, project, site); the `disallowedTools` setting of the Agent Harness policy blocks the tool; or an owner of the user's GitHub organization restricted OAuth app access or hasn't approved the app.

**Solution:**

1. Confirm the provider account can perform the same action directly in the provider's own interface.

1. Review the Agent Harness policy associated with the WorkSpace (`BatchGetAgentEnforcedPolicy`). Check `disallowedTools` for the connector's tool.

1. To undo a recent change, associate the previous policy with the WorkSpace (`AssociateAgentEnforcedPolicy`).

1. To restore access to a GitHub organization's repositories, ask an organization owner to approve the app.

### Connector sign-in is rate limited or the provider is unavailable
<a name="agentic-ts-signin-throttled"></a>

**Symptom:** Sign-in or tool calls fail intermittently, or with a throttling message.

**Cause:** The provider is rate limiting requests.

**Solution:** Wait, and then try again. If the failure continues, check the provider's status page, and then contact AWS Support.

## The agent won't start
<a name="agentic-ts-agent-wont-start"></a>

The agent runs on the WorkSpace, and the service configures and updates it. Users reach it from the chat and terminal panels in the WorkSpaces web client. For the agent to start, the following must be true: account setup is complete for your account; the agent software is installed and configured on the WorkSpace; and the user has a working connection from the browser to the WorkSpace.

First decide which situation you're in.


| Situation | See | 
| --- | --- | 
| The console says agent-ready WorkSpaces aren't enabled for your account, or setup didn't finish | [Account setup isn't complete](#agentic-ts-account-setup) | 
| The WorkSpace itself is in an error state, or the user never received the invitation email | [WorkSpace creation fails or ends in an error state](#agentic-ts-creation-fails) | 
| The WorkSpace is available, the desktop works, but chat and terminal never connect | [Chat and terminal panels never connect](#agentic-ts-panels-no-connect) | 
| The panels connect, but the agent errors, won't run commands, or can't call a model | [The agent starts but can't work](#agentic-ts-agent-cant-work) | 

### Account setup isn't complete
<a name="agentic-ts-account-setup"></a>

**Symptom:** You see one of the following: the **Agentic Catalog** page shows "Agent-ready WorkSpaces isn't enabled for this account" or "Setting up agent-ready WorkSpaces"; the console shows "Agent-ready WorkSpace setup didn't finish", with a reason and a **Retry** button; when you choose **Enable agent-ready WorkSpaces**, the console shows "Couldn't enable agent-ready WorkSpaces"; or `GetAgenticAccountSetup` returns a `Status` other than `READY`.

**Cause:** Account setup creates the IAM role `AgenticWorkspacesInferenceRole` in your account. The service uses this role to send model requests to Amazon Bedrock. A `Status` of `NOT_SET_UP` means that setup hasn't started, and `SETTING_UP` means that it's in progress. `SETUP_FAILED` means that setup didn't finish, and `ErrorCode` and `ErrorMessage` say why. If your IAM principal can't create the role, enabling returns an `AccessDeniedException`.

**Solution:**

1. If enabling returned an `AccessDeniedException`, grant your IAM principal `iam:GetRole`, `iam:CreateRole`, and `iam:PutRolePolicy`.

1. If setup failed, fix the cause that `ErrorMessage` names.

1. Start setup again. In the console, choose **Retry** or **Enable agent-ready WorkSpaces**. With the API, call `StartAgenticAccountSetup`.

1. After `GetAgenticAccountSetup` returns `READY`, retry the request that failed, such as creating the WorkSpace or activating a connector. If setup fails again, contact AWS Support.

**Verification:** `GetAgenticAccountSetup` returns a `Status` of `READY`.

### WorkSpace creation fails or ends in an error state
<a name="agentic-ts-creation-fails"></a>

**Symptom:** Either `CreateWorkspaces` returns the request in `FailedRequests` and no WorkSpace is created, or the WorkSpace is created and then goes to `ERROR` (or never becomes `AVAILABLE`), and the user receives no invitation email.

**Cause:** WorkSpaces installs and configures the agent as part of creating the WorkSpace. If that step fails, the WorkSpace is deliberately marked as failed instead of being delivered with a broken agent. Common causes: `CreateWorkspaces` returned the request in `FailedRequests` with error code `AgenticWorkspaceInvalidPersona` (message "The specified agentic configuration does not exist or is not available")—either the persona configuration doesn't exist, or a model in it is no longer allowed, a connector in it is no longer activated, or account setup isn't complete. Other `AgenticWorkspace*` codes mean the bundle isn't supported, with two exceptions: `AgenticWorkspaceNotEnabled` means the account isn't enabled, and `AgenticWorkspaceValidationUnavailable` means WorkSpaces couldn't check the request, so retry later. A prerequisite is missing (account setup, or the IAM role, policy, or external ID). The directory isn't one of the supported types (AWS Managed Microsoft AD, AD Connector, AWS Managed Microsoft AD with a trust relationship to your on-premises domain, or IAM Identity Center), or the bundle isn't supported for preview. The WorkSpace couldn't reach the WorkSpaces services it needs during install (network, DNS, or security group configuration).

**Solution:**

1. Call `DescribeWorkspaces` and read `ErrorCode` and `ErrorMessage`. Codes that start with `AgenticConfiguration.` mean the agent setup failed, for example `AgenticConfiguration.AgentInstallFailed` or `AgenticConfiguration.Timeout`.

1. If `CreateWorkspaces` returned the request in `FailedRequests`, confirm the persona configuration exists (`BatchGetAgenticPersonaConfiguration`). Also confirm that `ListAccountModels` lists each of its models, and that each of its connectors is `ACTIVATED`.

1. Re-check each prerequisite in [Prerequisites for agent-ready WorkSpaces](agentic-prerequisites.md): Region, directory type, bundle, account setup, IAM role and external ID.

1. Confirm the WorkSpace's subnet and security groups allow the outbound access WorkSpaces requires. For more information, see [IP address and port requirements for WorkSpaces Personal](workspaces-port-requirements.md).

1. For `AgenticConfiguration.AgentInstallFailed` or `AgenticConfiguration.Timeout`, delete the WorkSpace and create it again. If a new WorkSpace fails the same way, contact AWS Support with the WorkSpace ID.

**Verification:** `DescribeWorkspaces` shows the WorkSpace's `State` as `AVAILABLE`, and `GetAgenticWorkspaceConfiguration` shows an `AgenticRuntimeState` `Status` of `AVAILABLE`.

### Chat and terminal panels never connect
<a name="agentic-ts-panels-no-connect"></a>

**Symptom:** The WorkSpace is `AVAILABLE`, the desktop panel works, and the chat and terminal panels stay on a "connecting" state, or show a stalled connection after about 15 seconds.

**Cause:** The browser-to-agent connection wasn't established. Causes: the agent software on the WorkSpace isn't running (stopped, restarting, or an update is in progress); the WorkSpace was just started or resumed and the agent is still starting; the user has the WorkSpace open in more than one browser tab or device (a WorkSpace accepts one browser session, and a newer one disconnects the older); or the session has gone too long without refreshing its credentials, or the browser lost connectivity for an extended time (after a long gap, the client returns the user to sign in).

**Solution:**

1. Call `GetAgenticWorkspaceConfiguration` and check `AgenticRuntimeState`. In the console, check **Status** in the **Agentic configuration** section of the WorkSpace details page. `Status` is `AVAILABLE`, `PENDING`, `IMPAIRED`, `ERROR`, or `UNKNOWN`. `ErrorCode` and `ErrorMessage` say which check failed. Find the `Status` or `ErrorCode` in the following table, and take the action that it lists.


<table>
<thead>
  <tr><th>Status or ErrorCode</th><th>What to do</th></tr>
</thead>
<tbody>
  <tr><td><code>PENDING</code></td><td>The agent is starting, installing, updating, or applying a change. Wait, and then check again.</td></tr>
  <tr><td><code>WORKSPACE_NOT_RUNNING</code></td><td>Start the WorkSpace.</td></tr>
  <tr><td><code>CONFIG_APPLY_FAILED</code>, <code>RECONCILE_TIMED_OUT</code></td><td>Check the last configuration change, and then apply it again. If <code>RECONCILE_TIMED_OUT</code> persists, reboot the WorkSpace.</td></tr>
  <tr><td><code>DCV_CHANNEL_UNAVAILABLE</code></td><td>Reboot the WorkSpace. If the error persists, rebuild it or contact AWS Support.</td></tr>
  <tr><td><code>BOOT_TIMED_OUT</code>, <code>CREDENTIALS_EXPIRED</code>, <code>AGENT_UNREACHABLE</code></td><td>Reboot the WorkSpace. If the error persists, contact AWS Support.</td></tr>
</tbody>
</table>


   For other codes, take the action in the `ErrorMessage`.

1. Ask the user to close other tabs and devices that have this WorkSpace open, and then to reload the page.

1. If the desktop panel shows "Desktop session ended", ask the user to choose **Return to sign-in**.

1. Reboot the WorkSpace. The agent restarts with it. After the reboot, open chat sessions come back with their history.

1. If the panels still don't connect, contact AWS Support with the information in [Before you begin](#agentic-ts-before-you-begin).

**Note**  
When the panels reconnect, the web client shows each pending approval request again.

**Verification:** `AgenticRuntimeState` shows a `Status` of `AVAILABLE` with no `ErrorCode`.

### The agent starts but can't work
<a name="agentic-ts-agent-cant-work"></a>

Start by calling `GetAgenticWorkspaceConfiguration` and checking `AgenticRuntimeState`. `ErrorCode` and `ErrorMessage` say which check failed.


| Symptom | Likely cause | Solution | 
| --- | --- | --- | 
| The agent can't reach the internet, a package registry, or a web API | The OS policy blocks direct internet access for the agent and every process it starts. Only disableInternetAccess: false allows it. If the field is absent, or no OS policy is associated, the agent has no internet access. The policy doesn't affect the user's own desktop network access, or model and connector requests. | Review the OS policy associated with the WorkSpace (BatchGetWorkspaceEnforcedPolicy). To allow internet access, create a policy that sets disableInternetAccess: false (CreateWorkspaceEnforcedPolicy). Then associate it (AssociateWorkspaceEnforcedPolicy), which replaces the current one. To roll back, associate the previous policy. | 
| The agent can't read or write a folder | The OS policy lists the folder in deniedPaths. The user can still open it from the desktop. | Review deniedPaths in the OS policy. | 
| The agent reports a model is not available | The model isn't enabled for the account or for the WorkSpace. The WorkSpace list must be a subset of the account list. | Check both lists: GetAgenticWorkspaceConfiguration for the WorkSpace, and ListAccountModels for the account. Add the model to the account first, then to the WorkSpace. | 
| The agent is blocked from approving or running a command | The Agent Harness policy requires approval for it, or denies it. | Review the Agent Harness policy associated with the WorkSpace (BatchGetAgentEnforcedPolicy). If the policy requires approval, the user must approve the request in the client. | 
| A policy doesn't take effect | The policy couldn't be applied to the WorkSpace. GetAgenticWorkspaceConfiguration shows SyncStatus of FAILED and ErrorCode of POLICY\_APPLY\_FAILED for it. PENDING\_UPDATE means the update is still in progress. | Associate a corrected policy, or contact AWS Support with the WorkSpace ID. | 
| The agent behaves as it did before you changed a model or connector | The change hasn't reached the agent yet. Model and connector changes reach a running WorkSpace with no restart. | For timing, see [When changes take effect](agentic-personas.md#agentic-personas-when-changes). WorkSpaces copies a persona configuration to the WorkSpace once, when it creates the WorkSpace. To change an existing WorkSpace, add or remove components on that WorkSpace. | 
| Inference fails or is slow in the first minutes | Model requests use Amazon Bedrock cross-Region inference for the US geography and can be processed in other US Regions. Your service control policies (SCPs) or network controls might block them. | Confirm that your controls allow the Amazon Bedrock actions in US East (Ohio) and in each Region of the inference profile. For more information, see [Prerequisites for agent-ready WorkSpaces](agentic-prerequisites.md). A local administrator on the WorkSpace can bypass some on-instance controls. For more information, see [Security considerations and shared responsibility for agent-ready WorkSpaces](agentic-security-shared-responsibility.md). | 

**Verification:** After a policy change, `GetAgenticWorkspaceConfiguration` shows a `SyncStatus` of `IN_SYNC` for the policy.

## Understand and check connector status
<a name="agentic-ts-connector-status"></a>

Connector status appears at two levels. Don't mix them.

### Account level: is the connector available to my WorkSpaces?
<a name="agentic-ts-status-account"></a>

Connectors come from an AWS managed catalog, and you activate or deactivate them for your account. In US East (Ohio), the catalog offers GitHub and Asana.

For what each `ActivationStatus` value means, see [Connector status](agentic-connectors.md#agentic-connectors-status). To check the status in the console, choose **Agentic Catalog**, and then choose **MCP Connectors**. With the API, call `BatchGetAgenticConnector` or `ListAgenticConnectors`.

If a connector is in `ACTIVATION_ERROR` or `DEACTIVATION_ERROR`:
+ For `ACTIVATION_ERROR`, deactivate the connector, and then activate it again (`UpdateAgenticConnectorActivationStatus`).
+ For `DEACTIVATION_ERROR`, deactivate it again.
+ Confirm the account prerequisites: `GetAgenticAccountSetup` returns `READY`, and the IAM role and external ID are correct.
+ If the error continues, contact AWS Support with the connector ID.

If a connector stays `PENDING` for more than 15 minutes, contact AWS Support with the connector ID. Don't deactivate a connector while it's `PENDING`, because the request can return a `ConflictException`. Wait for activation to finish first.

### WorkSpace level: is this connector associated with this WorkSpace?
<a name="agentic-ts-status-workspace"></a>

`GetAgenticWorkspaceConfiguration` shows the connectors associated with a WorkSpace. `ListAgenticConnectors` is account level, not per WorkSpace. In the console, the **Agentic configuration** section of the WorkSpace details page lists the connectors. To change them, choose **Edit**, and then choose **MCP Connectors**.

For users to see a connector, it must be both active in the account and associated with the WorkSpace. Changes are synchronous: When the call returns, the configuration includes the change. The agent on the WorkSpace picks up the change with no restart. For timing, see [When changes take effect](agentic-personas.md#agentic-personas-when-changes). Removing a connector doesn't stop a running task, but the agent's requests to the connector fail within about a minute, even during a task.