Skip to content
CookDex docs

Troubleshooting CookDex

For anything not listed here, start with the container log: docker compose logs cookdex.

Problem Fix
Weak master key warning Set a stronger MO_WEBUI_MASTER_KEY in .env, or let CookDex auto-generate one. See how secrets are stored.
401 on login (cookie not sticking) Set WEB_COOKIE_SECURE=false in .env
Port already in use Set WEB_BIND_PORT=4821 in .env
“Your session ended. Sign in again to carry on.” Your sign-in expired, or you signed out somewhere else. CookDex shows the sign-in screen; sign in again and carry on. Jobs that were running keep running.
The setup page says the setup code isn’t right Copy the newest code from the bottom of the CookDex log. The code changes each time CookDex restarts. See Setup code.
Problem Fix
Test Mealie fails with localhost Inside the CookDex container, localhost is the container itself. If CookDex and Mealie share a Docker network, use the Mealie service name, such as http://mealie:9000. See Getting started.
Settings forgot the Mealie token after you changed the address CookDex only sends a saved token to the address it was saved with. Enter the token again with the new address. The same goes for the AI helper’s API key when you change its service or address.
A run lists “Couldn’t use the database, so this run used Mealie’s API instead: …” under Worth a look, or Settings says “A job couldn’t use the database” The job finished through Mealie’s API, only slower. The text after the colon is the reason: a login that was refused, a key file CookDex can’t read, or a host that didn’t answer. Fix that, then click Test connection in Settings → Faster database access; the note goes away once it works. See When a job can’t use the database.
“The SSH host’s key changed since CookDex first trusted it” The Mealie machine is showing a different SSH key from the one CookDex trusted, so CookDex won’t connect to it. If you rebuilt that machine or changed its SSH keys, delete its line from ./cache/webui/known_hosts and click Find and save over SSH (the message calls it Detect) or Test connection. If you changed nothing, don’t connect until you know why. See The Mealie host’s SSH key.
Settings won’t save: “… must be a whole number from 1 to 32”, “URL must use http or https”, “URL must include a hostname” or “… must be one of: …” That value is one jobs couldn’t use, so it isn’t saved. The message names the setting and what it accepts; correct it and save again. See Runtime settings.
A note in Settings says CookDex saved MEALIE_BASE_URL or MEALIE_API_TOKEN Nothing is wrong. CookDex copied the old names from your compose file into Settings. Delete those lines from the compose file when you like, and click Got it. See Updating from 2026.11.4 to 2026.12.1.
Problem Fix
Test connection fails with Gemini, OpenRouter, LiteLLM, vLLM or LM Studio Pick the right Service, or for another service enter its OpenAI-compatible base address, often ending in /v1. Enter a key even if the gateway doesn’t check one, then choose a model with Load models. See OpenAI or a compatible service.
Problem Fix
Tools shows no jobs Ensure the server started without errors; check the container log with docker compose logs cookdex
Adding a Discover source fails The message says what the site answered, such as “This site refused CookDex” or “Nothing was found at this address”. See Sources.
A run says Finished with a warning It finished but didn’t fully succeed. Open it from Recent activity for the reason. See Run details.
An automation’s card says “Its approval to change Mealie was withdrawn, so it won’t run on its own.” Its steps or settings changed after an owner approved it. An owner opens Edit, saves it and clicks Allow. See Approval.
An automation’s card says CookDex changed or slowed it CookDex adjusted it while updating to 2026.12.1. See After updating to 2026.12.1.
“Run at most every 5 minutes.” An automation or schedule can’t run more often than that. Choose 5 minutes or longer.
Scheduled Discover runs are skipped An owner hasn’t accepted Discover’s responsible-use terms yet. Accept them on the Discover page. See Accepting the terms.
A job says “Waiting for … to finish” Another long job is running; long jobs go one at a time. It starts when that one finishes, or click Stop to cancel it. See When jobs wait.
Mealie slows down while jobs run, or CookDex’s pages load slowly during a long job Lower Requests to Mealie at once (it counts page loads as well as jobs; a page waits at most 2 seconds for a turn) in Settings → Updates and runs (under 1 more setting). See Requests to Mealie.
A backup times out on a large library Raise Wait for a Mealie backup (minutes) in Settings → Updates and runs. The default is 30.
Link ingredients stopped: “Mealie’s parser didn’t answer for 5 recipes in a row” Mealie was too busy or unreachable. Check Mealie, then run it again; the recipes it didn’t reach are tried again. See When Mealie doesn’t answer.
Organize stopped: “Mealie isn’t answering” The changes it didn’t try stay staged. Apply them again once Mealie answers.
“A cookbook filter couldn’t be checked” A cookbook’s filter uses something CookDex can’t read, so entries it might name are kept. Since 2026.10.2 this no longer happens for Mealie 3.29’s total-time and “has no value” filters. See Cookbook filters.

Confirm you can log in and check https://localhost:4820/cookdex/api/v1/health. Updating from 2026.11.4 to 2026.12.1 needs no changes from you; Install lists what CookDex does on the first start.

  • The Help page inside CookDex links to these docs, and Make a report there builds a report to attach to an issue. Settings show only as set or not set, never their values, but the recent server log is included as it is, so read it before you post.
  • Bugs and feature requests: open an issue.