Skip to content

Start, check, stop ​

The day-to-day commands of a running server. Inside the image the binary is ./joobqui (and ./joobqui-selfhosted); in Compose, prefix a command with docker compose -f deploy/selfhosted.compose.yml --env-file deploy/.env exec app.

Commands ​

CommandWhat it does
./joobquiRuns the server. Applies pending database migrations first.
./joobqui migrateApplies the migrations and exits.
./joobqui doctorChecks the database, Redis, the session secret and the licence; prints JSON, exits 0 or 1.
./joobqui versionPrints the version as JSON, without connecting to anything.
./joobqui license:status, license:refreshShows the licence; checks in with the portal now.
./joobqui connect, disconnect --yesConnects the server to its licence from a terminal; disconnects it.
./joobqui accounts:create, accounts:role, accounts:mfa:reset, accounts:eraseLocal accounts: see Accounts, SSO, 2FA, roles.
./joobqui invites:createA one-use sign-up invite code.

Arguments and exit codes are in the Command line reference. Tasks run instead of the server, with the same environment and volume, and need no sign-in: each writes an audit row with the actor cli:<operating system user>. A running server notices an account change made this way within 30 seconds.

Starting ​

The server waits for PostgreSQL and Redis: it retries the migrations and the event stream for JOOBQUI_BOOT_WAIT_SECONDS (60 by default), then prints one line naming what failed and exits with status 1. So it can start before its databases are ready, and an orchestrator's restart policy does the rest.

At start a production server prints WARNING: lines for what works but should be fixed (no client address header, no mail, no SDK token) and ERROR: lines for what stops it. Both are explained in The server will not start.

Stopping ​

Send SIGTERM (or SIGINT). The server stops taking requests, then stops its background work, the workflow engine and the queues, and last gives its leader leases back so another instance takes over at once.

  • Give it more than 20 seconds before a kill: that is the budget of an orderly stop. The Compose file allows 60.
  • A job still running when the budget ends is put back on its queue. Jobs must be safe to run twice.
Exit statusMeaning
0Stopped cleanly, or a task succeeded
1Could not start, or a task failed
3Stopped, but a step failed or ran out of time

Restarting to apply settings ​

Most settings saved in the console apply at the next start. The Restart to apply banner restarts the instance that answers; restart the others yourself, one at a time. See Settings in the console.

Logs ​

The server writes its log to standard output and standard error; collect it with whatever collects your containers' logs. LOG_LEVEL sets the level (info by default). The log never holds a password, a token or a key. What people did is in the audit log, not here: see Auditing.