Skip to main content
install installs a committed version of an app into an installer blob under an alias. Naming an alias that already exists upgrades that installation, forward only: to a newer version, or to the same one again. Naming an uninstalled or failed one installs it again. It prints the plan, the lines the platform would act on and the limits the version needs, refuses unless --yes confirms them, and then follows the log until the installation settles.

Synopsis

What it does

The sequence is the one in the installer overview:
  1. Reads the installer blob. If it is absent, creates it, private, and prints created installer blob acme-corp/installed-apps. This is the only write without --yes.
  2. Asks the platform for the plan of the install and prints a header, its lines and its limits block.
  3. Checks the plan’s problems before --yes. A plan that has problems is never acted on, with or without --yes: the command prints each as problem: <text>, ends with refused: N problems; nothing was installed and exits 1 with INSTALL_HAS_PROBLEMS. Otherwise, without --yes, it ends with refused: pass --yes to install and exit 1.
  4. With --yes, notes the log’s last entry and calls install with confirmed set to the plan’s digest. It follows the log once a second until the installation leaves installing, then drains it once more. When the plan has changed by then, nothing is installed (When the plan changes).
The dry run of the first Field Reports install:
The first line appears only on the run that creates the installer blob. The limits block is cut here; the upgrade shows a whole one. The same command with --yes prints the plan again, installs, and prints the log as it is written:

Upgrading

The same command with a newer version upgrades the installation reports. Its inputs carry only what changes: the installation remembers its documents, and the weather credential exists, so weather_key counts as given.
Both blobs, the session and the record exist by then, so only the rows at the two blobs remain. The one row flows declares, blobhub.compute.workflow.executions_per_session at least 400, reads 27000 (org), the value acme-corp sets for its organization. The others are what the platform derives from the content (Derived requirements). An installation moves forward only. A committed version older than the one it last asked for, such as 0.2.0 after 0.3.0, is the problem version_downgrade. A version whose upgrade.from is newer than the version the installation was last ready at is upgrade_unsupported: install a version in between first. The same version again is allowed, and is how a failed upgrade is retried. A ready or failed installation keeps its kind. reports installs committed versions, so --version draft over it is the problem development_mismatch; the draft is tried as a development installation under another alias, such as reports-dev, which in turn takes only the draft. An upgrade that adds no account and no credential can run in CI under a service account’s key; see who installs.

Limits and problems

After its lines, a plan prints its limits block: every requirement of the version, declared or derived, grouped under limits at <where>, the organization or a blob as the install will leave it. Each row is ok or unmet, then the limit’s id, what the version needs, and what the place has with the level the value comes from: default, platform, or the user, org or blob override. The rows are printed as the plan answers them, unmet first, and nothing in them is shortened. The block prints no row’s fix, which only --json carries (Output). A plan with no requirement prints no block. An unmet row is also one of the plan’s problems, limit_unmet, which names what the version needs and ends Ask support@blobhub.io to set it, or, past the limit’s most permissive value, <id> cannot be set above <bound> (below for a minimum), which for room goes on , so only removing what is held makes room (When a requirement is not met). Each problem prints as problem: <text>, wrapped at 110 columns with a two-space indent and never inside a word, and a plan with problems ends with refused: N problems; nothing was installed, with or without --yes. The same upgrade, had blobhub.compute.workflow.executions_per_session been lowered to 300 for acme-corp since the first install:
The sentence is the platform’s, word for word (When a requirement is not met). --yes overrides nothing: a plan with a problem has no digest, so there is nothing to confirm. Send the problem to support@blobhub.io; once the limit is set, the next plan finds the row met. Every problem a plan can answer, in the order it checks them, is under The checks, in order.

When the plan changes

A --yes run asks for its own plan, prints it and sends its digest, all in the same run. A dry run before it confirms nothing: with --version left out, a version committed since the dry run is the one the --yes run prints and installs, so name --version where the version must not move. The digest covers the gap between this run’s print and its call. The platform plans again before it acts, and when that plan’s digest differs, because a version was committed, the draft pushed, an input or a limit’s value changed, or another operation ran on the installation, nothing is installed: the platform answers plan_changed with the new plan. The command prints it under a header naming the version planned now, with its lines, its limits block and any problem, and ends with refused: the plan changed while it was confirmed; nothing was installed and exit 1 (PLAN_CHANGED). Read the new plan, then run the command again. A problem that is new when the platform plans again, such as a limit lowered below what the version needs, is refused with its own code instead, such as LIMIT_UNMET, after the problem is printed.

Output

The header, the lines, the limits block and the refused: line go to stderr, so -q does not quiet them; each problem: line and each log line go to stdout. The log lines are HH:MM:SS message, one per entry, printed as they are written. Under --json nothing else is printed. The result with --yes is one JSON document on stdout: installer, created (whether this run created the installer blob), plan, installation (its final record) and entries (the log entries the operation wrote). A refusal leaves stdout empty and writes one JSON document to stderr, the error envelope. A refusal of the plan carries confirm, one entry with installation, the plan’s lines and limits, and created: APP_NOT_CONFIRMED adds the plan’s digest when it has one, and INSTALL_HAS_PROBLEMS carries the problems as problems. PLAN_CHANGED carries the new plan’s problems, and confirm with its installation, lines and limits, and its digest when it has one: a plan with problems has none, and a confirm entry never carries a null one. Each row of limits is the plan’s row as the platform answers it. An unmet row’s fix is the value to ask support@blobhub.io to set and where, {"target": "org:<org>" | "blob:<org>/<blob>", "value": <JSON>}, or null when no value can meet it: past the limit’s most permissive value, where for room only removing what is held helps. A plan whose fix has any other shape is one the CLI cannot read, API_TRANSIENT_ERROR; a PLAN_CHANGED refusal carrying one prints no limits block, and its confirm has empty limits and no digest. A script reads each fix from the refusal on stderr:
For the refused upgrade above, it prints the fix of its one unmet row:
When the installation fails, the error carries problems: the log’s error entries, or its last five entries when none is an error; a timeout carries the last five. A refusal at write time, after the plan was confirmed, keeps the refusal’s problems in --json too. A limit reached since the plan is LIMIT_EXCEEDED, whose human output prints only the message. A blob not ready is BLOB_NOT_READY, in the platform’s words. An installer blob a delete has claimed is refused before the install as blob acme-corp/installed-apps is deleting; one a delete claims while the install call runs prints the platform’s problem first, problem: blob_not_ready: blob installed-apps is being deleted. No input value is ever printed.

Errors

The platform’s own refusals, such as limit_exceeded, are listed under Refusals. Every code above, with its remediation, is in Error codes.

See also