Skip to content

Running without a keyboard

How the Unraid host brings Novak back after a reboot or a power cut with nobody there, and what to check so you find out before the first real outage. This is the reference deployment. If you run Novak on a Mac, the macOS version of this, which has a FileVault problem Unraid doesn’t, is in macos.md.

Four things have to be true after a power cut, and each one is a separate setting:

  1. The array starts by itself. Unraid doesn’t run Docker until the array is up. In Settings, Disk Settings, “Enable auto start” should be on. The checklist reads startArray in /boot/config/disk.cfg to confirm it.
  2. The Docker service starts by itself. Settings, Docker, “Enable Docker” and its autostart both on.
  3. The containers restart themselves. Every service in docker-compose.yml has restart: unless-stopped, so the Docker daemon brings the whole stack back once it is running. On the reference host that is all it takes: a cold boot starts everything with no help from the Compose Manager plugin, which no longer lists the stack. The plugin keeps a per-project autostart flag, and novak checklist still reads it ($NOVAK_HOME/autostart), but you don’t need it if you don’t use the plugin.
  4. The novak command comes back. Unraid’s / and /usr are rebuilt in memory from the flash drive at every boot, so a symlink in /usr/local/bin disappears at the next reboot. bootstrap-unraid.sh adds a line to /boot/config/go that recreates it. Without that line the stack still runs but you have no CLI after a restart.

Unraid’s Tailscale plugin runs system-wide, so there is no per-user trap to avoid. Two things are still worth setting. Tag the node, because a node authenticated by a person’s key stops working when that key expires (180 days by default) and the host silently leaves the tailnet, which is exactly when nobody is there to sign in again. Then check tailscale status --json for the tag and for no key expiry.

Most of the stack is meant to be reachable only over Tailscale. On the reference host the router, Ollama, the persona server, ingest, the gateway and the Brave search server are bound to the host’s Tailscale address, and Hindsight listens on localhost only. Open WebUI, the console and the wake word service are on every interface. The bind addresses are .env settings (ROUTER_BIND, OLLAMA_BIND, PERSONA_BIND, INGEST_BIND, GATEWAY_BIND and so on), and novak ports shows what is actually listening and who can reach it.

  • A UPS with its data cable connected to Unraid. Set it up under Settings, UPS Settings, so the array is stopped cleanly. An unclean shutdown forces a parity check, which slows everything for hours.
  • Out-of-band access. The reference host has a network KVM, so you can reach it when the operating system is down. If your board has IPMI, that does the same job. Put the KVM and the network gear on the UPS before the host, because a host that lost power is recoverable remotely and one you cannot reach is not.
  • No disk encryption trade-off. Unraid doesn’t encrypt the array by default, so nothing waits for a password at boot. If you add encryption, you give that up and need a plan for typing the key.
Path What Who owns it
$NOVAK_HOME (on the reference host, a folder on the cache pool) .env, secrets.env, registry, data/, models/, wake word files You. Config and data.
$NOVAK_HOME/repo/novak This repository git. Replaceable and never written to at runtime.
/boot/config/novak/novak_home The one line that says where $NOVAK_HOME is bootstrap-unraid.sh
Docker volumes and bind mounts Memories, chat history, Postgres Docker

.env is readable on screen, with no secret values in it. Secrets are in secrets.env next to it, mode 600. That is a lower bar than a macOS Keychain, because there is no logged-in session to unlock anything, and it is the reason file permissions are checked by novak secret verify.

Backups for the whole host run outside Novak, and they need to include these. Everything is under $NOVAK_HOME except the gateway’s volume.

What Where Notes
Settings and secrets .env, secrets.env secrets.env holds every key in plain text, so the backup target has to be encrypted.
The registry registry/ (including registry/profiles/) People, who can use which service, prompts for each person. Small, and the hardest thing to rebuild from memory.
Memory data/hindsight/ An embedded Postgres database, so copy it from a snapshot or with the stack stopped, not while it writes.
Chats and settings in Open WebUI data/open-webui/ A SQLite database plus uploads, with the same warning about copying it while it runs.
Ingest data/ingest/ Recordings and the work queue, also SQLite.
Gateway audit and approvals Docker volume novak_gateway-data Small. Without it you lose the record of who did what.

Leave out models/ (Ollama and speech models, tens of gigabytes, downloaded again on demand), repo/ (it is git), and the dated .bak copies. Keeping one old copy of .env and the registry is worth it. The Docker volume novak_open-webui looks like a leftover from before Open WebUI moved to a bind mount, so confirm it is unused (VERIFY) before deciding whether it matters.

Do this on purpose, while you have time to fix what it finds. On the reference host, a cold boot with no Compose Manager involvement brings everything up without a manual step. That is the owner’s observation on the stack as it runs today, so use these steps to check your own host:

  1. Run novak status and note what is running.
  2. Reboot from the Unraid web UI (Main, then Reboot), or pull the plug if you want the real thing.
  3. Without touching anything, wait for the array, then run novak status.
  4. Everything should be running with no restart loops. If novak is not found, the /boot/config/go line is missing: run scripts/bootstrap-unraid.sh again.
  5. Check that a chat in Open WebUI works and that a voice request still gets an answer. The first reply after a boot is slower because the model has to load.
Read For
deploy-checklist.md The whole setup, phase by phase, including Phase 10 and 11 which this page expands
security.md What each secret protects and where it is stored
ollama-settings.md How long models stay in memory and why
macos.md The same problem on a Mac, where disk encryption changes the answer