Critical Errors

Critical errors indicate a problem with the Commerce on cloud infrastructure project configuration that causes deployment failure, for example incorrect, unsupported, or missing configuration for required settings. Before you can deploy, you must update the configuration to resolve these errors.

Build stage

Error codeBuild stepError description (Title)Suggested action
2Cannot write to the ./app/etc/env.php fileDeployment script cannot make required changes to the /app/etc/env.php file. Check your filesystem permissions.
3Configuration is not defined in the schema.yaml fileConfiguration is not defined in the ./vendor/magento/ece-tools/config/schema.yaml file. Check that the config variable name is correct and defined.
4Failed to parse the .magento.env.yaml fileThe ./.magento.env.yaml file format is invalid. Use a YAML parser to check the syntax and fix any errors.
5Unable to read the .magento.env.yaml fileUnable to read the ./.magento.env.yaml file. Check file permissions.
6Unable to read the .schema.yaml fileUnable to read the ./vendor/magento/ece-tools/config/magento.env.yaml file. Check file permissions and redeploy (magento-cloud environment:redeploy).
7refresh-modulesCannot write to the ./app/etc/config.php fileThe deployment script cannot make required changes to the /app/etc/config.php file. Check your filesystem permissions.
8validate-configCannot read the composer.json fileUnable to read the ./composer.json file. Check file permissions.
9validate-configThe composer.json file is missing required autoload sectionRequired autoload section is missing from the composer.json file. Compare the autoload section to the composer.json file in the Cloud template, and add the missing configuration.
10validate-configThe .magento.env.yaml file contains an option that is not declared in the schema, or an option configured with an invalid value or stageThe ./.magento.env.yaml file contains invalid configuration. Check the error log for detailed info.
11refresh-modulesCommand failed: /bin/magento module:enable --allTry to run composer update locally. Then, commit and push the updated composer.lock file. Also, check the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
12apply-patchesFailed to apply patch
13set-report-dir-nesting-levelCannot write to the file /pub/errors/local.xml
14copy-sample-dataFailed to copy sample data files
15compile-diCommand failed: /bin/magento setup:di:compileCheck the cloud.log for more information. Add VERBOSE_COMMANDS: '-vvv' into .magento.env.yaml for more detailed command output.
16dump-autoloadCommand failed: composer dump-autoloadThe composer dump-autoload command failed. Check the cloud.log for more information.
17run-balerThe command to run Baler for JavaScript bundling failedCheck the SCD_USE_BALER environment variable to verify that the Baler module is configured and enabled for JS bundling. If you do not need the Baler module, set SCD_USE_BALER: false.
18compress-static-contentRequired utility was not found (timeout, bash)
19deploy-static-contentCommand /bin/magento setup:static-content:deploy failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
20compress-static-contentStatic content compression failedCheck the cloud.log for more information.
21backup-data: static-contentFailed to copy static content into the init directoryCheck the cloud.log for more information.
22backup-data: writable-dirsFailed to copy some writable directories into the init directoryFailed to copy writable directories into the ./init folder. Check your filesystem permissions.
23Unable to create a logger object
24backup-data: static-contentFailed to clean the ./init/pub/static/ directoryFailed to clean ./init/pub/static folder. Check your filesystem permissions.
25Cannot find the Composer packageIf you installed the Adobe Commerce application version directly from the GitHub repository, verify that the DEPLOYED_MAGENTO_VERSION_FROM_GIT environment variable is configured.
26validate-configRemove Magento Braintree module configuration which is no longer supported in Adobe Commerce and Magento Open Source 2.4 and later versions.Support for the Braintree module is no longer included with Magento 2.4.0 and later. Remove the CONFIG__STORES__DEFAULT__PAYMENT__BRAINTREE__CHANNEL variable from the variables section of the .magento.app.yaml file. For Braintree payment support, use an official extension from the Commerce Marketplace instead.

Deploy stage

