---
title: "Troubleshooting"
description: "Common problems with the installer and the stack, and how to fix them."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ragna.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

Start with the logs. Run this from the folder that contains `ragna-studio`:

```bash
docker compose -p ragna_studio logs -f
```

Add a service name, such as `backend` or `migrate`, to see only its logs.

## Installer

| Symptom                                            | Likely cause and fix                                                                                                                                                          |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Docker Compose v2 is required`                    | Only the old `docker-compose` binary is installed. Install the compose plugin, or Docker Desktop.                                                                             |
| `Docker is not running`                            | Start Docker Desktop, or the Docker service on Linux.                                                                                                                         |
| `These settings are missing`                       | A required value in `.env` is empty. Fill it in `ragna-studio/.env` and run the installer again.                                                                              |
| `RAGNA Studio is already set up in ...`            | This machine already has an install. Run the installer from that folder, or set `RAGNA_DIR` to it.                                                                            |
| `RAGNA Studio data already exists on this machine` | The Docker volume of an earlier install still exists. Use the old folder. To start over, delete the volumes, see [Quickstart](https://docs.ragna.io/getting-started/quickstart#everyday-commands). |
| `RAGNA Studio did not start`                       | A service failed or didn't become healthy within 5 minutes. Check the logs.                                                                                                   |

## Startup

| Symptom                                                     | Likely cause and fix                                                                                                                                |
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `migrate` fails with `ECONNREFUSED` on port 5432            | Releases before the Postgres health check started `migrate` too early on the first start. Run the installer again, or upgrade.                      |
| `backend` or `migrate` can't log in to Postgres             | `DB_PASSWORD` changed after the first start. The database keeps the password from its first start. Restore the old value.                           |
| `seed` fails with `exec: "node": executable file not found` | The compose files are older than the images. Download the release's compose files, see [Upgrades](https://docs.ragna.io/self-hosting/upgrades-and-backups#seed-command). |
| Log warning `MEDIA_URL is not set`                          | No storage configured. Fine if storage was skipped, see [Storage](https://docs.ragna.io/self-hosting/storage).                                                           |

## Sign-in / Auth

| Symptom                                                                                                  | Likely cause and fix                                                                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The provider shows `redirect_uri_mismatch`                                                               | The redirect URI in the OAuth client doesn't match. It must be `<API_BASE_URL>/auth/callback/<provider>`, for example `https://api.example.com/auth/callback/google`.                                        |
| Sign-in succeeds, but the user lands on the sign-in page again                                           | The session cookie doesn't reach RAGNA Studio. Check `COOKIE_DOMAIN` (the shared parent domain, for example `.example.com`) and `TRUSTED_ORIGINS`, see [Configuration](https://docs.ragna.io/self-hosting/configuration#domains). |
| A user can't sign in                                                                                     | `ALLOWED_LOGIN_EMAILS` is set and doesn't contain their address.                                                                                                                                             |
| Signing in with Microsoft fails with `account_not_linked` for a user who signed up with another provider | The Entra app registration lacks the optional claim `xms_edov`, see [Configuration](https://docs.ragna.io/self-hosting/configuration#microsoft-entra-id).                                                                         |

## Using RAGNA Studio

| Symptom                           | Likely cause and fix                                                                                            |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Uploads and image generation fail | No storage configured. Set the `S3_*` values, see [Storage](https://docs.ragna.io/self-hosting/storage).                             |
| Images don't load                 | The images bucket isn't public-read, or `MEDIA_URL` and `NUXT_PUBLIC_MEDIA_URL` don't match its public URL.     |
| Live updates don't arrive         | The reverse proxy doesn't pass WebSocket upgrades to the API, see [Reverse proxy](https://docs.ragna.io/self-hosting/reverse-proxy). |

## Debugging a running container

The `migrate`, `frontend`, `backend` and `worker` images have no shell and no package manager. This keeps them small and leaves fewer packages to patch. `docker exec ... sh` doesn't work on them.

To look inside one, start a throwaway `busybox` container that shares its processes and network. This example attaches to `backend`:

```bash
docker run --rm -it --cap-add SYS_PTRACE \
  --pid=container:ragna_studio_backend \
  --network=container:ragna_studio_backend \
  busybox sh
```

Inside it:

- `ps` lists the service's processes.
- `wget -qO- http://localhost:3010/health` calls the service from its own network.
- `ls /proc/1/root/app` shows the service's files.

To copy a file out, `docker cp` works without a shell: `docker cp ragna_studio_backend:/app/package.json .`

## Changed `.env`?

Run the installer again from the same folder. It restarts every service whose settings changed. For a manual setup, run the `up -d --wait` command from [Install using Docker Compose](https://docs.ragna.io/self-hosting/install-options/docker-compose#step-3-start-everything) again.

Source: https://docs.ragna.io/self-hosting/troubleshooting/index.mdx
