Developers · Run it yourself

Troubleshoot a source install

Find the server log, and fix the problems people run into most when running from source.

This guide fixes the problems people run into most when they run Mirli from source or in Docker. Start with the server log: most of these problems name themselves there.

Find the server log

  1. Look for the log path in the server's startup output. By default it is:

    <DATA_DIR>/soundbox-<PORT>.log

    <DATA_DIR> is the data folder, ~/.mirli by default, and <PORT> the server's port, 17494 by default. The file rotates at 10 MB and keeps three older copies, .1 to .3.

  2. To see everything that happened in one generation, search the log for the job's id:

    Terminal
    grep <JOB_ID> soundbox-17494.log

    Every line about a job carries its id. Without shell access, GET /api/logs?lines=200 returns the end of the same file as JSON.

  3. Optional: For more detail, restart the server with MIRLI_LOG_LEVEL=debug. Each request to the prompt assistant, artwork and custom endpoints is then logged with its URL, status and timing. Keys, headers, prompts and lyrics are never logged.

For the desktop app, set MIRLI_LOG_LEVEL as a user environment variable on Windows, or with launchctl setenv on macOS, then restart the app. The desktop shell writes its own startup lines to a separate file; see About the desktop shell.

The Models page is empty or every request answers 502

The server is not running, so Vite on port 5174 has nothing to forward to.

  1. Stop the dev servers.

  2. Start both together from the repository root:

    Terminal
    npm run dev

If you started Vite alone with npm run dev:ui, start the server separately instead.

The audio.cpp runtime is not installed

If soundbox model status audiocpp says not installed, install it:

Terminal
soundbox model install audiocpp

To use a binary you built or downloaded instead, see Use your own audio.cpp build.

Generation is much slower than expected

Generation is probably running on the CPU.

  1. Check the device field of GET /api/health.
  2. If it says cpu on a machine with a GPU, follow Choose a backend.

CUDA runs out of memory

Only one model is loaded at a time, but a long clip can still fill a small card. Shorten the clip, or on the Models page, click Unload on the model and load it again.

A model is installed but fails to load

  1. On the Models page, open the model and read the error it shows.
  2. For the full audio.cpp output, read the server log.

A download that stopped partway shows as Incomplete, not installed.

A model shows as Incomplete

A download stopped before every file arrived. The Models page shows why.

  1. On the Models page, click Repair on the model.

    Mirli downloads only what is missing and continues a half-fetched file.

A download says there is not enough disk space

The message gives the size still to download, the 2 GB Mirli keeps free, the free space and the folder. Free space on that drive, or move the weights to a larger one in either of these ways:

  • Move the whole data folder with MIRLI_DATA_DIR. See Data folder.
  • Go to Settings > Models & engines > Audio engine, select External, and set Models folder to the new place.

A download fails with 401 or 403

The repository is gated, and you have not accepted its terms or the token is missing. Follow Download a gated model.

Windows says the path cannot be found during a download

The data folder path is too long for Windows' 260-character limit. Move the data folder somewhere short, such as C:\mirli, with MIRLI_DATA_DIR.

A job stays queued for a long time

The job queue runs one generation at a time, first in first out, so every job waits for the one ahead of it.

  1. Check what is running with GET /api/jobs, or in the log.
  2. For a queued job, GET /api/jobs/<JOB_ID> reports queue_position and a rough eta_s. The app's job panel shows the same.

An MCP client cannot connect

  1. Check the client uses http://127.0.0.1:17494/mcp.
  2. If you started the server with --host on another address, add the name the client uses to MIRLI_ALLOWED_HOSTS, then restart the server.

A reverse proxy gets 403 Forbidden host

The proxy forwards a Host header the server does not know. Add that name to MIRLI_ALLOWED_HOSTS and restart the server. See Put Mirli behind a reverse proxy.

What's next