Skip to content
Documentation
v0.1.6
Tally docsOperate

Services & maintenance

Run lifecycle commands as the user who installed Tally. Starting Tally starts its private databases first; stopping Tally stops the application and both private databases. Container and external databases have separate lifecycles. For a container deployment, see Docker or Apple container.

Linux services#

Terminal
systemctl --user start tally-server
systemctl --user stop tally-server
systemctl --user restart tally-server
systemctl --user status tally-server
journalctl --user -u tally-server -f

One tally-server service owns Tally and its private databases. For startup before login and operation after logout, an administrator may enable lingering:

Terminal
sudo loginctl enable-linger "$USER"

The installer does not enable lingering automatically. A working systemd user manager is required when registering services.

macOS services#

Terminal
# Stop
launchctl bootout "gui/$(id -u)/ai.godel.tally.server"
# Start after stopping
launchctl bootstrap "gui/$(id -u)" \
  "$HOME/Library/LaunchAgents/ai.godel.tally.server.plist"
# To restart, run Stop followed by Start above
# Status and logs
launchctl print "gui/$(id -u)/ai.godel.tally.server"
tail -f "$HOME/.godel-tally/data/server.log"

The single Tally LaunchAgent starts at login and owns its private databases. A normal stop lets the application finish before shutting down ClickHouse and PostgreSQL. Their logs are postgres.log and clickhouse.log in the configured data directory.

Private database startup and recovery#

Tally waits until both private databases accept authenticated queries before starting the application. It checks child processes continuously and queries the databases every five seconds. If a database exits or fails three consecutive health checks, Tally stops the application and remaining database. The user service manager restarts the stack; a manual stop keeps it stopped.

A port already in use produces an error; Tally never adopts another database on that port. Data remains on disk through stops and restarts. Inspect the application log plus postgres.log and clickhouse.log in your data folder if startup repeatedly fails.

With --no-service, use the manual launcher:

Terminal
bash ~/.godel-tally/app/tally.sh

Keep that terminal open and press Ctrl+C to stop the whole stack. Manual sessions report failures and exit; they do not automatically restart. Use the installed service for automatic recovery.

Updates and backups#

Back up PostgreSQL, ClickHouse, and the protected configuration directory before updating. Preserve TALLY_SECRET_KEY with your backup; a database restore alone cannot decrypt credentials without it. Keep backups outside the managed database directories.

Rerun the current installer to download the latest release. It preserves saved settings, credentials, and database data. Omit --port to retain the saved port, or supply it to change the application port.

Terminal
curl -fsSL \
  https://raw.githubusercontent.com/godellabs-ai/godel-tally/main/install.sh \
  -o install-tally.sh &&   bash install-tally.sh

Older native installations are switched from separate database services to the single supervised Tally service. System packages are retained. Existing PostgreSQL 18 data can be reused; an older major version requires an explicit backup and migration first. The installer refuses that upgrade before replacing the application. Migrations run on startup. Do not delete migration ledgers to bypass checksum or version errors. A binary downgrade does not reverse database migrations. Use a tested, consistent restore when rollback requires reverting a schema.

Uninstall Tally#

Terminal
curl -fsSL \
  https://raw.githubusercontent.com/godellabs-ai/godel-tally/main/uninstall.sh \
  -o uninstall-tally.sh && \
  bash uninstall-tally.sh

Normal uninstall removes known application files and Tally's user services, and stops owned database containers. It keeps configuration, credentials, certificates, database data, downloaded runtimes, legacy packages, containers, and volumes so you can reinstall.

The uninstaller stops the Tally service and waits for it to shut down its private databases. This usually takes a few seconds and is limited to 95 seconds. If you started Tally with the manual launcher, press Ctrl+C in that terminal before uninstalling.

Preview without changes:

Terminal
bash uninstall-tally.sh --dry-run

