DocsRun it
Troubleshooting
Start with these three; most problems show up in one of them:
./ownwing doctor # Docker, Compose, tools, ports, disk, names
./ownwing status # every service's state, and the addresses
./ownwing logs <service> # caddy, id, files, mcp, photos, photos-ml, or an extension's service
./ownwing logs with no service follows them all. Plain docker compose … in the repo’s folder
works on the same stack too.
Installing and starting
“Docker Compose … is too old”: OwnWing needs Compose 2.24 or newer. Update Docker (or the
docker-compose-plugin package).
“Docker is installed but not answering”: start Docker (Docker Desktop on a Mac), or add your
user to the docker group and log in again.
“port 80 (or 443) is taken by something else”: another web server or proxy holds it. Stop it,
or give OwnWing other ports: ./ownwing init --http-port 8080 --https-port 8443 (every address
then carries :8443). See install.
“the people’s folder … doesn’t exist. Is its drive mounted?”: OWNWING_USERS is missing. The
stack never creates it on the fly, so a disk that didn’t mount can’t become an empty folder. Mount
the disk, or create the folder on a new install (./ownwing init does).
“the secrets aren’t made yet”: run ./ownwing init first.
“not healthy: …” or “something didn’t start”: ./ownwing up prints the last lines of each
failing service. ./ownwing logs <service> shows the rest. Common causes:
- photos refuses a library that isn’t on Btrfs: set
PHOTOS_ALLOW_NON_BTRFS=1in.envif your disk is ext4, APFS or similar (configuration). - A permission error on a data folder: the containers run as
OWNWING_UID:OWNWING_GID, which must ownOWNWING_DATAandOWNWING_USERS. Check withls -ln, and fix withchown -R <uid>:<gid>on the folder, or set the two variables to the folders’ owner. - Out of memory: Photos and its models are the hungry part. Lower
PHOTOS_MEMORY,PHOTOS_ML_MEMORYandPHOTOS_WORKERS, or leave Photos out (COMPOSE_PROFILES=core).
The first up takes a long time: every image builds from source the first time, including
Photos’ and Files’ Rust toolchains. up waits up to 15 minutes for the services to become healthy
(OWNWING_WAIT=<seconds> changes that).
Reaching the apps
The browser can’t find id.ownwing.localhost: browsers send *.localhost to this machine by
themselves; command-line tools and a few systems don’t. For curl:
curl --resolve id.ownwing.localhost:443:127.0.0.1 https://id.ownwing.localhost/. From another
device it can’t work at all: localhost is always the device itself, so use a real domain.
A real domain doesn’t resolve: point *.<domain> (or each app’s name) at the server in your DNS,
router, Pi-hole or /etc/hosts. ./ownwing doctor checks OwnWing ID’s name.
Certificate warnings: the install uses its own CA. Run ./ownwing ca and trust the root on each
device (on an iPhone, also turn it on in Certificate Trust Settings). Firefox keeps its own list:
import it there too. With Let’s Encrypt (OWNWING_ACME_EMAIL), a warning means Caddy couldn’t get
a certificate: the domain must be public and reach the machine on 80 and 443;
./ownwing logs caddy says why.
“./ownwing ca: Caddy hasn’t made its CA yet”: run ./ownwing up and open one of the addresses
once.
”… isn’t running on this server right now”: that app’s profile is off or the app is restarting.
./ownwing status shows which.
Sign-in fails after changing the HTTPS port or a host: OwnWing ID recorded the core apps’ addresses when it first started. Change each one in OwnWing ID › Apps too (extensions follow their manifests by themselves).
Accounts
The setup link is lost or expired (it lasts 15 minutes): ./ownwing setup-link makes a new one,
as long as nobody has an account yet.
Locked out, or someone forgot their passcode: a few wrong passcodes lock an account for a while, and it lifts by itself. If someone can’t sign in at all:
docker compose exec id ownwing-id recover <username>
It prints a single-use link (valid 72 hours) to choose a new passcode. Admins can do the same from OwnWing ID › People › Reset.
Photos
No search, faces, places or map: the models aren’t installed. Photos works without them; to add
them, see apps/photos/docs/operations.md (§ ML models) and
PHOTOS_MODELS.
--gpu: “there is no /dev/dri/renderD128”: the machine has no Intel GPU that Docker can use
(or its driver isn’t loaded). Run without --gpu: everything works on the CPU.
“set PHOTOS_RENDER_GID to the host’s render group id”: OWNWING_GPU=1 without the group ids.
Run ./ownwing init --gpu, or set PHOTOS_RENDER_GID from stat -c %g /dev/dri/renderD128.
Extensions
“ext add needs a terminal”: it asks you to confirm what the extension wants. Run it in a terminal,
or pass --yes once you’ve read its manifest.
“this needs jq”: install jq (apt install jq, brew install jq).
An extension’s sign-in doesn’t work after ext add: OwnWing ID reads extensions’ manifests only
as it starts; ext add and ext remove restart it when the stack is running. If it wasn’t,
./ownwing up.
Updating
“git pull didn’t fast-forward”: you have local changes or another branch checked out. Commit or
move them, then ./ownwing up --build.
Still stuck
Collect ./ownwing doctor, ./ownwing status and the failing service’s logs (remove anything
private) and open an issue. Security problems go privately: see SECURITY.md.