Troubleshooting
Most problems come from one of two causes: YouTube refusing the gateway, or the browser reaching the server at a different address than the server expects.
Where to look
Section titled “Where to look”docker compose ps # both services should be healthydocker compose logs --tail 200 gateway # YouTube errors, transport fallbacksdocker compose logs --tail 200 app # sign-in, database, background refreshSet LOG_LEVEL=debug on the app for more detail.
Server
Section titled “Server”The app container never starts. It waits for the gateway to be healthy. Check the gateway logs: a missing GATEWAY_SIGNING_KEY, or one shorter than 32 characters, stops it at start-up.
Gateway logs permission errors on /data. A bind-mounted gateway directory must belong to uid 1000: chown -R 1000:1000 /path/to/gateway.
Sign-in redirects to localhost or the wrong host. Set AUTH_URL to the address you open in the browser, and AUTH_TRUST_HOST=true.
Playback
Section titled “Playback”“Sign in to confirm you’re not a bot”. YouTube is challenging the server’s address. Work through When YouTube blocks the server.
Playback stops after about a minute. YouTube revoked the stream URL. Set GATEWAY_TRANSPORT=sabr.
Seeking stalls behind a reverse proxy. The proxy buffers responses. Turn buffering off for /media/ and allow long read timeouts; see Reverse proxy.
The video plays, captions don’t. Captions are served under /media/ too. Route all of /media/* to the gateway, not only segments.
Feeds and recommendations
Section titled “Feeds and recommendations”New uploads take a while to show up. Without the public feeds server, they arrive with the next background refresh, every 15 minutes by default. See WebSub push.
Recommendations look like trending. The account has little history yet. Watch, like or save some videos, or import your Takeout history.
The TV says no OwnTube answers at the address. Enter the full address with scheme and port, such as http://192.168.1.10:3000, and check that the TV is on a network that reaches the server.
The iPhone app shows a blank page away from home. The server is only reachable on your home network. Use HTTPS on a domain or a VPN.
Reporting a bug
Section titled “Reporting a bug”Open an issue on GitHub with the commit you run (git rev-parse --short HEAD), the client (browser, TV or iPhone) and the relevant log lines. Report security issues privately, as described in SECURITY.md.