Zum Inhalt springen
Docs

Diese Anleitung gibt es nur auf Englisch.

Operations and troubleshooting

Run, back up, upgrade and fix a self-hosted server with vixi-ctl.

Once your server is running, one script looks after it: vixi-ctl.sh in the install folder. This page covers daily commands, backups, upgrades, and what to do when something goes wrong.

Commands

Run every command from the install folder (~/vixi by default), or call the script by its full path.

CommandWhat it does
./vixi-ctl.sh upStarts everything, or applies changed settings
./vixi-ctl.sh downStops everything, workspaces included. Data is never deleted.
./vixi-ctl.sh statusLists the services and how many workspaces are awake
./vixi-ctl.sh logs [service]Follows the logs, from the last 200 lines
./vixi-ctl.sh backup [folder]Saves the databases, files, every workspace and .env
./vixi-ctl.sh upgrade [version]Backs up, then moves to a version
./vixi-ctl.sh doctorChecks Docker, settings, signing keys, service health and workspace isolation
./vixi-ctl.sh compose …Runs docker compose with this install's settings

down gives each workspace up to 75 seconds to save its work before it stops.

Back up and restore

Shell
./vixi-ctl.sh backup

Vixi stops control, the edge and the workspaces for a moment, so the copies match each other. It saves both databases, uploaded files, every person's workspace volume and .env to ./backups/<time>, checks that the database dumps can be read, then starts again. Redis isn't saved: it only holds short-lived state.

  • A finished backup has a file called COMPLETE. Don't use one without it.
  • The backup holds every secret. Encrypt it and keep a copy away from the server.
  • Schedule it yourself, for example with cron. Vixi doesn't run backups on a timer.

To restore, follow the backup and restore guide. It restores onto an empty install of the same version. Try it on a spare machine before you need it.

Upgrade

Shell
./vixi-ctl.sh upgrade v0.2.1

Replace the version with the release you want. Without a version, it downloads the current one again.

  1. It downloads the new images first. A version that doesn't exist stops here, with no downtime.
  2. It makes a backup. If the backup fails, the upgrade stops.
  3. It changes VIXI_VERSION and the two tool volume names in .env. Every secret stays as it was.
  4. It starts the new version. Control updates the database when it starts.

Read the release notes first. A release may need newer kit files, which are in the deploy folder of that release. To go back to an older version, restore the backup the upgrade made.

Check the server

./vixi-ctl.sh doctor prints ok or FAIL for each check:

  • Docker answers, and the Compose configuration is valid.
  • .env can be read only by you (mode 600).
  • The token signing keys match each other.
  • Control, the edge, the web app and the model proxy are healthy.
  • Workspaces are isolated. It makes real connections from a throwaway workspace position and lists anything it couldn't test.

It also says which Docker runtime workspaces use. Run it after you install, upgrade, or change Docker or the kernel.

Logs

Each part of the server is a Compose service. Follow one with ./vixi-ctl.sh logs <service>:

ProblemService to check
Pages don't load, HTTPS certificate errorscaddy
Sign-in, setup, settings, connections, workspaces not startingcontrol
Chats don't stream, apps show as offlineedge
A workspace won't start because of its firewalldocker-proxy
Model errorsmodel-proxy
Document toolsfiles

Control never writes model keys to its logs. Still, check logs for personal data before you share them.

Common problems

Message or symptomWhat to do
cannot reach DockerStart Docker, and make sure your user may use it (for example, it is in the docker group).
Docker Compose 2.24 or newer is requiredUpdate Docker Compose. The Compose plugin, not the old docker-compose command, is needed.
only Linux and macOS are supportedOn Windows, run the installer inside WSL 2.
no terminal to ask questions onYou piped the installer where it can't ask. Add -s -- --non-interactive and pass the options it needs.
Vixi did not become healthy in 3 minutesRun ./vixi-ctl.sh doctor, then look at the logs of the service that fails. The first image download is slow on some connections.
JWT_PRIVATE_KEY and JWT_PUBLIC_KEYS … do not matchYour .env was edited or damaged. Restore it from a backup. The installer changes nothing in this case.
FAIL .env is readable only by youchmod 600 .env
FAIL sandboxes are isolatedNo workspace will start until this passes. Read ./vixi-ctl.sh logs docker-proxy. The kernel needs nftables, and gVisor needs Linux 5.16 or newer.
The app says there's no model, or answers failAdd a provider in the owner's Settings or in .env. See Models. If saving says the model server didn't accept it, Vixi tries again when control restarts.
Ollama doesn't answerCheck that Ollama accepts connections from Docker, that OLLAMA_MODEL is a model you have downloaded, and that the model supports tool calls.
Workspaces can't reach the gateway with gVisorA host firewall such as ufw may block containers from the host. Allow 172.17.0.0/16 to 172.17.0.1 on ports 8080, 8081, 4000 and 8700.
Apps can't connect to the serverApps need HTTPS, except on this device or a private network address. Check that https://<your-domain>/.well-known/vixi.json opens.
Changes in .env have no effectRun ./vixi-ctl.sh up. Running the installer again keeps the existing .env and ignores options that would change it.

Stop or remove Vixi

./vixi-ctl.sh down stops Vixi and keeps all data. Vixi never deletes volumes by itself. To remove everything, back up first, then delete this install's Docker volumes, networks and images with Docker's own commands, and the install folder. That can't be undone.