Skip to content

Administration command reference

Michael Yingbull edited this page Sep 30, 2026 · 5 revisions

Server administration commands

Home / Technical documentation / Running CARLOS

Use this page when you know what you need to check but cannot remember the command. The commands here run on the server, so confirm the host before using sudo and read the output before taking the next action. Each command has a different purpose: a service can be running while an application check still fails.

Where commands run

Run carlos-ctl on a Debian-package CARLOS server with an account allowed to use sudo. man carlos-ctl on the server and the full command reference explain arguments, files, and exit codes. From CARLOS alpha16 onward the tool ships in a separate carlos-ctl package. The commands below are common entry points, not a substitute for their detailed reference.

Need Command Expected check
Deployment health sudo carlos-ctl check Read each probe and investigate failures.
Incomplete new installation sudo carlos-ctl finish-install Resume provisioning only after check or the install log reports unfinished steps; read its result before retrying.
Service state sudo carlos-ctl status Confirm application and timers are active.
Recent application logs sudo carlos-ctl logs -n 200 Note the time and error before sharing a redacted extract.
Schema state sudo carlos-ctl db-info Compare migration state with the installed release.
Backup history sudo carlos-ctl backup status Check the latest backup and verification times.
Certificate sudo carlos-ctl cert status Check the certificate presented for the site name.
Firewall blocks sudo carlos-ctl waf tail Inspect a blocked request that never reached CARLOS.

restart interrupts the application while it redeploys; allow roughly two minutes and run check afterward. db-migrate, db-repair, rotate, and destroy-data change persistent state and need their own procedure, backup, and approval from the site's operator. backup verify restores the newest database dump into a scratch database; it does not replace a full recovery rehearsal.

SCREENSHOT NEEDED — OP-COMMANDS: Capture a synthetic terminal showing carlos-ctl --help and a redacted successful carlos-ctl check. Keep the command and result in the same frame.

Keep the command output with the time of the incident when you ask for help. Remove credentials and patient information first. If a command changes the system, read its help text and the procedure linked from this reference; the reference is a map, while the procedure explains the sequence and checks.

OSCAR19 migration commands

Use the OSCAR19 migration walkthrough for input paths, prerequisites, approved acknowledgements, and the complete sequence. These experimental commands import into a fresh, unused CARLOS database. Assessment and dry run create staging data and reports on the server.

Need Command form Important result
Assess existing backups sudo carlos-ctl o19-preflight --dump FILE --properties FILE Exit 0 = go, 1 = acknowledgements required, 2 = no-go, 3 = tool failure. Read the report and unmeasured conditions.
Preview the target and settings sudo carlos-ctl import-o19 --dry-run --dump FILE --documents FILE --properties FILE No copy into the application database. Exit 0 can still accompany a no-go assessment. Documents are not restored or reconciled.
Import the clinic sudo carlos-ctl import-o19 --dump FILE --documents FILE --properties FILE --admin-user NAME Requires stopped service and any approved --accept flags; normal execution exits 0 on completion, 1 on refusal/failure. Settings still need manual review and application.
Continue an interrupted import Repeat the real-import command with --resume Uses the original inputs and recorded progress. An assessment/dry run alone is not a real import to resume.
Retire temporary staging sudo carlos-ctl import-o19 --cleanup Drops staging after verified completion or an eligible unused staging run. Keeps archives and renames reports; does not roll back copied data.

Use --o19-digests FILE when the backup includes compatible source content hashes. With only the three backups, a real import needs an explicit --accept no-content-digests decision; this records the missing verification back to the source server. See the walkthrough before adding it. o19-preflight --help, import-o19 --help, and the versioned manual list bundle input and other options.

Related pages

Server basics · Server configuration reference · Routine server maintenance

CARLOS documentation

All topics · Get help

Using CARLOS

Start here · Clinic workflows

Getting started and everyday reference
Office staff
Clinical staff and doctors
Clinic managers and administrators

Technical documentation

Technical overview · Reference

Running CARLOS

Install and configure
Maintain and troubleshoot

Developing CARLOS

Code, interfaces, and tests
Contribute and maintain releases

For everyone

Write and maintain the documentation

Clone this wiki locally