OwnTube

Troubleshooting

Most problems are either the gateway being refused by YouTube or the browser reaching the server under a different address than the server expects.

Where to look

docker compose ps                       # both services should be healthy
docker compose logs --tail 200 gateway  # YouTube errors, transport fallbacks
docker compose logs --tail 200 app      # sign-in, database, background refresh

Set LOG_LEVEL=debug on the app for more detail.

Common problems

SymptomCause and fix
The app container never startsIt waits for the gateway to be healthy. Check the gateway logs; a missing or short GATEWAY_SIGNING_KEY stops it at start-up.
Videos fail with "Sign in to confirm you're not a bot"YouTube is challenging the server's IP address. Use IPv4 (GATEWAY_EGRESS_FAMILY=ipv4), lower the background refresh (OWNTUBE_WARM_INTERVAL_SEC), enable the PO-token browser, or route the gateway through a different address with GATEWAY_PROXY_URL. Datacenter addresses are challenged far more often than home connections.
Playback stops after about a minuteYouTube revoked the stream URL. Set GATEWAY_TRANSPORT=sabr so the gateway streams with SABR from the start.
Signing in redirects to localhost or the wrong hostSet AUTH_URL to the address you open in the browser and AUTH_TRUST_HOST=true.
Seeking stalls or media requests fail behind a proxyThe proxy buffers responses. Turn buffering off for /media/ (see Reverse proxy) and allow long read timeouts.
Video plays, captions don'tCaptions are also served under /media/. Check that the proxy routes all of /media/* to the gateway, not just segments.
Gateway logs permission errors on /dataA bind-mounted gateway directory must be owned by uid 1000: chown -R 1000:1000 /path/to/gateway.
Subscriptions are slow to show new videosWithout the public feeds server, new uploads arrive with the next background refresh (every 15 minutes by default). See WebSub push.
The TV app says no OwnTube answers at the addressUse the full address with scheme and port, e.g. http://192.168.1.10:3000, and check that the TV can reach that network.
Recommendations look like trendingThe account has little history yet. Watch, like or save a few videos, or import your Takeout history.

Reporting a bug

Open an issue on GitHub with the OwnTube commit (git rev-parse --short HEAD), the client (browser, TV or iPhone), and the relevant lines from the logs. Report security issues privately as described in SECURITY.md.