The System One EventUtahGo To Event Page →

Docs

Set up Midium, use every part of it, run it for your team, and build on it.

Troubleshooting

Fixes for the common problems — a model that won't load, missing model files, a vault that won't index, API errors, a busy port, an engine that stopped answering, and web search — plus where to find the logs.

For everyone

Start here#

Run the checklist in a terminal:

Shell
midium doctor

It checks the version, whether the engine port is listening, the mode, the API key, the platform, disk and memory, and warns when memory is nearly full. midium status shows whether the engine is running and which models are loaded.

A model won't load or doesn't fit#

The model shows Couldn't load, or a chat waits and then says the model couldn't load.

  1. Open Settings → Models and look at the memory bar. It shows what models and other apps use, and marks a model that Won't fit right now.
  2. Free memory. Press Unload on models you aren't using, or Unload All Models from the menu-bar icon. Quitting other large apps helps too.
  3. Load with a smaller context window. When a load doesn't fit, Midium offers Auto-fit to memory, which picks the largest context that fits, or a Custom context window. To choose every time, turn on Ask for a context window on load in Settings → Agent.
  4. Pick a smaller build. The Models page marks each model Fits this Mac, Tight fit or Too big for this Mac.

If a model still won't fit, Settings → Advanced has Memory override, which lets Midium use more than Apple's recommended limit. It takes effect after Midium restarts.

Past Apple's limit, macOS may swap and slow the whole Mac down. Leave Memory override off unless you need it.

A model shows "Files missing"#

Its folder was moved or deleted outside Midium.

  • If you moved it, press Locate folder… and pick the folder that holds the model's files.
  • Otherwise press Remove to take it out of Midium, then download it again from the Catalog if you want it back.

A vault won't index or search finds nothing#

The vault's card on the Vaults page shows its state: Not indexed yet, Indexing…, changes waiting to be indexed, or Index status unavailable.

  1. On the Vaults page, open Search settings. Pick an embedding model that fits your Mac and press Save. Changing the embedding model re-indexes your vaults.
  2. On the vault's card, open the ⋯ menu and choose Refresh index to pick up new or changed files.

On a team member's Mac, vault search runs on the Hub. If a banner says team vault search is keyword-only, the Hub has no embedding model running. Ask your Hub admin to load one.

The API returns 401#

Every request needs your API key in the Authorization header:

Shell
curl http://127.0.0.1:9100/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Get the key from any of these:

  • The connection pill in the title bar.
  • Copy API Key in the menu-bar icon's menu.
  • Settings → API.
  • midium key --reveal in a terminal.

Check that your app sends Bearer before the key, and that its base URL ends in /v1. See Authentication and Errors.

Port 9100 is in use#

Midium serves on port 9100.

  • If another Midium engine is already running, for example one you started with midium start, the app uses it. Nothing to fix.

  • If a different program holds the port, find it:

    Shell
    lsof -nP -iTCP:9100 -sTCP:LISTEN
    

    Quit that program, then choose Restart Engine in the menu-bar menu, or run midium restart.

midium restart won't start a second engine while the port is busy. It says Port 9100 is still in use; not starting a second engine.

The engine isn't responding#

The menu-bar menu reads Midium: Not responding, or pages can't load data.

  1. Click the menu-bar icon and choose Restart Engine. In a terminal, run midium restart.
  2. If it happens again, look at the logs (below) and send a report with Help → Report a Bug….

Web search doesn't work#

Web search needs a Brave Search API key. Without one, answers come straight from the model.

  1. Open Settings → Advanced.
  2. Paste your key into the Brave Search card and press Save. The card reads Web search enabled, and it works on the next search with no restart.

In a terminal: midium config set BRAVE_SEARCH_API_KEY <key>, then midium restart.

The midium command isn't found#

Open a new terminal window: the app adds ~/Midium/bin to your PATH for new shells. If it's still missing, choose Midium → Install Command Line Tool….

Find the logs#

  • In the app: Settings → Logs, or Help → Open Engine Log. It shows the engine's live log.

  • In a terminal:

    Shell
    midium logs -f          # follow the engine log
    midium logs -n 200      # the last 200 lines
    midium logs --errors    # full tracebacks from error.log
    
  • On disk: ~/Midium/midium.log and ~/Midium/error.log. Help → Show Midium Folder in Finder opens the folder.

Report a bug#

Choose Help → Report a Bug…. Describe what happened and what you expected, keep Attach recent logs on, add a screenshot if it helps, and press Send feedback.

Something here wrong or out of date? Tell us.