Error codeDeploy stepError description (Title)Suggested action
101pre-deploy: cacheIncorrect cache configuration (missing port or host)Cache configuration is missing required parameters server or port. Check the cloud.log for more information.
102Cannot write to the ./app/etc/env.php fileDeployment script cannot make required changes to the /app/etc/env.php file. Check your filesystem permissions.
103Configuration is not defined in the schema.yaml fileConfiguration is not defined in the ./vendor/magento/ece-tools/config/schema.yaml file. Check that the config variable name is correct, and that it is defined.
104Failed to parse the .magento.env.yaml fileConfiguration is not defined in the ./vendor/magento/ece-tools/config/schema.yaml file. Check that the config variable name is correct, and that it is defined.
105Unable to read the .magento.env.yaml fileUnable to read the ./.magento.env.yaml file. Check file permissions.
106Unable to read the .schema.yaml file
107pre-deploy: clean-redis-cacheFailed to clean the Redis cacheFailed to clean the Redis cache. Check that the Redis cache configuration is correct and that the Redis service is available. See Setup Redis service.
140pre-deploy: clean-valkey-cacheFailed to clean the Valkey cacheFailed to clean the Valkey cache. Check that the Valkey cache configuration is correct and that the Valkey service is available. See Setup Valkey service.
108pre-deploy: set-production-modeCommand /bin/magento maintenance:enable failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
109validate-configIncorrect database configurationCheck that the DATABASE_CONFIGURATION environment variable is configured correctly.
110validate-configIncorrect session configurationCheck that the SESSION_CONFIGURATION environment variable is configured correctly. The configuration must contain at least the save parameter.
111validate-configIncorrect search configurationCheck that the SEARCH_CONFIGURATION environment variable is configured correctly. The configuration must contain at least the engine parameter.
112validate-configIncorrect resource configurationCheck that the RESOURCE_CONFIGURATION environment variable is configured correctly. The configuration must contain at least connection parameter.
113validate-config:elasticsuite-integrityElasticSuite is installed, but the ElasticSearch service is not availableCheck that the SEARCH_CONFIGURATION environment variable is configured correctly, and verify that the Elasticsearch service is available.
114validate-config:elasticsuite-integrityElasticSuite is installed, but another search engine is usedElasticSuite is installed, but another search engine is configured. Update the SEARCH_CONFIGURATION environment variable to enable Elasticsearch, and verify the Elasticsearch service configuration in the services.yaml file.
115Database query execution failed
116install-update: setupCommand /bin/magento setup:install failedCheck the cloud.log and install_upgrade.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
117install-update: config-importCommand app:config:import failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
118Required utility was not found (timeout, bash)
119install-update: deploy-static-contentCommand /bin/magento setup:static-content:deploy failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
120compress-static-contentStatic content compression failedCheck the cloud.log for more information.
121deploy-static-content:generateCannot update the deployed versionCannot update the ./pub/static/deployed_version.txt file. Check your filesystem permissions.
122clean-static-contentFailed to clean static content files
123install-update: split-dbCommand /bin/magento setup:db-schema:split failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
124clean-view-preprocessedFailed to clean the var/view_preprocessed folderUnable to clean the ./var/view_preprocessed folder. Check your filesystem permissions.
125install-update: reset-passwordFailed to update the /var/credentials_email.txt fileFailed to update the /var/credentials_email.txt file. Check your filesystem permissions.
126install-update: updateCommand /bin/magento setup:upgrade failedCheck the cloud.log and install_upgrade.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
127clean-cacheCommand /bin/magento cache:flush failedCheck the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
128disable-maintenance-modeCommand /bin/magento maintenance:disable failedCheck the cloud.log for more information. Add VERBOSE_COMMANDS: '-vvv' into .magento.env.yaml for more detailed command output.
129install-update: reset-passwordUnable to read reset password template
130install-update: cache_typeCommand failed: php ./bin/magento cache:enableCommand php ./bin/magento cache:enable runs only when Adobe Commerce was installed but ./app/etc/env.php file was absent or empty at the beginning of the deployment. Check the cloud.log for more information. Add VERBOSE_COMMANDS: '-vvv' into .magento.env.yaml for more detailed command output.
131install-updateThe crypt/key key value does not exist in the ./app/etc/env.php file or the CRYPT_KEY cloud environment variableThis error occurs if the ./app/etc/env.php file is not present when Adobe Commerce deployment begins, or if the crypt/key value is undefined. If you migrated the database from another environment, retrieve the crypt key value from that environment. Then, add the value to the CRYPT_KEY cloud environment variable in your current environment. See Adobe Commerce encryption key. If you accidentally removed the ./app/etc/env.php file, use the following command to restore it from the backup files created from a previous deployment: ./vendor/bin/ece-tools backup:restore CLI command."
132Cannot connect to the Elasticsearch serviceCheck for valid Elasticsearch credentials and verify that the service is running
137Cannot connect to the OpenSearch serviceCheck for valid OpenSearch credentials and verify that the service is running
133validate-configRemove Magento Braintree module configuration which is no longer supported in Adobe Commerce or Magento Open Source 2.4 and later versions.Support for the Braintree module is no longer included with Adobe Commerce or Magento Open Source 2.4.0 and later. Remove the CONFIG__STORES__DEFAULT__PAYMENT__BRAINTREE__CHANNEL variable from the variables section of the .magento.app.yaml file. For Braintree support, use an official Braintree Payments extension from the Commerce Marketplace instead.
134validate-configAdobe Commerce and Magento Open Source 2.4.0 require Elasticsearch service to be installedInstall Elasticsearch service
138validate-configAdobe Commerce and Magento Open Source 2.4.4 requires OpenSearch or Elasticsearch service to be installedInstall OpenSearch service
135validate-configThe search engine must be set to Elasticsearch for Adobe Commerce and Magento Open Source >= 2.4.0Check the SEARCH_CONFIGURATION variable for the engine option. If it is configured, remove the option, or set the value to “elasticsearch”.
136validate-configSplit Database was removed starting from Adobe Commerce and Magento Open Source 2.5.0.If you use a split database you have to revert to or migrate to a single database or use an alternative approach.
139validate-configIncorrect search engineThis Adobe Commerce or Magento Open Source version does not support OpenSearch. Use versions 2.3.7-p3, 2.4.3-p2, or later