This article provides a solution for the Magento Commerce issue, where deployment gets stuck, and the following error message can be found in the deploy log: "Error: Unable to upload the application to the remote cluster".
Affected products and versions:
- Magento Commerce Cloud
- all versions
Steps to reproduce
Trigger deployment manually or by performing a merge, push, or synchronization of your environment.
Deployment gets stuck and in the deployment error log in Cloud UI, the following error message is displayed: "Error: Unable to upload the application to the remote cluster" found in deploy log after failed deployment, site may display error "503 first byte timeout".
Deployment is completed successfully.
The problem is caused by the outage of available storage.
You can consider cleaning the log directories and/or increasing disk space.
Directories that be considered for clean up:
For details on how increase disk space if you on the Starter plan, see Increase disk space for Integration environment on Cloud. The same instructions can be used for increasing space of Pro plan Integration environment.
For Pro Production/Staging, you need to file a ticket to Magento Support and request increase disk space. But typically, you will not have to deal with this on Staging/Production of the Pro plan, because Magento monitors these parameters for you, and alerts and/or takes actions, according to the contract.