> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/troubleshooting/common-issues.md).

# Common issues

What to do when something in Riff doesn't work as expected.

## My app is stuck on "Connecting to workspace..."

While you build, your app's preview runs in its workspace: a machine Riff starts for your app. If the preview shows **Connecting to workspace...** for more than a few minutes, the workspace hasn't started. Try these steps in order, and check whether the preview loads after each one.

1. **Hard refresh the page.** Press **Ctrl+Shift+R** (Windows) or **Cmd+Shift+R** (Mac).
2. **Restart the workspace.** Click your app's name at the top left, then **Settings**. In **App Details & Management**, scroll to **Workspace Management** and click **Restart workspace**.
3. **Upgrade the workspace.** If Workspace Management shows a newer latest version than yours, click **Upgrade Workspace**.
4. **Reinstall the workspace.** Click **Reinstall workspace**, then confirm. Riff wipes the workspace's disk and reinstalls it from your app's saved code. This takes a few minutes.
5. **Reprovision the workspace.** If the preview still doesn't load, click **Reprovision workspace**, then confirm. Riff replaces the workspace with a new one on fresh infrastructure. This can take up to 15 minutes.

Reinstalling and reprovisioning keep your app's saved code, its database, the files in Storage and your secrets. Anything else on the workspace's disk is lost. None of these steps affect your deployed app.

If the preview still doesn't load, click **?** in the top bar to contact support, and say which steps you tried. The Riff agent can't start the workspace for you, so asking it to fix this uses credits without helping.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.riff.ai/troubleshooting/common-issues.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
