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 code
Build step
Error description (Title)
Suggested action
2
Can not write to the ./app/etc/env.php file
Deployment script can not make required changes to the /app/etc/env.php file. Check your filesystem permissions.
3
Configuration is not defined in the schema.yaml file
Configuration is not defined in the ./vendor/magento/ece-tools/config/schema.yaml file. Check that the config variable name is correct and defined.
4
Failed to parse the .magento.env.yaml file
The ./.magento.env.yaml file format is invalid. Use a YAML parser to check the syntax and fix any errors.
5
Unable to read the .magento.env.yaml file
Unable to read the ./.magento.env.yaml file. Check file permissions.
6
Unable to read the .schema.yaml file
Unable to read the ./vendor/magento/ece-tools/config/magento.env.yaml file. Check file permissions and redeploy (magento-cloud environment:redeploy).
7
refresh-modules
Can not write to the ./app/etc/config.php file
The deployment script can not make required changes to the /app/etc/config.php file. Check your filesystem permissions.
8
validate-config
Can not read the composer.json file
Unable to read the ./composer.json file. Check file permissions.
9
validate-config
The composer.json file is missing required autoload section
Required 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.
10
validate-config
The .magento.env.yaml file contains an option that is not declared in the schema, or an option configured with an invalid value or stage
The ./.magento.env.yaml file contains invalid configuration. Check the error log for detailed info.
11
refresh-modules
Command failed: /bin/magento module:enable --all
Try 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.
12
apply-patches
Failed to apply patch
13
set-report-dir-nesting-level
Can not write to the file /pub/errors/local.xml
14
copy-sample-data
Failed to copy sample data files
15
compile-di
Command failed: /bin/magento setup:di:compile
Check the cloud.log for more information. Add VERBOSE_COMMANDS: '-vvv' into .magento.env.yaml for more detailed command output.
16
dump-autoload
Command failed: composer dump-autoload
The composer dump-autoload command failed. Check the cloud.log for more information.
17
run-baler
The command to run Baler for Javascript bundling failed
Check 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.
18
compress-static-content
Required utility was not found (timeout, bash)
19
deploy-static-content
Command /bin/magento setup:static-content:deploy failed
Check the cloud.log for more information. For more detailed command output, add the VERBOSE_COMMANDS: '-vvv' option to the .magento.env.yaml file.
20
compress-static-content
Static content compression failed
Check the cloud.log for more information.
21
backup-data: static-content
Failed to copy static content into the init directory
Check the cloud.log for more information.
22
backup-data: writable-dirs
Failed to copy some writable directories into the init directory
Failed to copy writable directories into the ./init folder. Check your filesystem permissions.
23
Unable to create a logger object
24
backup-data: static-content
Failed to clean the ./init/pub/static/ directory
Failed to clean ./init/pub/static folder. Check your filesystem permissions.
25
Can not find the Composer package
If you installed the Adobe Commerce application version directly from the GitHub repository, verify that the DEPLOYED_MAGENTO_VERSION_FROM_GIT environment variable is configured.
26
validate-config
Remove 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.