Check there's room for the database's copy before an update
Before dumping the app's database for a rollback, coreapps reads its size and refuses the update, changing nothing, if the apps' disk can't hold the copy and keep 1 GB free; big databases say the copy takes a while. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -259,6 +259,15 @@ The Core's own scripts trace secrets, so their output goes to
|
||||
the table's owner is the app's user, the app's user can still read it,
|
||||
and no `.coreapps-rollback-*` folder is left. A successful update leaves
|
||||
none either.
|
||||
10a. Room for the database's copy (with `core/coreapps` loaded as a
|
||||
module, only in the test): `database_size("postgres",
|
||||
"coreapp_<name>")` and `database_size("mysql", "powerdns")` give sizes,
|
||||
a missing database `None`. With `ROLLBACK_RESERVE` larger than the disk,
|
||||
an update is refused: "keeps a copy of its database (... MB) until the
|
||||
update has worked ... has ... GB free ... Nothing was changed", the
|
||||
container isn't restarted and no `.coreapps-rollback-*` folder is left.
|
||||
With `BIG_DATABASE = 0`: "Keeping a copy of its database (...) in case
|
||||
the update fails; this takes a while...", then "Updated".
|
||||
11. Superpanel: after deploy, `/federated/apps/superpanel/data/applist.json`
|
||||
(the dashboard) and `catalog.json` have the app; `service` has
|
||||
`URL="https://hello.$DOMAIN/"` and applist the same `url`. Change
|
||||
|
||||
Reference in New Issue
Block a user