Troubleshooting
Start by looking at what is running and what it logged:
docker compose --env-file .env -f compose.yml ps
docker compose --env-file .env -f compose.yml logs genfeed
docker compose --env-file .env -f compose.yml logs postgresDebian 13: Docker Compose v2
Debian 13 provides Compose v2 in its
docker-compose package.
If docker compose is missing and you use Debian’s Docker packages, install:
sudo apt-get update
sudo apt-get install docker-compose
docker compose versionWith Docker CE, install docker-compose-plugin from Docker’s apt repository
instead. Set up that repository by following Docker’s
Debian install guide , then:
sudo apt-get install docker-compose-plugin
docker compose versionGenfeed uses the docker compose command (with a space). Check the reported
version rather than inferring it from the package or executable name.
P1001: Can't reach database server at postgres:5432
This error means the Genfeed container could not open a connection to the
postgres container over the Compose network. Check these in order:
-
Confirm PostgreSQL is running and healthy with the
psandlogs postgrescommands above. -
Container networking. Genfeed reaches PostgreSQL by the hostname
postgreson the Compose network. Check that both containers are on the same network and that you did not overridePOSTGRES_HOSTorDATABASE_URLwith a value that does not resolve from inside the container. -
Firewall. A host firewall (for example ufw, firewalld, or custom nftables rules) that blocks traffic between containers on Docker’s bridge network prevents
genfeedfrom reachingpostgres. -
FORWARDpolicy. If theiptablesornftablesFORWARDchain policy isDROPand Docker’s own forwarding rules are missing, container traffic is dropped:sudo iptables -S FORWARDRestart Docker after changing firewall rules so it can recreate its rules, then recreate the stack with
docker compose --env-file .env -f compose.yml up -d.
Rootless Docker and user-namespace setups can also change container networking. See Docker’s packet filtering and firewalls documentation.
A port is already in use
Genfeed publishes 3000, 3010, 3011, and 3014 (3010 and 3011 on localhost only). If another program uses one, either
stop it or move Genfeed to different host ports in .env:
SELFHOSTED_APP_PORT=3100
SELFHOSTED_API_PORT=3110
SELFHOSTED_WS_PORT=3111
SELFHOSTED_MCP_PORT=3114Recreate the stack afterwards. If you change the web or API port, also update the public URLs; see Configuration. For a different WebSocket port, also configure a proxy or rebuild the browser endpoint as described in Image and ports.
npx @genfeedai/create fails on Node.js
@genfeedai/create requires Node.js 24 or newer (>=24). Check with node --version.
Install Node.js 24 or newer, or skip Node entirely and use the
release bundle.
This is separate from @genfeedai/cli, which needs Node.js 24 or newer.
Container exits: OpenRouter key is required
Since v0.2.15, OPENROUTER_API_KEY must be set before any services start. If the
container logs OPENROUTER_API_KEY is required and must contain a non-placeholder OpenRouter key, set a real key in .env next to compose.yml, then recreate
the stack:
docker compose --env-file .env -f compose.yml up -dThe wizard asks for the key during installation. A key saved later inside the app cannot replace this startup setting. Startup validates the key’s format; a successful boot does not prove provider balance or model access.
Missing provider key
Symptom: the first chat, agent run, or draft fails with
Missing provider key: OPENROUTER_API_KEY. The API returns HTTP 503 with
code: "missing_provider_key", and agent flows show “AI provider not connected”.
Cause: text generation routes through OpenRouter, and the key is not set.
OPENROUTER_API_KEY starts blank in .env.example. An OpenAI or Anthropic
key does not replace it, because those keys only serve openai/* and
anthropic/* models and branded drafts are OpenRouter-only.
Fix:
-
Create a key at openrouter.ai/keys and add credits.
-
In
.env, setOPENROUTER_API_KEYto the real key. This is required at startup. Once the instance is running, you can also save keys per organization under Organization settings → Integrations for supported generation paths. -
Recreate the stack, because
restartdoes not re-read.env:docker compose --env-file .env -f compose.yml up -d -
Run the same generation again. The failed attempt was rejected before any work started, so nothing needs cleaning up.
The same message can name OPENAI_API_KEY or ANTHROPIC_API_KEY: set that key,
or choose a model that routes through OpenRouter. See
Provider API keys.
Generation does nothing or fails
Read the error first. If it says Missing provider key, follow the section
above. Otherwise, add the key for the provider behind the model you chose
(Replicate or fal for media, ElevenLabs for voice), recreate the stack, and try a
small request. Self-hosting has no Genfeed credits. Then check the provider’s
dashboard for balance and model access, and read the container logs.
If a running instance reports OPENROUTER_API_KEY is not configured, check the
key in .env and recreate the stack. Text generation and the agent use
OpenRouter. Empty or placeholder keys stop container startup on v0.2.15 and
later; see the startup error.
Settings also validates each key with the provider before saving it; a
placeholder shows “Invalid … API key”.
The Community image does not start GPU or local-model services. Every model it offers runs through a hosted provider, so check that provider’s key above.
I cannot sign up or sign in
- No sign-up form, and no login page at all. If you set
BETTER_AUTH_ENABLED=false, there is no login wall: you are already the seeded local user. Nothing to fix. - There is no Magic Link option. Magic Link needs
RESEND_API_KEY, so it is hidden until you set one. Sign up with Email & password at/sign-upinstead. Google sign-in works only with bothGOOGLE_OAUTH_CLIENT_IDandGOOGLE_OAUTH_CLIENT_SECRETconfigured. On v0.2.15, the Google button may appear even when those credentials are missing; use email/password instead. See Create the first user. - The login wall does not appear after you enabled it. Set
BETTER_AUTH_ENABLED=true(and, if you set it,NEXT_PUBLIC_BETTER_AUTH_ENABLEDto match), then recreate the stack. A plain restart does not re-read.env. - Sign-in fails behind a domain. Set
BETTER_AUTH_URLto your public API URL andBETTER_AUTH_TRUSTED_ORIGINSto your public app URL, then recreate the stack. See Reverse proxy and HTTPS. - A new account is empty. Each signup gets its own organization and brand,
separate from the seeded
defaultworkspace.
I am logged out after a restart
Sessions are signed with BETTER_AUTH_SECRET. Left empty, the container
generates one and keeps it in /data/.better-auth-secret on the genfeed_data
volume. If you are logged out after every restart, that volume is not persisting:
check that you did not run docker compose down -v, change the project name, or
remove the volume. If you set BETTER_AUTH_SECRET yourself, make sure the value
is identical on every start.
Back up and reset
Back up both volumes, postgres_data and genfeed_data. genfeed_data holds
/data/.encryption-key (or whatever you set as TOKEN_ENCRYPTION_KEY). Stored
provider and channel credentials cannot be decrypted without it, so keep a copy
of that key with your database backups.
To start over from a clean state:
docker compose --env-file .env -f compose.yml down -v
docker compose --env-file .env -f compose.yml up -ddown -v deletes the database, generated files, and generated secrets. There is
no undo.
Email is not sending
Magic links, password resets, verification emails, and invites are sent through
Resend. Set RESEND_API_KEY (and RESEND_FROM_EMAIL for a sender you have
verified with Resend), recreate the stack, and check
docker compose --env-file .env -f compose.yml logs genfeed for delivery errors.
Email and password sign-in needs no mail provider. Email verification is
enforced only when Resend is configured and verification is switched on.
The disk is full
Plan for at least 15 GB free for installation, plus additional space for media, backups, and upgrades. The v0.2.15 report records a 9.15 GB uncompressed application image plus a 631 MB PostgreSQL image, before persistent data grows. See System requirements for the basis of this guidance. Check where the space went:
docker system df
docker compose --env-file .env -f compose.yml exec genfeed du -sh /data/filesRemove unused images with docker image prune after an upgrade. Do not run
docker volume prune unless you have a backup, because it removes the volumes
of stopped stacks.
Apple Silicon
The image is linux/amd64. On Apple Silicon, Docker Desktop runs it under
emulation, which is slower to start and to run. If the container exits at once or
the health check keeps failing, give Docker Desktop more CPU and memory in its
settings, and allow extra time on first start.
The web UI loads but nothing works behind my domain
The published image defaults its browser-facing settings to localhost. Set the
public URL variables described in
Reverse proxy and HTTPS, recreate the stack, and
confirm in your browser’s network tools that requests go to your API address.
The API returns 401 from another machine
With the login wall off, the API only accepts tokenless requests from the
machine itself and the Docker network. Calls from another computer, or through a
reverse proxy that forwards the client address, get 401. Either create an API
key and send it as Authorization: Bearer gf_..., or turn on the
login wall and sign in. If your proxy
sets X-Forwarded-For, name it in TRUST_PROXY as described in
Reverse proxy and HTTPS.
With the login wall on (BETTER_AUTH_ENABLED=true), every API request needs a
valid token, including requests from the same machine. Public routes such as
the health check stay open.
MCP returns 401
Turning off the login wall does not turn off MCP authentication. Register the client as described in MCP server, or use a scoped API key.
The health check passes but something is broken
curl http://localhost:3010/v1/health reports only that the API process
responds. It does not test the database, queues, providers, or workflows. Use
the logs to look further.
Reporting a problem
Use the bug report form for reproducible defects, and include your release version and the relevant log lines, with secrets removed. The public tracker does not provide a support SLA. Report suspected vulnerabilities through the security policy , not a public issue.