Self-Hosted Quick Start
Self-Hosted Quick Start¶
This page takes a brand-new Ubuntu 24.04 machine in your client's environment to a running, licensed, backed-up Huitzo deployment. Follow it top to bottom; you need basic Linux skills and shell access to the host, and no other page. Each step has a command block to paste, then Expected: (what you should see) and If not: (the usual fix).
Current release: 0.23.2. The commands download whatever the stable
channel points to, so they stay correct when a new release ships.
| Part | What you do | Time |
|---|---|---|
| A. Prepare and verify the host | Prerequisites, Docker, cosign, a host check | 20 min |
| B. Install | Pull token, release files, first run, license, second run | 30 min, plus license issuance |
| C. Launch and verify | Health checks, sign-in, backups, reboot test | 20 min |
Set your values once¶
Every later block reads its values from ~/huitzo.env, so it pastes
unchanged. Create the file on the host, then edit the six <...> values:
cat > ~/huitzo.env <<'EOF'
# Huitzo install values. Replace every <...>, keep the quotes.
HUITZO_HOST='<HOST>' # hostname users will open, e.g. huitzo.client.example
HUITZO_HOST_IP='<HOST_IP>' # this host's IP address, e.g. 10.20.0.15
HUITZO_ADMIN_EMAIL='<ADMIN_EMAIL>' # first Huitzo admin, e.g. [email protected]
HUITZO_PARTNER_GH_LOGIN='<PARTNER_GH_LOGIN>' # your firm's GitHub machine account (part B1)
HUITZO_CUSTOMER='<CUSTOMER>' # short customer name, e.g. medicavial
HUITZO_TLS_FLAGS='<TLS_FLAGS>' # see "Choose a TLS mode" below
HUITZO_PREFIX=/opt/huitzo # install directory: never change it later
case "$HUITZO_HOST$HUITZO_HOST_IP$HUITZO_ADMIN_EMAIL$HUITZO_PARTNER_GH_LOGIN$HUITZO_CUSTOMER$HUITZO_TLS_FLAGS" in
*'<'*) echo "!! ~/huitzo.env still has <placeholders>: run nano ~/huitzo.env" >&2;;
esac
EOF
chmod 600 ~/huitzo.env
nano ~/huitzo.env
. ~/huitzo.env && echo "values loaded for $HUITZO_HOST"
Expected: values loaded for <your hostname>, with no !! line.
If not: run nano ~/huitzo.env again and replace every <...>.
Every block below starts with . ~/huitzo.env, so it also works in a new SSH
session.
Choose a TLS mode¶
Users reach Huitzo over HTTPS only. Pick one mode for HUITZO_TLS_FLAGS; it is
fixed on the first install run.
| Users reach the host through | HUITZO_TLS_FLAGS |
|---|---|
| A public DNS name, with port 80 open to the internet (Let's Encrypt) | '--acme-email [email protected]' |
| A certificate from the client's own certificate authority | '--tls-cert /home/huitzo/cert.pem --tls-key /home/huitzo/key.pem' |
| The client's own reverse proxy, which terminates TLS | '--external-tls' |
| A test or proof-of-concept host with no public name | '--tls-internal' (Caddy's own CA; each browser must trust it) |
Keep the same private key when a certificate renews: Huitzo CLI runners pin it.
Part A: Prepare and verify the host¶
A1. Prerequisites¶
| Item | Demo or proof of concept | Production |
|---|---|---|
| CPU | 4 vCPU, x86_64 (no Arm) | 8 vCPU, x86_64 |
| Memory | 8 GB | 16 GB |
| Disk | 50 GB SSD | 200 GB SSD |
| OS | Ubuntu 24.04 LTS, fresh install, a non-root user with sudo | same |
Inbound: 443 (HTTPS) and 80 (redirect, and Let's Encrypt) from users; 22 from admins only. Nothing else.
Cloud hosts. The memory and disk are real requirements, not suggestions: an undersized host can stall so badly during the install that SSH stops answering.
| Cloud | Use | Avoid |
|---|---|---|
| AWS EC2 | m7i.xlarge or m6i.xlarge (4 vCPU, 16 GB) for a demo, m7i.2xlarge for production; the floor is c7i.xlarge or c6i.xlarge (4 vCPU, 8 GB; AMD: c7a/c6a.xlarge). Root EBS volume 50 GB or more (gp3), set at launch: the Ubuntu AMI defaults to 8 GB. Security group: inbound 443 and 80 from users, 22 from admins. |
t2/t3/t3a burstable types (they run out of CPU credits during the install), Graviton (*g) types (x86_64 only), and anything under 4 vCPU or 8 GB |
| Azure | Standard_D4s_v5, Standard_D4as_v5 or Standard_B4ms (4 vCPU, 16 GB) for a demo; the floor is Standard_F4s_v2 (4 vCPU, 8 GB). OS disk 64 GB. Network security group: the same inbound rules. |
Sizes under 4 vCPU or 8 GB (for example D2as_v5 fails the CPU check in A4) |
On a cloud VM whose disk was grown after launch, extend the filesystem before
A4: lsblk shows the device, then for example
sudo growpart /dev/nvme0n1 1 && sudo resize2fs /dev/nvme0n1p1.
Outbound HTTPS (443) from the host to:
| Destination | Why |
|---|---|
download.docker.com |
Docker Engine packages |
github.com, release-assets.githubusercontent.com |
The cosign package |
get.huitzo.com |
Huitzo release files |
ghcr.io, pkg-containers.githubusercontent.com |
Huitzo images (private) |
registry-1.docker.io, auth.docker.io, production.cloudflare.docker.com |
PostgreSQL, Redis and Caddy images (Docker Hub) |
tuf-repo-cdn.sigstore.dev, rekor.sigstore.dev, fulcio.sigstore.dev |
Signature checks (Sigstore) |
acme-v02.api.letsencrypt.org |
Only with Let's Encrypt |
pypi.org, files.pythonhosted.org, and the AI provider (api.openai.com, api.anthropic.com, or your Azure Foundry resource {resource}.services.ai.azure.com) |
When Packs run |
Corporate proxy: tell Huitzo before install day. Docker needs the proxy in
a systemd drop-in (/etc/systemd/system/docker.service.d/http-proxy.conf,
see Docker's proxy guide),
and curl and cosign need HTTPS_PROXY in the shell. A proxy that inspects
TLS breaks image and signature checks unless the host trusts its CA. Packs'
outbound HTTP calls (ctx.http) do not use the proxy: they connect directly
to the address their SSRF check vetted, so the workers need direct outbound
HTTPS to the hosts Packs are allowed to call (see
Security boundaries).
The backend logs http.env_proxy_ignored once when proxy variables are set.
A2. Install Docker Engine and the Compose plugin¶
From Docker's official apt repository, as in
Docker's Ubuntu guide
(Ubuntu's own docker.io package is too old):
sudo apt-get update && sudo apt-get install -y ca-certificates curl jq openssl python3
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
| sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker "$USER"
Expected: the last apt-get ends without errors.
If not: check outbound access to download.docker.com (A1) and the proxy.
Log out and SSH back in so the docker group applies, then:
docker run --rm hello-world | grep 'Hello from Docker'
Expected: Hello from Docker!, without sudo.
If not: permission denied means you did not log in again; pull access
denied or a timeout means Docker Hub is blocked (A1).
A3. Install cosign v2.6.5¶
Huitzo's release is signed with cosign v2. Install v2.6.5 and hold it, or a
later apt upgrade can replace it with a cosign 3.x build that reports
devel and fails the checks:
cd ~ && curl -fsSLO https://github.com/sigstore/cosign/releases/download/v2.6.5/cosign_2.6.5_amd64.deb
sudo apt-get install -y --allow-downgrades ./cosign_2.6.5_amd64.deb
sudo apt-mark hold cosign
cosign version | grep GitVersion
Expected: cosign set on hold. and GitVersion: v2.6.5.
If not: repeat the block; devel means another cosign replaced it.
A4. Verify the host¶
One block checks the sizing, the runtime and every outbound endpoint Part B
needs, and prints one PASS or FAIL line per check. Paste it whole:
ok() { printf 'PASS %s\n' "$*"; }; bad() { printf 'FAIL %s\n' "$*"; }
ge() { [ "$(printf '%s\n%s\n' "$2" "$1" | sort -V | head -n1)" = "$2" ]; }
[ "$(uname -m)" = x86_64 ] && ok "arch x86_64" || bad "arch $(uname -m): x86_64 only"
os=$(. /etc/os-release && echo "$ID-$VERSION_ID")
[ "$os" = ubuntu-24.04 ] && ok "OS $os" || bad "OS $os: Ubuntu 24.04 expected"
[ "$(nproc)" -ge 4 ] && ok "CPU $(nproc) vCPU" || bad "CPU $(nproc) vCPU: 4 minimum"
mem=$(awk '/^MemTotal:/ {printf "%.1f", $2 / 1048576}' /proc/meminfo)
awk -v m="$mem" 'BEGIN {exit !(m >= 7.3)}' && ok "RAM $mem GiB visible" || bad "RAM $mem GiB: 8 GB minimum (static, not dynamic, memory)"
for p in / /var/lib/docker; do
read -r sz fr < <(df -BG --output=size,avail "$p" 2>/dev/null | awk 'NR==2 {gsub("G",""); print $1, $2}')
[ "${sz:-0}" -ge 50 ] && [ "${fr:-0}" -ge 30 ] && ok "disk $p ${sz}G, ${fr}G free" \
|| bad "disk $p ${sz:-?}G, ${fr:-?}G free (50G filesystem and 30G free minimum)"
done
dv=$(docker version --format '{{.Server.Version}}' 2>/dev/null)
ge "${dv:-0}" 28.0.0 && ok "Docker Engine $dv" || bad "Docker Engine ${dv:-not reachable}: 28+ (A2)"
cv=$(docker compose version --short 2>/dev/null); cv=${cv#v}
ge "${cv:-0}" 2.28.0 && ok "Docker Compose $cv" || bad "Docker Compose ${cv:-missing}: 2.28+ (A2)"
sv=$(cosign version 2>/dev/null | awk '/^GitVersion/ {print $2}')
[ "$sv" = v2.6.5 ] && ok "cosign $sv" || bad "cosign ${sv:-missing}: v2.6.5 (A3)"
for t in curl jq openssl python3; do command -v "$t" >/dev/null && ok "tool $t" || bad "tool $t missing (A2)"; done
for u in https://ghcr.io/v2/ https://pkg-containers.githubusercontent.com/ \
https://get.huitzo.com/self-hosted/stable/SHA256SUMS \
https://registry-1.docker.io/v2/ https://auth.docker.io/token https://production.cloudflare.docker.com/ \
https://download.docker.com/linux/ubuntu/gpg https://github.com/ \
https://rekor.sigstore.dev/api/v1/log https://tuf-repo-cdn.sigstore.dev/ https://fulcio.sigstore.dev/; do
c=$(curl -s -o /dev/null -w '%{http_code}' --max-time 15 "$u")
[ "$c" != 000 ] && ok "reach $u (HTTP $c)" || bad "reach $u: no answer (firewall, DNS or proxy)"
done
Expected: only PASS lines, for example:
PASS arch x86_64
PASS OS ubuntu-24.04
PASS CPU 4 vCPU
PASS RAM 7.7 GiB visible
PASS disk / 60G, 47G free
PASS disk /var/lib/docker 60G, 47G free
PASS Docker Engine 29.0.1
PASS Docker Compose 2.40.3
PASS cosign v2.6.5
PASS tool curl
...
PASS reach https://ghcr.io/v2/ (HTTP 401)
PASS reach https://get.huitzo.com/self-hosted/stable/SHA256SUMS (HTTP 302)
...
Any HTTP code counts as reachable: registries answer 401 or 403 without a
login, and get.huitzo.com answers 302. An 8 GB host shows about 7.5 to
7.8 GiB. That is the demo floor: the containers' combined memory limits
reach about 10.75 GB, so a busy deployment needs the 16 GB production size.
If not: each FAIL line names the fix. A wrong OS only warns in the
installer, but Ubuntu 24.04 is the tested OS. Ubuntu's default LVM layout uses
half the disk: sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv. A
reach ... no answer line is a firewall, DNS or proxy issue: open outbound
443 to that host (A1). Behind a corporate proxy, configure the Docker daemon
(Docker daemon proxy configuration)
and export HTTPS_PROXY in the shell, then run the block again.
partners.huitzo.ai is needed only on the partner administrator's machine
(B5), not on the host.
Part B: Install¶
B1. Registry access and the pull token (PAT)¶
The Huitzo images are private container packages in the GitHub organization
huitzo-ai: backend,
worker,
dashboard
and backup,
pulled as ghcr.io/huitzo-ai/<name>. Your firm gets access through a GitHub
machine account: a dedicated GitHub user your firm owns (not a person's
account), which Huitzo makes a member of huitzo-ai, in the team
verified-partners and your firm's child team under it. That team grants
Read on those four packages, and nothing else. Once the account is a
member, it can browse them at
github.com/orgs/huitzo-ai/packages.
install.sh logs in with a token on that account.
Once per firm (prerequisite). Send the machine account's GitHub login to your Huitzo partner contact. Then, signed in to GitHub as the machine account, accept the invitation at github.com/orgs/huitzo-ai/invitation (or from the invitation email).
Per customer install: create the token. Signed in to GitHub as the machine account:
- Open
https://github.com/settings/tokens/new?scopes=read:packages&description=huitzo-pull-<CUSTOMER>, with<CUSTOMER>replaced, for example github.com/settings/tokens/new?scopes=read:packages&description=huitzo-pull-medicavial (or profile photo → Settings → Developer settings → Personal access tokens → Tokens (classic) → Generate new token (classic)). - Note:
huitzo-pull-<CUSTOMER>, for examplehuitzo-pull-medicavial. - Expiration: match the license term (for example 90 days), and put a renewal reminder in your calendar a week before.
- Scopes: tick only
read:packages. Why:install.shonly pulls images, and this scope can do nothing else (no repository access, no package write or delete, no organization admin). If the token leaks, it exposes only the images, never your firm's or Huitzo's code. - Generate token, then copy the
ghp_...value. GitHub shows it once.
Use a classic token: GitHub Packages accepts only personal access tokens (classic), not fine-grained tokens (GitHub docs). Use one token per customer install, so revoking one customer's token never breaks another's.
Store it on the host as ~/pull-credentials.json, mode 600. Type the token
at the hidden prompt, so it never lands in your shell history:
. ~/huitzo.env
umask 077
read -rsp 'Paste the ghp_ token, then Enter: ' T; echo
printf '{"registry":"ghcr.io","username":"%s","token":"%s"}\n' "$HUITZO_PARTNER_GH_LOGIN" "$T" > ~/pull-credentials.json
unset T
ls -l ~/pull-credentials.json
Expected: -rw------- ... /home/<you>/pull-credentials.json.
If not: run the block again; nothing else reads the file yet.
Check the token reads all four images¶
The same login install.sh does, in a throwaway Docker configuration that is
deleted afterwards. The version comes from the stable channel:
v=$(curl -fsS -o /dev/null -w '%{redirect_url}' https://get.huitzo.com/self-hosted/stable/SHA256SUMS | sed -E 's#^.*/self-hosted/([^/]+)/SHA256SUMS$#\1#')
echo "release: $v"
d=$(mktemp -d)
jq -r .token ~/pull-credentials.json \
| DOCKER_CONFIG=$d docker login ghcr.io -u "$(jq -r .username ~/pull-credentials.json)" --password-stdin
for img in backend worker dashboard backup; do
DOCKER_CONFIG=$d docker manifest inspect "ghcr.io/huitzo-ai/$img:$v" >/dev/null 2>&1 \
&& echo "PASS reads ghcr.io/huitzo-ai/$img:$v" || echo "FAIL cannot read ghcr.io/huitzo-ai/$img:$v"
done
DOCKER_CONFIG=$d docker logout ghcr.io >/dev/null; rm -rf "$d"
Expected:
release: 0.23.2
Login Succeeded
PASS reads ghcr.io/huitzo-ai/backend:0.23.2
PASS reads ghcr.io/huitzo-ai/worker:0.23.2
PASS reads ghcr.io/huitzo-ai/dashboard:0.23.2
PASS reads ghcr.io/huitzo-ai/backup:0.23.2
If 401/denied: at login, the username or token is wrong or the token has
expired (create a new one). On the reads, the machine account has not
accepted the huitzo-ai invitation, the token lacks read:packages, or it is
a fine-grained token instead of a classic one. Fix it in GitHub, rewrite the
file, and run this check again. release: empty means get.huitzo.com is
blocked (A4).
Rotation: generate a new token the same way, rewrite
pull-credentials.json with the block above, and run the
read check again. Revocation: GitHub → Settings → Developer settings → Personal
access tokens → Tokens (classic) → Delete. The host needs the token only
while install.sh pulls images (install and upgrades); delete the file
afterwards if the customer's policy requires it (rm ~/pull-credentials.json)
and recreate it before the next upgrade.
B2. Download and verify the release¶
The release is a fixed list of files, each at
https://get.huitzo.com/self-hosted/stable/<file>, which redirects to that
file in the current version. There is no directory listing; download the files by name:
mkdir ~/huitzo-release && cd ~/huitzo-release
base=https://get.huitzo.com/self-hosted/stable
for f in install.sh docker-compose.yml .env.template Caddyfile backup.sh \
values.yaml RELEASE-NOTES.md SHA256SUMS SHA256SUMS.cosign.bundle; do
curl -fsSL -o "$f" "$base/$f" || echo "MISSING $f"
done
ls -A | wc -l
grep '^RELEASE_VERSION=' install.sh
Expected: no MISSING line, 9, and RELEASE_VERSION="0.23.2" (or a newer
release).
If not: mkdir fails when ~/huitzo-release exists: move the old one
aside (mv ~/huitzo-release ~/huitzo-release-old) and repeat. MISSING means
get.huitzo.com is blocked (A4). To install one specific release, use
base=https://get.huitzo.com/self-hosted/0.23.2.
Pre-run check¶
install.sh cannot vouch for itself. Check that Huitzo's release workflow
signed the checksums, then that every file matches:
cd ~/huitzo-release
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.cosign.bundle \
--certificate-identity https://github.com/Huitzo-Inc/huitzo/.github/workflows/customer-release.yml@refs/heads/main \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMS
chmod +x install.sh backup.sh
Expected: Verified OK, then seven lines ending in : OK.
If not: stop; do not run install.sh. Download again into an empty
directory; if it still fails, contact Huitzo. A FAILED checksum right after
a new release can mean files from two versions: download again.
B4. First run, in setup mode¶
A license names the deployment ID it is for, and the deployment creates its ID on its first start. So the first run installs without a license: Huitzo starts in setup mode, listens on this host only, creates the first admin and prints the deployment ID.
The first admin's one-time password is printed once, and it cannot be reset from the host today: if you lose it, the only way back is a reinstall, which creates a new deployment ID and needs a new license. The output is saved to a log for that reason.
. ~/huitzo.env
cd ~/huitzo-release && umask 077
./install.sh --prefix "$HUITZO_PREFIX" --pull-credentials ~/pull-credentials.json \
--domain "$HUITZO_HOST" $HUITZO_TLS_FLAGS --admin-email "$HUITZO_ADMIN_EMAIL" 2>&1 | tee ~/install-phase1.log
echo "install exit=${PIPESTATUS[0]}"
It takes a few minutes. With Docker Compose 5.x the output can stay quiet for several minutes while volumes and containers are created: it is not stuck.
Expected: these lines, in order, then install exit=0:
[1] host: x86_64, Docker Engine 29.x, Compose ..., ubuntu-24.04
[3] generated /opt/huitzo/.env (mode 0600, ...)
[4] logged in to ghcr.io as <your machine account> (temporary Docker config)
[5] cosign verified ghcr.io/huitzo-ai/backend@sha256:... (one line per image)
[6] no license yet: setup mode (this host only); ...
[8] backend, workers and beat healthy
[9] first admin: <your admin email>
one-time password: ...
[9] first admin created
[11] backup signing key generated; record its public key off this host ...
⚠️ HUITZO_BACKUP_AGE_RECIPIENTS is empty: ... (expected; fixed in C4)
✅ setup mode: the deployment is prepared but has no license yet.
deployment ID: hzd_...
Copy the one-time password into your password manager now.
If not: the last lines name the failing step. [4] ... failed → run the
read check. cosign verification failed → A3. TLS flags need --domain or a bad
email → fix ~/huitzo.env. Then run the same block again; it is safe to
re-run.
Always pass the same --prefix: a run with another prefix generates new
secrets that do not open the existing database.
Read the deployment ID¶
curl -s http://127.0.0.1:3000/api/v1/setup/status | jq -r .data.deployment_id
Expected: hzd_ followed by 26 letters and digits, the same ID as in the
log.
If not: docker compose --project-directory /opt/huitzo ps shows which
service is not up; re-run B4.
Send the ID, without spaces, to your partner administrator.
B5. Request the license¶
Your firm's partner administrator signs in to partners.huitzo.ai, opens Licenses, and requests a license:
- the client, the deployment ID from B4, and the purpose Demo/POC (up to 90 days). At launch only Demo/POC is accepted: Pilot and Paid answer 409 until the Huitzo Self-Hosted license agreement is published;
- the end customer's legal name and country, and the export-control attestation.
Expected: the request reaches Issued within minutes; download
license.json.
If not: 409 means another purpose than Demo/POC, or an open request or
live license for that ID already exists. Not issued after 10 minutes: contact
Huitzo.
Copy license.json to the host unchanged (any edit breaks its signature). From
the machine that downloaded it, with scp (Linux, macOS, or Windows
PowerShell, which includes OpenSSH); <SSH_USER> is your login on the host and
<HOST_IP> its address:
scp license.json <SSH_USER>@<HOST_IP>:license.json
Then, on the host:
grep -oE 'hzd_[0-9A-HJKMNP-TV-Z]{26}' ~/license.json | sort -u
Expected: exactly the deployment ID from B4. If not: the license is for another deployment: request one for this ID.
B6. Second run, licensed¶
Run the installed copy of install.sh with the same prefix. It needs no
token or TLS flags: the images verified in B4 and the settings in .env are
reused.
. ~/huitzo.env
"$HUITZO_PREFIX/install.sh" --prefix "$HUITZO_PREFIX" --license ~/license.json 2>&1 | tee ~/install-phase2.log
echo "install exit=${PIPESTATUS[0]}"
Expected: [6] placed /opt/huitzo/license/license.json ..., [7] HTTPS on
<HOST>; runner pin ... recorded (with Caddy), [9] first admin already
exists, then:
✅ install complete: https://<HOST>
and install exit=0.
If not: the license preflight prints why it refused the file (expired,
another deployment ID, edited): request a new one for this ID. caddy serves
no certificate with Let's Encrypt means port 80 is not reachable from the
internet or DNS does not point here.
install.sh copies the license into place. To replace it later, use
install.sh --license again, or cp: never mv a file into
/opt/huitzo/license/ (it is mounted as a single file, and the containers
would keep the old one).
B7. DNS or hosts file¶
Users' machines must resolve the hostname to the host. Ask the client's IT for
a DNS record (<HOST> → <HOST_IP>). For a test without DNS, add a hosts-file
entry on each machine that opens Huitzo.
On Windows, in PowerShell as Administrator, with both values replaced.
Keep the leading `r`n: when the hosts file does not end with a line
break, Add-Content would otherwise glue the entry onto its last line:
Add-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Value "`r`n<HOST_IP> <HOST>"
Resolve-DnsName <HOST>
On Linux or macOS:
printf '\n%s %s\n' <HOST_IP> <HOST> | sudo tee -a /etc/hosts
Expected: Resolve-DnsName (or ping <HOST>) shows <HOST_IP>.
If not: check that the new line is on its own line in the hosts file.
B8. Trust the internal CA (--tls-internal only)¶
Skip this with Let's Encrypt, the client's certificate or your own proxy. Export Caddy's root certificate on the host:
. ~/huitzo.env
docker compose --project-directory "$HUITZO_PREFIX" exec -T caddy \
cat /data/caddy/pki/authorities/local/root.crt > ~/huitzo-root.crt
openssl x509 -in ~/huitzo-root.crt -noout -subject
Expected: a subject containing Caddy Local Authority.
If not: service "caddy" is not running: B6 did not finish; re-run it.
Copy huitzo-root.crt to each user's machine (scp <SSH_USER>@<HOST_IP>:huitzo-root.crt .)
and import it. On Windows (Edge and Chrome use this store; Firefox has its own):
Import-Certificate -FilePath .\huitzo-root.crt -CertStoreLocation Cert:\CurrentUser\Root
Part C: Launch and verify¶
C1. Huitzo is up¶
Run this block now, and again after the reboot in C5. It checks the
containers in /opt/huitzo, /health, and HTTPS and the HTTP redirect
through curl --resolve, so it needs no DNS on the host:
. ~/huitzo.env
docker compose --project-directory "$HUITZO_PREFIX" ps --format '{{.Service}}\t{{.Status}}'
curl -s http://127.0.0.1:3000/health | jq -c '{status, version, license: .license_status.license_state}'
ca=(); [ -f ~/huitzo-root.crt ] && ca=(--cacert ~/huitzo-root.crt)
curl -s -o /dev/null -w 'https %{http_code}\n' "${ca[@]}" --resolve "$HUITZO_HOST:443:127.0.0.1" "https://$HUITZO_HOST/health"
curl -s -o /dev/null -w 'http %{http_code} -> %{redirect_url}\n' --resolve "$HUITZO_HOST:80:127.0.0.1" "http://$HUITZO_HOST/"
Expected:
- every service
Up ... (healthy):backend,worker(twice),beat,dashboard,postgres,redis,backup, andcaddyunless you use--external-tls; {"status":"healthy","version":"0.23.2","license":"valid"};https 200;http 308 -> https://<HOST>/.
If not: docker compose --project-directory /opt/huitzo logs --tail 50
<service> for an unhealthy service; on an 8 GB host also check free -m.
license other than valid: B6. https 000 with the client's certificate:
add --cacert <client CA file>; with --external-tls, test through your proxy
instead (no Caddy runs on the host).
C2. Sign in and change the password¶
Open https://<HOST> in a browser, sign in with the admin email and the
one-time password from B4, and change the password at once.
Expected: no certificate warning; a "Preview — not for production use" banner (Demo/POC license); the admin license card shows the edition, the expiry and the deployment ID. If not: a certificate warning means B8 (or the client CA) is not trusted on this machine; "site can't be reached" means B7.
Then remove the password from the log (the rest of the log stays useful):
sed -i '/one-time password:/d' ~/install-phase1.log && grep -c 'one-time password' ~/install-phase1.log
Expected: 0.
C3. The Huitzo CLI (optional)¶
On a workstation with the Huitzo CLI installed:
huitzo login --url https://<HOST> --email <ADMIN_EMAIL>
huitzo license status
Expected: the login succeeds and license status shows the same state,
purpose, expiry and deployment ID as the license card.
If not: CERTIFICATE_VERIFY_FAILED with --tls-internal: point the CLI
at a bundle of the system CAs plus the root,
cat /etc/ssl/certs/ca-certificates.crt huitzo-root.crt > huitzo-ca.pem and
export SSL_CERT_FILE=$PWD/huitzo-ca.pem. Note that the CLI keeps one login at
a time: this replaces any other Huitzo login on that workstation.
C4. Turn on backups¶
Backups are encrypted with age, and the backup
service refuses every backup until it has a public key. Create the key on
your workstation, never on the Huitzo host, so the private key never sits
next to the data (install age with sudo apt-get install -y age, or from
its releases on Windows):
age-keygen -o huitzo-backup-identity.txt
age -p -o huitzo-backup-identity.txt.age huitzo-backup-identity.txt
Expected: Public key: age1..., then a passphrase prompt. Keep both files
in your firm's secret store: without the identity, no backup can be restored.
On the host, paste the public key at the prompt:
. ~/huitzo.env
read -rp 'age public key (age1...): ' K
sed -i "s/^HUITZO_BACKUP_AGE_RECIPIENTS=.*/HUITZO_BACKUP_AGE_RECIPIENTS=$K/" "$HUITZO_PREFIX/.env"
grep '^HUITZO_BACKUP_AGE_RECIPIENTS=' "$HUITZO_PREFIX/.env"
"$HUITZO_PREFIX/install.sh" --prefix "$HUITZO_PREFIX" 2>&1 | tee ~/install-backups.log | grep -E '^\[11\]|✅|❌'
Expected: the .env line shows your age1... key, then [11] backups are
encrypted to 1 age recipient(s) and ✅ install complete.
If not: not an age1… public recipient means a typo or a pasted private
key (AGE-SECRET-KEY-..., which must never be on the host): run the block
again with the age1... line.
Record the backup signing public key off the host too; you need it to restore on another host. It is in the B4 log and in the backup service:
. ~/huitzo.env
grep -A3 'signing key generated' ~/install-phase1.log
docker compose --project-directory "$HUITZO_PREFIX" exec -T backup huitzo-db db-backup-list --json
Take the first backup:
. ~/huitzo.env
"$HUITZO_PREFIX/backup.sh" --install-dir "$HUITZO_PREFIX" --output ~/huitzo-backups; echo "backup exit=$?"
docker compose --project-directory "$HUITZO_PREFIX" exec -T backup huitzo-db db-backup-list
Expected: backup exit=0, a new directory under ~/huitzo-backups, and
one manual backup in the list (also on /admin/backups in the dashboard).
If not: no database backup was taken means the key is not set (repeat the
block above).
Then, on /admin/backups, turn the schedule on, run backup.sh daily
from cron, and copy the backups off the host. backup.sh output holds .env
and keys in the clear: store it encrypted.
C5. Survive a reboot¶
sudo reboot
Wait about two minutes, SSH back in, and run the C1 block again.
Expected: the same result as before the reboot, and https://<HOST> signs
in. The containers restart on their own.
If not: systemctl is-active docker must say active
(sudo systemctl enable --now docker); then re-run C1.
Getting the files onto the install host (optional)¶
Use this when the host cannot browse, or you prepare files elsewhere.
(a) Download on the host. The default: the B2 loop.
(b) Download and verify on a workstation, then copy. Run the B2 loop and the pre-run check on a Linux or macOS workstation (or WSL), then copy the directory:
scp -r huitzo-release <SSH_USER>@<HOST_IP>:
# or: rsync -av huitzo-release/ <SSH_USER>@<HOST_IP>:huitzo-release/
From Windows, PowerShell's built-in OpenSSH works the same
(scp -r .\huitzo-release <SSH_USER>@<HOST_IP>:), or use WinSCP. Run the
pre-run check again on the host after the copy.
(c) Images still come from the internet. Whichever way the files arrive,
install.sh pulls the images from ghcr.io and Docker Hub during install, so
the host needs the outbound access in A1. A fully offline
(air-gapped) install, with images carried across, is not offered at
launch. For a restricted network, contact Huitzo before you plan the
install.
The license file travels the same way: scp license.json
<SSH_USER>@<HOST_IP>:license.json from the machine that downloaded it from
the portal (B5). When you replace a license later, use
install.sh --license or cp, never mv.
Next: publish Intelligence Packs¶
A pack reaches the deployment by being published to it with the CLI (C3)
and an account in developer mode (huitzo account developer-mode). From the
pack's source directory (the one with huitzo.yaml): huitzo pack publish,
then huitzo pack list. pack.namespace must be your workspace slug or an
organization you belong to. A Demo/POC license allows 3 Packs and 500 runs per
30 days.
Production checklist¶
- The pre-run check passed for the installed release
- HTTPS with a certificate users trust; ports 80 and 443 only, port 3000 never exposed
- The first admin's password changed, and removed from the B4 log
- License VALID, with a renewal reminder at least 30 days before expiry (Renew), and the pull token's expiry in the same calendar
- Backups encrypted to an age key held off the host; the signing public key
recorded; the schedule on;
backup.shdaily; copies off the host; a restore tested on a separate host (Restore) -
~/huitzo.env,/opt/huitzo/.envandlicense/license.jsonkept in an encrypted store - The reboot test (C5) passed
- Monitoring of
/healthand disk space (Observability)
Troubleshooting¶
| Symptom | Fix |
|---|---|
cosign verify-blob fails |
Do not run install.sh. Download again into an empty directory; if it still fails, contact Huitzo. |
cosign version reports devel |
apt upgrade replaced cosign: repeat A3. |
backend ... is unhealthy at the end of B4, or SSH stops answering during the install |
The host is out of memory, disk or CPU credits. Check free -m, df -h / and docker inspect -f '{{.State.OOMKilled}}' huitzo-customer-backend-1; on a cloud VM, the instance's system log for Out of memory. Move to a size from Cloud hosts (stop, resize, start), grow the disk, run A4, then run B4 again with the same --prefix. |
[4] registry login ... failed, or a pull is denied |
Run the read check to see which part fails. |
install.sh stops on the support matrix |
x86_64 host, Docker Engine 28+, Compose 2.28+, cosign v2 (A4). |
migrate fails with password authentication failed |
A run used another --prefix, so it generated new secrets. Re-run with --prefix /opt/huitzo; never delete the original .env. |
flags ask for TLS mode ... |
The TLS mode was fixed on the first run. Re-run without TLS flags, or edit /opt/huitzo/.env (Environment file). |
| The deployment stays in setup mode | The license is for another deployment ID, not active yet, or the host clock is wrong (timedatectl). |
| The browser warns about the certificate | B8 on that machine. |
| The one-time admin password is lost | It cannot be reset from the host today. Contact Huitzo before reinstalling: a reinstall needs a new license. |
| A service is unhealthy | docker compose --project-directory /opt/huitzo logs --tail 50 <service>; on 8 GB also free -m (Operations). |
Getting help¶
- Install questions, licensing and sizing reviews: your Huitzo partner contact, or [email protected]
- Security vulnerabilities: [email protected]
- Legal notices: [email protected]
After install¶
- Upgrade to a new release
- License status and renewal
- Operations and Connected installation (the full reference)
- White-label branding