A local copy is also installed at ~/.godel-tally/app/uninstall.sh. For a custom configuration path, use TALLY_CONFIG_DIR=/absolute/config/path bash uninstall-tally.sh.

Also remove managed databases and data#

Terminal
# Preview database cleanup
bash uninstall-tally.sh --remove-databases --dry-run
# Uninstall Tally and remove its managed databases
bash uninstall-tally.sh --remove-databases

The option removes private PostgreSQL/ClickHouse data and downloaded runtimes, owned database containers, volumes recorded as created by this installation, and any recorded legacy database packages. Private downloads never need sudo. Removing packages from a legacy Linux installation may request sudo. Shared dependencies are not automatically removed.

Configuration, credentials, TLS certificates, logs, and backups outside the private database directories remain. You can run this option after an ordinary uninstall. Docker or Apple container must be available to remove their resources.

Older installations without ownership records retain their packages and unrecorded volumes. The script reports these retained resources instead of guessing whether they belong to Tally. A database configured as existing is never removed.

Troubleshooting#

  • Installation stopped: inspect the reported stage and logs, fix the cause, and rerun the installer. Saved secrets make retries safe.
  • Database download is slow or keeps stopping: the progress line shows how much has arrived and the current speed. Rerun the installer to resume, including after the computer sleeps or the network drops. Behind a firewall or proxy, allow HTTPS to github.com, release-assets.githubusercontent.com, and, on Linux, packages.clickhouse.com. To skip these downloads, use existing databases or install with Docker.
  • Port in use: choose a free port with --port; use the printed URL afterward.
  • Cannot sign in: use the configured HTTPS origin consistently. Check readiness and server logs. Successful registration creates an account even if the subsequent session check fails; sign in with that account instead of registering again.
  • Missing or stale source data: check the connector's latest run, permissions, scope, and source retention. A successful connection does not prove all activity is available.
  • Package removal refused: another installed package may depend on it. Resolve that dependency deliberately; the uninstaller does not force removal.
  • Uninstall reports Tally is still running: stop a manual session with Ctrl+C, then rerun the uninstaller. For the service, check server.log in your data folder for a shutdown that did not finish.
Esc
  • Welcome to TallyGet started · Install Gödel Tally and discover your organization's AI inventory.
  • Install TallyGet started · Choose an installation method, install the Tally binary with one command, choose databases, and configure HTTPS.
  • Install with DockerGet started · Run Tally, PostgreSQL, and ClickHouse with Docker Compose and the published image; no Tally binary needed.
  • Install with Apple containerGet started · Run the same Tally images with Apple container on an Apple silicon Mac.
  • Connect your sourcesUse Tally · Configure read-only discovery sources and understand their evidence.
  • Inventory & findingsUse Tally · Explore AI activity, review evidence, and record governance decisions.
  • Accounts & emailUse Tally · Manage invitations, passwords, roles, and email delivery in Gödel Tally.
  • Terminal overviewTerminal · Tally's two terminal tools: the command line (CLI) and the interactive console (TUI), and which to use.
  • Command line (CLI)Terminal · Sign in once, look around, manage connectors and script Tally: readable output in a terminal, JSON when piped, with exit codes.
  • Terminal console (TUI)Terminal · The web console in a terminal: sections, keys and mouse, connecting a source, and light and dark themes.
  • Configuration referenceOperate · Find Tally's saved settings, installation paths, ports, and environment reference.
  • Services & maintenanceOperate · Start, stop, update, back up, and uninstall Tally.
  • Privacy & dataOperate · Understand retained metadata, storage, retention, and data deletion.
  • Upgrade to Gödel GateOperate · Review the Docker-based Gate upgrade, transferred data, and cutover process.
  • ArchitectureBuild · How the Tally binary, connector worker, web console, and databases fit together.
  • DevelopmentBuild · Run Rust and Next.js with live reload and build release binaries.
  • API & integrationsBuild · Find Tally's generated API contract, authentication boundary, and connector fixtures.