Read the logs
Run zerodot logs (see zerodot CLI):
zerodot logs
To delete old logs on an install, run zerodot clear-logs.
Docker mode:
cd /var/www/zerodot
docker compose ps
docker compose logs --tail 100 api
docker compose logs -f
Native mode:
systemctl status zerodot-web zerodot-api zerodot-worker zerodot-sandbox
journalctl -u zerodot-api -n 100
journalctl -u zerodot-api -u zerodot-web -f
Use the name of your instance in place of zerodot.
The installer log:
sudo cat /var/log/zerodot-install.log
On macOS, the log is ~/Library/Logs/zerodot-install.log. On Windows, install.ps1 writes to the terminal only.
Check the server
For an install on the server, run read-only health checks with zerodot doctor (see zerodot CLI):
zerodot doctor
Before or during an install, run install.sh --check:
bash install.sh --check
It changes nothing. It shows problems (✘), warnings (!) and tips.
The proxy shows 502
The proxy cannot reach the app.
Check that the app answers:
curl -sI http://127.0.0.1:3000/It must show
307withLocation: /sign-in. Use the port of your install.If it does not answer, read the logs (see above).
Check the port in the proxy. Docker mode: the port is in
docker-compose.override.yml. Native mode: the ports are in.zerodot-install.Fedora and RHEL: SELinux stops nginx. Run
sudo setsebool -P httpd_can_network_connect 1.A proxy in Docker cannot reach
127.0.0.1on the server. See A proxy in Docker.
Live updates stop or come late
The editor shows the progress of a run with server-sent events. If the proxy buffers the response, the events come late or never.
- Caddy: keep
flush_interval -1. - nginx: set
proxy_buffering off;andproxy_read_timeout 1h;. - Other proxies: turn off response buffering.
Redirect loop
The DNS record uses the Cloudflare proxy with the SSL mode Flexible. Set the mode to Full (strict). See Cloudflare proxy.
Error 525 from Cloudflare
The server has no certificate yet. Set the DNS record to DNS only, let Caddy or certbot get the certificate, then turn the proxy on again.
Caddy reload fails
Validate the file:
sudo caddy validate --config /etc/caddy/CaddyfileIf the Caddyfile has a
logdirective with a file, the file must belong to thecaddyuser:sudo chown caddy:caddy /var/log/caddy/zerodot.logRead the log of Caddy:
journalctl -u caddy -n 50
The containers cannot reach Postgres on the server
The installer stops with "The containers cannot reach postgres". Check these items:
Postgres listens on the bridge address:
sudo -u postgres psql -Atc 'show listen_addresses' ss -ltn 'sport = :5432'pg_hba.confhas ahostline for the Docker network of the install, before the other rules.The firewall lets the network reach port 5432.
Postgres starts after Docker at boot. Else it cannot listen on the bridge address.
See Postgres and Valkey on the server.
Valkey refuses the containers (-DENIED)
Valkey runs in protected mode and has no password. The script asks to turn protected mode off before it starts. If you said no, or changed the setting later, give Valkey a password and set VALKEY_URL, or turn protected mode off. See Protected mode.
Valkey bind cannot change (Redis 6)
Redis 6 cannot change bind while it runs. Add the bridge address to bind in its config file, restart Redis, and run the script again.
File nodes fail with EACCES
A node that writes a file fails with EACCES: permission denied, mkdir '/blobs/<run id>'. An install from before the fix has a blob-data volume that belongs to root. Change the owner one time:
cd /var/www/zerodot
docker compose run --rm --user root web chown -R node:node /blobs
docker compose up -d
If you mount a folder of the server for /blobs, Docker does not set its owner. Run this on the server:
sudo chown -R 1000:1000 <folder>
At start, web and worker log blobs.not_writable when ZERODOT_BLOB_DIR is not writable.
pacman shows 404 or "not found"
The package lists on the server are old. The script never runs pacman -Sy, because a sync without an upgrade breaks Arch. Do a full upgrade, then run the script again:
sudo pacman -Syu
docker is Podman
The script shows "'docker' is Podman (podman-docker)". Zerodot needs Docker Engine. Do one of these:
- Use native mode (
--native). - Remove
podman-dockerand install Docker CE. See Manual install with Docker.
The build stops (low memory)
The build of native mode, and a Docker build on the server, need about 4 GB of RAM. When memory is low, the kernel stops the build. Check for this:
free -m
sudo dmesg | grep -i oom
Do one of these:
- Add swap. See Manual install with Docker.
- Use Docker mode. It pulls the images and does not build.
Failed to load environment files: Permission denied
Native mode on Fedora or RHEL: the services do not start, and journalctl -u zerodot-api shows Failed to load environment files: Permission denied. SELinux stops systemd from reading .env, because the file has the label var_t. Check the label:
ls -Z /var/www/zerodot/.env
Give it the label etc_t, then restart the services:
sudo dnf install -y policycoreutils-python-utils
sudo semanage fcontext -a -t etc_t '/var/www/zerodot/\.env'
sudo restorecon -v /var/www/zerodot/.env
sudo systemctl restart zerodot-sandbox zerodot-api zerodot-worker zerodot-web
A new run of the install script does the same.
isolated-vm does not compile (GCC 13 or newer)
Native mode: pnpm install stops in isolated-vm with an error like 'uint32_t' was not declared in this scope. New GCC versions (13 and newer, for example GCC 16 on Fedora 44) do not include <cstdint> for you. Set this flag, then run pnpm install again:
export CXXFLAGS="-include cstdint"
sudo env PATH="$PATH" CXXFLAGS="$CXXFLAGS" pnpm install --frozen-lockfile
The install script sets this flag itself. Docker mode does not build, so it does not have this problem.
Docker is installed but does not answer
The script does not start Docker. A start of Docker also starts all other containers. Start it yourself, then run the script again:
sudo systemctl start docker
Another run is active
The script shows "Another run of install.sh is active". Wait for the other run to finish. The lock is /run/zerodot-install.lock.
An update stops: no .env
The install folder has no .env. Put back the old .env from a backup. A new .env has new keys, and the saved credentials cannot be opened with them.
An old Docker volume
The script shows "Docker volume NAME_postgres-data is from an old install". The volume holds a database with another password. Do one of these:
- Put the old
.envin the install folder. - Pick another
--name. - Delete the old data:
docker volume rm NAME_postgres-data. This cannot be undone.
Sign-in fails
- The address must use HTTPS. Sign-in cookies need it.
ZERODOT_BASE_URLin.envmust be the address in the browser.- Native mode:
vite previewrefuses aHostheader that is not inZERODOT_BASE_URLorZERODOT_TRUSTED_ORIGINS. The proxy must keep theHostheader.