AEM Cloud Manager build image step fails due to outdated Docker base image

Adobe Experience Manager (AEM) Cloud Manager may fail during the Build Image step when an outdated Docker base image uses expired Debian repository metadata, causing apt update to fail, while the legacy python package may also be unavailable in newer Debian releases. To resolve the issue, update the Docker base image, replace the legacy Python package as needed, commit the changes, and rerun the pipeline.

Description description

Environment

Adobe Experience Manager (AEM) Cloud Manager (all versions)

Issue/Symptoms

  • The Cloud Manager pipeline fails during the Build Image step and blocks deployment.
  • The failure occurs while building the Docker image for the ui.tests (Cypress) module.
  • The installation fails at: RUN apt -qqy update && apt -qqy --no-install-recommends install python build-essential
  • The following error appears: E: Release file for http://deb.debian.org/debian-security/dists/bullseye-security/InRelease is expired (invalid since …). Updates for this repository will not be applied.
  • The legacy python package may also be unavailable in the newer Debian release.

Root cause

The Docker base image uses expired Debian repository metadata, causing apt update to fail. In addition, the legacy python package isn’t available in newer Debian releases.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Edit the Dockerfile for the affected module, such as ui.tests.
  2. Change the outdated base image, such as cypress/included:12.12.0, to a newer supported version so that the image uses current Debian repositories.
  3. If updating the base image isn’t feasible, modify the aptcommand to tolerate expired repository metadata: RUN apt-get -o Acquire::Check-Valid-Until=false -qqy update && apt-get -qqy --no-install-recommends install ...
  4. Replace python withpython3 or python-is-python3 in the installation command because the legacy python package isn’t available in recent Debian releases.
  5. Commit the changes to the repository and trigger the pipeline again in AEM Cloud Manager.
  6. Verify that the Build Image step completes successfully.
recommendation-more-help
experience-cloud-kcs-help-kbarticles