Update rehearsal: downgrade check for deploys, -N versions, failed logs

coreapp deploy refuses a lower version than the installed one without
--downgrade, as coreapp install does. Versions with -N (the Coreapp's own
fix on the same upstream version) order after the upstream one, for
releases too. A failed start keeps the container's whole log, from its
first start, in <name>-failed-start.log. coreapp status shows the
installed version beside the folder's.

Skill: references/updating.md (versions, what to check between versions,
testing an update over real data and its rollback, no copy after a
successful update); reading the installer's bash -x log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:06:31 -07:00
co-authored by Claude Opus 5.5
parent 491af8745f
commit 0aa334d22a
8 changed files with 168 additions and 18 deletions
+16 -6
View File
@@ -73,7 +73,7 @@ title = "My App" # shown in the Core's dashboard
description = "What it does, in a sentence"
docs = "https://example.com/docs" # optional; installed from a repository, defaults to it
image = "localhost/coreapp/my-app" # image name; the Core runs image:version
version = "0.1.0" # the image tag; raise it for each release
version = "0.1.0" # the image tag; raise it for each release (6.2.0, then 6.2.0-1)
port = 8080 # the port the app serves HTTP on (any; 8080 is usual)
health = "/health" # a path that answers once it's up
needs = ["postgres", "sso"] # what it needs from the Core, or [] ("mysql", "email" too)
@@ -365,6 +365,13 @@ ends by running the upstream one (and written at every start, for settings
the app keeps in its database); waiting for the database and Authelia at
startup; a non-root user; its own `icon.png`; one container.
### 2c. Updating an app (a new upstream version or release)
Read [references/updating.md](references/updating.md) first: versions
(`-N` for the Coreapp's own fixes), what to check between versions,
testing an update over real data and its rollback, and what the Core's
database copy covers.
### 3. Deploy and test
```bash
@@ -407,7 +414,7 @@ parts were tested that way rather than through a real sign-in.
| Command | Shows |
|---|---|
| `coreapp status` | Its container, address, port, needs, URL, and the Core's PostgreSQL or MariaDB version if it needs one |
| `coreapp status` | Its container, the version installed and the folder's, address, port, needs, URL, and the Core's PostgreSQL or MariaDB version if it needs one |
| `coreapp mail` | What the Core's mail server did with the mail it sent (apps with `email`) |
| `coreapp inbox [--clear]` | The mail the test account got: the newest 10, with their text (`--clear` empties it) |
| `coreapp logs` / `coreapp logs -f` | The app's own log |
@@ -425,9 +432,11 @@ Common causes:
ran before, with its settings, its database and `/data` as they were
before the update (`/data` only where the Core's filesystem can copy it
instantly; the message says), and undid needs the update added. Whatever
the failed version wrote is gone. Its log is printed above that line
(`coreapp logs` now shows the old version's). When the version wasn't
raised, the image that failed is the one running again.
the failed version wrote is gone. The end of its log is printed above
that line, and its whole log, from its first start, is kept on the Core
(deploy says where; `coreapp logs` now shows the old version's). When
the version wasn't raised, the image that failed is the one running
again.
- "keeps a copy of its database ... Nothing was changed. Free some space
first.": before an update the Core copies the app's database, to roll
back to, and the apps' disk hasn't room for it (it keeps 1 GB free for
@@ -455,7 +464,8 @@ Common causes:
The installer's own log (the Core's install scripts) is on the Core in
`/federated/logs/coreapps/`. It contains secrets, so don't print it in full;
look at the end of it with `coreapp-vm ssh tail -n 40 /federated/logs/coreapps/<name>-install.log`
only when a deploy fails in the installer itself.
only when a deploy fails in the installer itself. It's a shell trace
(`bash -x`): look for the last command before the error, not for words.
### 5. Publishing (only when the user asks for a release)