Skip to main content

Troubleshoot the Diagrid Assistant

When the Diagrid Assistant can't answer, the console and diagrid chat say why. Each section below starts with what you see, then says what to do. When diagrid chat shows one of these messages, it links to the matching section.

Each region has its own assistant, so some of these problems affect one region and not the others. The CLI message and the console drawer's header tell you which region you're in. To try another region, run diagrid chat --region <name> or diagrid chat --project <name>, or open the assistant from a project in that region.

Not included in your plan​

What you see: diagrid chat says the Diagrid Assistant is not included in the plan for your organization. The console shows Diagrid Assistant isn't in your plan.

What to do: Only Diagrid can add the assistant to your plan. Contact Diagrid.

Turned off for your organization​

What you see: diagrid chat says the assistant is included in the plan but is turned off. The console shows Diagrid Assistant is turned off.

What to do: An organization admin can turn it back on, on the Organization Overview page in the console under Diagrid Assistant, or with:

diagrid org assistant enable

diagrid org assistant get shows whether it is on, and why when it is off. If Diagrid turned it off, the console says so and an admin can't turn it back on. Contact Diagrid support.

Not set up in this region​

What you see: diagrid chat says the Diagrid Assistant is not set up in the region. The console shows Diagrid Assistant isn't set up here, and the organization settings say the assistant is on but isn't set up in the region. On the Regions page, organization admins see Not set up for the region.

Why: The region doesn't have a working model key. This happens in a self-managed BYOC region (a private region) until whoever runs it adds one, and in region types where the assistant isn't available yet, such as managed BYOC. Waiting won't fix it.

What to do:

  • If you run the region, follow Set up the Diagrid Assistant in a self-managed region. If you already added a key, check these:
    • The Secret is in the namespace you installed the chart into, and agent.reagent.llm.existingSecret names it and the key in it that holds the API key.
    • The key isn't empty.
    • The Secret existed when the agent last started. The agent only checks the key when it connects, so restart it after you create or fill in the Secret: kubectl -n cra-agent rollout restart deployment agent.
    • The region runs Diagrid data plane 1.119.0 or later. Earlier versions don't report the key.
  • If you don't run the region, ask whoever does, or use the assistant in another region.
  • For a managed BYOC region, the assistant isn't available yet. Contact Diagrid.

Region unavailable​

What you see: diagrid chat says the region is unavailable to your organization, so its assistant can't be reached. The console shows This region is unavailable.

Why: The region was deleted, has disconnected, or is blocked.

What to do: Check the region with diagrid region list or on the Regions page in the console. A self-managed region that has disconnected comes back once its agent reconnects. Meanwhile, use the assistant in another region with --region.

No region for the assistant​

What you see: diagrid chat says your organization has no region for the Diagrid Assistant yet. The console shows Diagrid Assistant needs a region.

Why: The assistant runs in a region, and your organization doesn't have one it can use yet.

What to do: Create a project, then open the assistant from it, or run diagrid chat --project <name>. You can also name a region with --region.

Being set up​

What you see: diagrid chat says the Diagrid Assistant is still being set up. The console shows Diagrid Assistant is being set up.

Why: Diagrid is still setting up the assistant in the region. You'll see this, for example, right after a self-managed region reports its key.

What to do: Wait a few minutes, then run diagrid chat again or reopen the console drawer.

Setup failed​

What you see: diagrid chat says the Diagrid Assistant could not be set up. The console shows Diagrid Assistant setup failed.

What to do: Contact Diagrid support. Retrying doesn't clear it.

Still not ready​

What you see: diagrid chat waited and says the Diagrid Assistant is still not ready, and that the region may not have an assistant. The console shows Setup is taking longer than expected.

Why: Diagrid kept reporting that the assistant wasn't ready, without giving a reason, for longer than setup normally takes.

What to do: Try another region with --region. If this region should have an assistant, for example a self-managed region whose key you added, check the list under Not set up in this region, then contact Diagrid support.

Can't reach the region's gateway​

What you see: diagrid chat says it can't reach the region's gateway from this network, and names the gateway's address.

Why: The CLI and the console talk to the assistant through the region's gateway, directly from your machine. A self-managed region's gateway is often reachable only from inside your own network.

What to do: Run the command from a machine that can reach the gateway, or connect to that network first. Check your VPN, firewall, and DNS. The console in your browser needs the same access.

Gateway certificate not trusted​

What you see: diagrid chat says the region's gateway presented a certificate this machine doesn't trust.

Why: The gateway's certificate was issued by a private or self-signed CA.

What to do: Pass that CA to the CLI. Get the CA file from the region's operator, or export it as described in Private or self-signed gateway certificate. The CLI then trusts the certificates in that file as well as the ones your machine already trusts:

diagrid chat --region <name> --gateway-ca-file ca.crt

For the console, add the CA to the trust store your browser uses.

You don't have access​

What you see: diagrid chat says you do not have access to the Diagrid Assistant in your organization. The console shows You don't have access to Diagrid Assistant.

Why: The assistant needs an organization-wide (global) role. A user whose roles are all limited to single projects, for example a collaborator invited to one project, can't use it, even when everything else is set up. The request fails with HTTP 403.

What to do: Ask an organization admin for a global role. See Role definitions. If you already have one, contact Diagrid.

Signed in with an API key​

What you see: diagrid chat says the Diagrid Assistant identifies you by your own login, which an API key does not carry.

Why: The assistant answers as you and reads only what your roles allow, so it needs a user login. An API key carries no user.

What to do: Log in as yourself and try again:

diagrid login

Request refused during a conversation​

What you see: diagrid chat says the Diagrid Assistant refused this request on behalf of your organization.

Why: The assistant checks your organization's plan and settings on every question, not just at the start. That check failed, either because something changed (for example, someone turned the assistant off) or because of a brief problem on Diagrid's side.

What to do: Run diagrid chat again. If the cause is one of those above, it tells you. If it keeps happening, contact Diagrid.

Usage limit reached​

What you see: diagrid chat says the assistant is rate-limiting the request, or your organization has reached a usage limit. The console shows Monthly limit reached.

Why: Either too many questions came in at once, which clears in seconds, or your organization has used up its monthly allowance for the assistant, which only clears when the allowance resets next month.

What to do: Wait and try again. If it doesn't clear, contact Diagrid.

Next steps​