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_*.vars files are missing.
  • Deployment logs report no matches for ams_*.vars in /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:

  1. 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.

  2. Check for the required ams_*.vars files:

    • Ensure that at least one ams_*.vars file, such as ams_default.vars, exists in the conf.d/variables directory 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/.
  3. Update the Include directive if needed. If AMS-specific variables aren’t required, update /etc/httpd/conf.d/001_init_ams_vars.conf to include the appropriate variable file for the configuration, for example: Include /etc/httpd/conf.d/variables/custom.vars
    Alternatively, change the directive to IncludeOptional to avoid a fatal error when the wildcard doesn’t match any files: IncludeOptional /etc/httpd/conf.d/variables/ams_*.vars

  4. 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.

  5. After making the required changes, rerun the Dispatcher deployment pipeline in Cloud Manager.

  6. Verify that the deployment completes successfully and that Apache starts without errors.

recommendation-more-help
experience-cloud-kcs-help-kbarticles