Deployment fails Fastly module incompatible Adobe Commerce version
UPDATED: February 29, 2019
This article provides a fix for when deployment fails because the Fastly module is incompatible with your current Adobe Commerce version.
Problem: Deployment fails after a new commit and push, with the error message similar to the following:
[Exception] Warning: Missing argument 3 for Fastly\Cdn\Plugin\..., called in /app/vendor/magento/framework/Interception/Interceptor.php ... and defined in /app/vendor/fastly/magento2/Plugin/ExcludeFilesFromMinification.php ...
Cause: backward incompatible changes in the Fastly module v1.2.79.
Solution (temporary): upgrade the Fastly module to version 1.2.82 or higher and upload a new VCL in the Commerce Admin. Then, commit and push your changes to trigger a successful deployment.
- Adobe Commerce on-premises 2.1.X
- Adobe Commerce on cloud infrastructure 2.1.X
- Fastly module 1.2.79
When you commit and push your changes to the Integration, Production, or Staging environment, usually the next step is triggering the deployment process. This is done automatically in Adobe Commerce on cloud infrastructure edition and manually in Adobe Commerce on-premises.
The deployment might fail with the following error messages:
[2019-01-23 00:00:00] INFO: php ./bin/magento setup:static-content:deploy --ansi --no-interaction --jobs 1 --exclude-theme Magento/luma en_GB en_US
[2019-01-23 00:00:00] CRITICAL:
Requested languages: en_GB, en_US
Requested areas: frontend, adminhtml
Requested themes: Magento/blank, Magento/backend
=== frontend -> Magento/blank -> en_GB ===
Warning: Missing argument 3 for Fastly\Cdn\Plugin\ExcludeFilesFromMinification::afterGetExcludes(), called in /app/vendor/magento/framework/Interception/Interceptor.php on line 152 and defined in /app/vendor/fastly/magento2/Plugin/ExcludeFilesFromMinification.php on line 38
[2019-01-23 000:00:00] INFO: Set flag: var/.deploy_is_failed
[2019-01-23 00:00:00] CRITICAL: Command php ./bin/magento setup:static-content:deploy --ansi --no-interaction --jobs 1 --exclude-theme Magento/luma en_GB en_US returned code 1
If you are using Adobe Commerce on cloud infrastructure solution, you will see this error message in the deploy log. For the Adobe Commerce on-premises, you will see the error in the command line.
The issue is caused by the backward incompatible changes in the Fastly module v1.2.79.
Upgrade the Fastly module to version 1.2.82 or higher.
To do this, take the following steps:
- Execute one of the following commands:
- Commit and push the changes, and trigger the deployment process if it is not done automatically.
- In the Admin, upload the new VCL to Fastly.