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#
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 -fOne tally-server service owns Tally and its private databases. For startup before login and operation after logout, an administrator may enable lingering:
sudo loginctl enable-linger "$USER"The installer does not enable lingering automatically. A working systemd user manager is required when registering services.
macOS services#
# 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:
bash ~/.godel-tally/app/tally.shKeep 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.
curl -fsSL \
https://raw.githubusercontent.com/godellabs-ai/godel-tally/main/install.sh \
-o install-tally.sh && bash install-tally.shOlder 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#
curl -fsSL \
https://raw.githubusercontent.com/godellabs-ai/godel-tally/main/uninstall.sh \
-o uninstall-tally.sh && \
bash uninstall-tally.shNormal 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:
bash uninstall-tally.sh --dry-runA 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#
# Preview database cleanup
bash uninstall-tally.sh --remove-databases --dry-run
# Uninstall Tally and remove its managed databases
bash uninstall-tally.sh --remove-databasesThe 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.login your data folder for a shutdown that did not finish.