Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/recipes/environment-variables-system-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ Defines a comma-separated list of Lucee extensions to install when starting up.

The current list of installed extensions is available via the Lucee admin.

#### LUCEE_EXTENSIONS_FAIL_ON_ERROR

*SysProp:* `-Dlucee.extensions.fail.on.error`
*EnvVar:* `LUCEE_EXTENSIONS_FAIL_ON_ERROR`

A boolean value (default `false`) that makes an invalid `LUCEE_EXTENSIONS` fatal on startup. When `true`, the startup is aborted if an extension defined in `LUCEE_EXTENSIONS` cannot be installed or an entry of the list cannot be parsed. When `false`, the error is written to the deploy log and to stderr and the startup continues.

In warmup mode (`LUCEE_ENABLE_WARMUP`) such a failure always makes the process exit with a non-zero exit code, independent of this setting.

#### LUCEE_EXTENSIONS_CONFIG_ONLY

*SysProp:* `-Dlucee.extensions.config.only`
Expand Down
6 changes: 6 additions & 0 deletions docs/recipes/warmup.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ If any configuration is invalid, the `RUN` step fails and the Docker build abort

Warmup also installs the extensions defined in `.CFConfig.json` and stores them in the image, so the container doesn't download them at startup. See [[downloading-extensions]].

### Invalid `LUCEE_EXTENSIONS` *(Lucee 9)*

If an extension defined in `LUCEE_EXTENSIONS` (`lucee.extensions`) cannot be installed, or an entry of that list cannot be parsed, warmup fails: the error is written to stderr and the deploy log, `onBuild` is not called and Lucee exits with a non-zero exit code, so the Docker build aborts instead of producing an image with missing extensions.

Outside of warmup, the same failure is only logged by default. Set `LUCEE_EXTENSIONS_FAIL_ON_ERROR=true` (`lucee.extensions.fail.on.error`) to abort a normal startup as well. See [[environment-variables-system-properties]].

## Upgrading to Lucee 7

Because Lucee 7 now validates all configuration sections during warmup, upgrading may cause your warmup to fail on settings that previously passed silently in Lucee 6.2. This is intended — it surfaces misconfigurations that were always there but hidden by lazy loading. Fix the reported settings and rebuild.
Expand Down
Loading