Skip to content

Troubleshooting

Bot checks / YouTube blocks

Symptoms: downloads fail with bot, PO token, or “sign in” style errors; previews hang; feed cards never load metadata. Download cards may show a typed label such as Bot check, PO token, or Age-restricted / private (error_kind on the job).

Checks:

  1. Is bgutil-pot running? Health → pot_provider should be ok (GET /api/health). The desktop app starts its own copy; lines from it in horde.log begin with [helper].
  2. YTDLP_POT_BASE_URL reachable from the Horde container (http://bgutil-pot:4416 in Compose).
  3. Add cookies for age-restricted or members-only videos you can watch signed-in. Horde only attaches them after that one video is blocked — not for bot checks or browsing. Status shows whether cookies are configured.
  4. Reduce bursty browsing — extracts are already serialized (1.25s spacing); avoid restarting jobs in a tight loop.
  5. Update the image / yt-dlp — extractor breakage is common when YouTube changes. Horde pins yt-dlp in backend/requirements.txt; see Bumping yt-dlp.
  6. Settings → System → Status → Last extract failure shows the most recent classified extract error (youtube.last_extract_failure on /api/health).

Download error_kind values

Kind Meaning
bot YouTube bot check
pot PO token / player challenge
cookies Age-restricted, members-only, or private — not anonymous
members Members-only
rate_limit HTTP 429 / temporary block. Caption (timedtext) 429s are retried automatically with backoff; the video file is still kept.
unavailable Removed, geo, no formats
postprocess Merge / subtitles / ffmpeg salvage or h264_convert re-encode failed, or ffmpeg is not installed (see below)
disk_full The disk ran out of space while writing. The queue holds for a while instead of failing every following job; free space, then retry. See Disk limits
network The server could not reach the site at all: no internet, DNS, a proxy or firewall, a VPN that blocks the container. The link preview answers 502.
cancelled User cancel
unknown Unclassified yt-dlp message

ffmpeg is not installed

A download that fails with "ffmpeg is not installed on the server, so the video and audio streams can't be merged" ran on a machine without ffmpeg. YouTube serves most qualities as separate video and audio streams, and yt-dlp needs ffmpeg to join them. The Docker image ships ffmpeg; this comes up in local development or a container that lacks it. Install ffmpeg on the server's PATH (for example sudo apt install ffmpeg or sudo dnf install ffmpeg-free) and retry the download.

Desktop app: logs and a server that will not start

The desktop app writes one rotating log, horde.log, with the shell's and the server's output. Open logs in the tray menu opens it; the folder is listed under Where things are kept. If the server crashes, Horde restarts it up to three times in five minutes and then shows an error with Open logs and Quit. Attach the end of the log to a bug report.

Horde stops at start and names DATA_PATH

Symptoms: the container exits right away and docker compose logs horde says the folder behind DATA_PATH contains other files and is not a Horde data folder.

At start Horde takes ownership of everything in the data folder. If DATA_PATH points at a folder that already holds other files (a parent folder, or by mistake the media folder), Horde stops without touching it.

Fix: point DATA_PATH in .env at an empty folder used only by Horde, then docker compose up -d. If the folder really is the one you mean, set HORDE_DATA_ADOPT=1 in .env once, start Horde, then remove the line.

Restart recovery

On process start Horde:

  1. Requeues download jobs left in downloading (from scratch; partials are not resumed).
  2. Restores download queue pause from download_queue_paused in app settings (pause survives restart).
  3. Requeues AI jobs left in running and channel video lists left in indexing.

A cancel that crashes before the DB write can requeue once — rare and acceptable.

Files not appearing in the library

  1. Confirm the file is under DOWNLOADS_DIR with a supported extension (.mp4, .mkv, .webm, .m4v, .mov).
  2. Intermediate names (.part, .fNNN., .norm., .compat.) are ignored until the final merge exists.
  3. Wait for the watchdog or the poll interval (SCAN_INTERVAL_SEC, default 60s).
  4. Imports may sit in needs review — open Import.
  5. Permissions: the process UID must read the file (PUID/PGID).

Permissions (PUID / PGID)

Docker entrypoint runs Horde as PUID:PGID (defaults 1000:1000) and chowns DATA_DIR. The downloads mount is not recursively chowned (host owns the media dataset).

Symptoms: cannot write downloads; empty library; “permission denied” in logs; SMB cannot read new files.

Fix: set PUID/PGID to the owner of your media dataset, recreate the container, ensure the mount is writable by that user.

Started as a non-root user instead (user: in Compose, docker run --user, or TrueNAS Apps), Horde runs as that user and ignores PUID/PGID. It cannot chown anything then: the data folder and the media folder must already belong to that user, and Horde will not start while the data folder is not writable.

First install: stack missing or image will not build

Symptoms: Dockge has no horde stack; docker compose cannot find a Dockerfile; build context is empty; update.sh says not a git repository.

Horde is installed from a git clone of this repo: the stack needs its docker-compose.yml, .env.example and update.sh together, and building from source (docker-compose.build.yml) also needs the Dockerfile, backend/ and frontend/ next to them.

Fix:

  1. Clone into Dockge’s stacks directory (or any host folder for plain Compose): git clone https://github.com/jm-connell/horde.git horde. Do not use Dockge Add Stack with only pasted YAML, and do not use a GitHub ZIP if you want later pulls.
  2. In Dockge, Scan Stacks Folder. The stack name is the folder name.
  3. Confirm Dockge’s stacks host path equals the path inside the Dockge container (TrueNAS / Dockge).
  4. Set DOWNLOADS_PATH / DATA_PATH in .env to directories you created. Both start out empty in .env.example, and Horde will not start until they are set.

Full from-zero steps: Install with Docker.

AI provider offline

Symptoms: AI status Offline / Blocked; embeds/tags show waiting (not progressing); /api/health shows ai.reachable: false and may include workers.ai_blocked_reason. Settings → System / AI → Jobs shows the blocked reason.

Waiting vs failed:

State Meaning
Waiting Jobs stay queued, attempts stay 0, provider missing/unreachable. Resume when the provider is back — no Retry needed.
Deferred Job failed once/twice and has a future run_after backoff.
Failed Terminal after 3 attempts — use Retry / Retry all under Settings → AI → Jobs.

Checks:

  1. Settings → AI → Providers → Test: it names the problem (unreachable, rejected credentials, no API at that path).
  2. From inside the Horde container, try the URL: docker exec horde curl -s <url>/models. localhost there is the Horde container; see Which URL do I type?.
  3. Bundled Ollama: docker compose --profile ai up -d and wait for it to listen on 11434. Ollama on another machine must listen on 0.0.0.0 (OLLAMA_HOST), not only localhost.
  4. Waiting for the embedding provider with a chat-only provider (Groq, DeepSeek): set a second server for embeddings, or clear the embedding model.
  5. After the provider returns, jobs claim without restarting Horde (the reachability cache is dropped on provider errors and retried every 30 s).

AI jobs fail with database is locked

Symptoms: Settings → AI → Jobs shows every embed (or tag/summary) failed with (sqlite3.OperationalError) database is locked on INSERT INTO openrouter_usage. The provider call itself often succeeded — the job dies while writing the cost ledger.

Cause: The AI worker held an uncommitted SQLite write (for example deleting old embedding rows) while a second Session tried to record OpenRouter usage.

Fix: update to a build that enables WAL and commits before the OpenRouter call, then Retry all failed jobs under Settings → AI → Jobs. Usage rows that failed to insert are skipped; embeddings/tags from a successful retry are stored.

If locks persist after that build: confirm DATA_PATH is a local dataset (not NFS), only one Horde container uses horde.db, and the UI is not stuck on a hung request.

DASH / stream preview issues

In-app watch-before-download preview resolves progressive or adaptive formats via yt-dlp. Failures often share root causes with bot checks or expired CDN URLs.

  • Retry after POT/cookies are healthy.
  • Preview refresh uses force=True on extract to bust the 180s info cache when refreshing media URLs.
  • Some sources simply lack a usable progressive format under the preview height cap.
  • Preview API errors include a structured error_kind when classification succeeds.

Streamed videos take a long time to start, or the download menu shows HTTP 429: every YouTube lookup (stream previews, feed resolution badges, metadata fills, channel video lists, Recommended) goes through one queue, one request at a time, with the video you open first in line. A request that waited more than 10 s for that queue, or ran more than 15 s, logs Slow YouTube request (<priority>): waited …s for the queue, ran …s: <url> (background requests such as listing a channel's videos log this at debug, since they wait behind everything else by design). A stream preview or download still waiting after 10 s logs YouTube queue busy: … the queue is held by a <priority> request running …s: <url>, naming what it is stuck behind even if that request never finishes. A slow first request right after a restart usually means the bgutil-pot sidecar is still warming up.

Preview plays ~40–60s then Shaka error 1001 / “Compatibility-mode preview failed”, and downloads say “Download produced no file”: YouTube started rejecting android_vr googlevideo URLs after the first minute of Range requests (Upstream returned 403). Horde no longer forces that client; yt-dlp 2026.8.19+ uses visionos instead. Rebuild so the yt-dlp pin updates (yt_dlp_version on Settings → System / /api/health should be 2026.08.19 or newer), then retry. If 403s continue, treat it as a bot check / POT problem.

A stream stops part-way and the log has Upstream rejected preview media: YouTube refused a media address that had been working. Horde fetches fresh addresses and the player reloads the stream by itself (twice, with the buffering indicator showing) before it reports "The stream stopped loading". Each rejection logs one line to read the incident from: status, the itag, the YouTube client the address was issued to, how old the address was (address_age) and the byte range asked for. It is followed by Preview media addresses refreshed in …s and, per waiting request, Preview media request got fresh addresses after …s. A rejection at a low address_age on one client every time points at that client (compare yt-dlp's release notes); Preview manifest refresh failed means the re-extraction itself failed.

Library playback fails on iPhone

Desktop Chrome can play AV1/VP9 + Opus remuxed into MP4. Safari on iPhone cannot — it needs AAC audio in MP4, and the moov atom at the start of the file. iPhone 15 Pro / Pro Max (A17) can decode AV1; the usual failure is Opus-in-MP4, not the video codec.

Horde’s default archive is AV1 + AAC in MP4 with faststart (video copied). Playing a library file on the phone remuxes an older Opus file in place the first time.

Video won't play on an iPad, older iPhone, Mac, or TV (AV1)

M1/M2 iPads and Macs in Safari, iPhones before the 15 Pro, and many TVs and older PCs have no AV1 decoder. Horde checks the file's real codec against the device when you open a video. If it can't play, it plays the H.264 copy when one exists, or shows an overlay with Create compatible copy (a ≤1080p H.264 file saved beside the original, usually a few minutes; progress is shown and it starts automatically when ready).

To avoid the overlay, set Settings → Library → Playback compatibility to AV1 + H.264 copy (new downloads get a copy automatically, and Create N copies backfills existing videos), or to an H.264 mode if no device you use can play AV1. If creating the copy fails, the overlay shows the error with Try again; on a box with no GPU encoder it can be slow (see GPU). "Try playing the original anyway" forces the AV1 file and will likely show a black or frozen picture. See Playback compatibility.

If it still fails: the source may only offer VP9 (Safari has no VP9-in-MP4). Re-download so the AV1 (or H.264) selector runs, or create a compatible copy. DevTools device mode still uses the desktop decoder and cannot reproduce this.

Stale UI after update

After pulling a new image or rebuilding the frontend, browsers may keep old hashed assets incorrectly, or service workers/cache may serve a previous shell.

Fix: hard reload — +Ctrl+Shift+R+ (Windows/Linux) or +Cmd+Shift+R+ (macOS).

If Settings → System still shows an old version, confirm the container actually restarted on the new image (horde_version / horde_sha on /api/health while signed in; docker exec horde cat /app/BUILD_INFO also shows the build).

Panels or overlays look wrong on an old browser

The interface needs Safari 16.4 / iOS 16.4, Chrome or Edge 111, or Firefox 128 or newer. Older browsers load the page but can draw translucent panels and dimmed overlays as solid fills, and may show other styling glitches.

Fix: update the browser (on an iPhone or iPad, update iOS / iPadOS).

Settings or library empty after update

Symptoms: theme/AI/video-list settings back to defaults, library looks empty, or downloads land in a different folder after bash update.sh.

That happens when the recreated container bind-mounts different host paths than before. app_settings.json and horde.db live on DATA_PATH; media lives on DOWNLOADS_PATH. Pointing those at different, empty folders looks like a reset.

Typical causes:

  1. Volume paths were edited in Dockge / docker-compose.yml instead of .env. git pull refreshes the tracked compose file and discards those edits, so the stack no longer points at your folders. (The compose file has no fallback paths: with .env empty it refuses to start rather than mount a default.)
  2. git reset --hard (or discarding local compose edits) to make git pull succeed.
  3. Clicking Deploy in Dockge after update.sh with an older compose still in the editor.

Fix:

  1. Do not recreate again until paths are correct.
  2. Confirm .env has the directories that actually hold horde.db / app_settings.json and your media.
  3. Run bash update.sh from the host stack folder (current versions snapshot live mounts into .env before pulling).
  4. Hard-refresh the browser. Appearance may still be in localStorage; AI/library settings only return if the original DATA_PATH is mounted again.

If the old data directory still exists on disk, set DATA_PATH / DOWNLOADS_PATH back to it — files were not deleted, only unmounted.

GPU: none detected

Symptoms: Settings → System → Resources GPU says None detected.

That means the horde container cannot probe a card. Horde still runs. Usual causes: no GPU passed in yet (it goes in docker-compose.override.yml, see GPU); TrueNAS isolated the GPU to another app; NVIDIA toolkit / /dev/dri missing; no GPU on the host.

Horde does not need a GPU for AV1 only or H.264 up to 1080p. See GPU for when you need one and how to pass the device in.

If the GPU name appears but Library still warns that 1440p/4K will be encoded on the CPU, ffmpeg in this image cannot use NVENC/QSV/VAAPI — that is playback compatibility encoding, not a missing device.

Wiki missing in local development

The MkDocs wiki is built in the Docker image and served at /wiki/. Local uvicorn without a wiki build reports:

"wiki_available": false

on /api/health.

Fix: run ./start.sh (or scripts/dev.sh / scripts/dev.ps1) — it installs mkdocs-material from requirements-dev.txt and builds into backend/static/wiki/ when missing or stale. Use SKIP_WIKI=1 only if you intentionally want to skip that step. Manual rebuild: mkdocs build -d backend/static/wiki --strict from the repo root. See Local development.