Adobe Commerce deployment troubleshooter
CREATED FOR:
- Developer
Stuck deployments and failed deployments on Adobe Commerce can be solved using the Deployment troubleshooter tool. Click on each question to reveal the answer in each step of the troubleshooter.
Step 1 - Verify the service is running
Stuck Deployment – Is Adobe Commerce on cloud infrastructure service up? Check Adobe Commerce Cloud.
a. YES – Proceed to Step 2.
b. NO – Maintenance or global outages. Check for estimated duration and updates.
Step 2 - Check deployments in other environments
To get a list of ongoing activities run the following command using magento-cloud CLI (if you have only been added to one cloud project). Note: Check you are on the latest version of magento-cloud CLI. For steps, refer to Update the CLI in the Commerce on Cloud Infrastructure guide.
magento-cloud --state=in_progress
To get a list of ongoing activities run the following command using magento-cloud CLI (if you have been added to multiple projects):
magento-cloud -p <project-id or project-url> --state=in_progress
To find information about an existing deployment activity (refer to Checking deployment log if Cloud UI has “log snipped” error
for details) you can run this command to obtain a running log of that activity:
magento-cloud activity:log <activity-id> [OPTIONAL: <-p project-id or project-url>]
a. YES – Troubleshoot the other environment blocking deployment in the existing environment. Proceed to Step 3.
b. NO – Troubleshoot the current environment. Proceed to Step 3.
Step 3 - Verify SSH on all nodes
Step 4 - Verify all services running
Step 5 - Verify Bitbucket running
b. NO – Check deployment log errors in the Build and Deploy logs. Proceed to Step 6.
Step 6 - Check error codes
Step 7 - 403 Forbidden error
Step 8 - Verify cron jobs running
ps aufxx |grep cron
.php vendor/bin/ece-tools cron:kill
and then php vendor/bin/ece-tools cron:unlock
. If you were in the process of merging one environment into another, check both environments for running crons.b. NO – Proceed to Step 17.
Step 9 - Application deployable to remote cluster error
Step 10 - Check sufficient storage
Step 11 - Verify disk space
b. NO – Proceed with Step 12.
Step 12 - Environment redeployment failed error
Step 13 - Check for Elasticsearch upgrade fail
b. NO – Proceed to Step 14.
Step 14 - Check space limits
Step 15 - Elasticsearch version error
Step 16 - Verify Composer config
Step 17 - Check for long running processes
a. YES – Identify long running processes and then kill processes:
- Run the following command in the terminal:
ps aufx
. - Locate the PID of the long-running process.
- Terminate the process using
kill -9 <PID>
.
Monitor deployments for reoccurrence.
b. NO – Proceed to Step 18.
Step 18 - Check for post hook failure
b. NO – Proceed to Step 19.
Step 19 - Check if third-party extensions block deployment
b. NO – Proceed to Step 20.
Step 20 - Check for slow queries
Check slow query log and MySQL show processlist.
a. YES – Kill any long running queries. Review MySQL Kill Syntax.
b. NO – Submit a support ticket.
Step 21 - Downgrade Elasticsearch version
b. NO – Submit a support ticket.