Web tier Dispatcher deployment fails due to missing variable files in AEM as a Cloud Service
Adobe Experience Manager as a Cloud Service (AEMaaCS) web tier Dispatcher deployments may fail when required ams_*.vars files are missing from conf.d/variables, causing Apache startup to fail. To resolve the issue, add the required variable files or update the Include directive, validate the Dispatcher configuration, and redeploy.
Description description
Environment
- Adobe Experience Manager as a Cloud Service (AEMaaCS)
- Dispatcher configuration using a web tier deployment pipeline
Issue/Symptoms
- Dispatcher deployment fails in Cloud Manager.
- Apache fails to start because required
ams_*.varsfiles are missing. - Deployment logs report no matches for
ams_*.varsin/etc/httpd/conf.d/variables. - Dispatcher deployment logs can’t be downloaded from the Cloud Manager UI.
- The issue occurs with web tier pipelines when the Dispatcher configuration depends on AMS files that aren’t included in the code package.
- Full-stack deployments include AMS baseline files by default.
Root cause
The Dispatcher code package doesn’t contain any ams_*.vars files in conf.d/variables, or the configuration overrides or removes the AMS baseline. TheInclude directive in 001_init_ams_vars.conf expects these files, and Apache treats the absence of a matching file as a fatal syntax error.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the Dispatcher configuration source and confirm whether it’s based on AMS Dispatcher files or was migrated from AMS to AEM as a Cloud Service.
-
Check for the required
ams_*.varsfiles:- Ensure that at least one
ams_*.varsfile, such asams_default.vars, exists in theconf.d/variablesdirectory of the Dispatcher code package, for example,dispatcher/src/conf.d/variables/. - If the files are missing, add the required variable files to
dispatcher/src/conf.d/variables/.
- Ensure that at least one
-
Update the
Includedirective if needed. If AMS-specific variables aren’t required, update/etc/httpd/conf.d/001_init_ams_vars.confto include the appropriate variable file for the configuration, for example:Include /etc/httpd/conf.d/variables/custom.vars
Alternatively, change the directive toIncludeOptionalto avoid a fatal error when the wildcard doesn’t match any files:IncludeOptional /etc/httpd/conf.d/variables/ams_*.vars -
Run the Dispatcher SDK validator locally against the Dispatcher configuration, for example,
dispatcher/src, to verify that all required files are present and the configuration is valid. -
After making the required changes, rerun the Dispatcher deployment pipeline in Cloud Manager.
-
Verify that the deployment completes successfully and that Apache starts without errors.