# Deploy failed - Composer

**URL:** https://discourse.roots.io/t/deploy-failed-composer/20026
**Category:** bedrock
**Tags:** deploys
**Created:** 2021-02-06T11:02:31Z
**Posts:** 13
**Showing post:** 5 of 13

## Post 5 by @mattia — 2021-02-06T16:52:50Z

thanks @Twansparant, I followed this, but it didn’t work for me :sob: :sob: :sob:

I updated composer locally to version 2 (`Composer version 2.0.9 2021-01-27 16:09:27`)

My **/group\_vars/all/main.yml** is like this

 ![Screenshot 2021-02-06 at 16.25.09](https://discourse.roots.io/uploads/default/original/2X/1/1b80b4df86476bd863baeba7e9a3e2e47e64537b.png)

if I SSH into my vagrant box and I check the composer --version I can see (`Composer version 2.0.9 2021-01-27 16:09:27`)

my site/composer.json is like

 ![Screenshot 2021-02-06 at 16.29.49](https://discourse.roots.io/uploads/default/original/2X/9/94bef2514f676a4cca734cc70436c2104b221e28.png)

and my theme’s `composer.json` is

 ![Screenshot 2021-02-06 at 16.32.17](https://discourse.roots.io/uploads/default/original/2X/e/ee33de537b5d9e7486b3c5e707ff669a8d730b2c.png)

I SSH into staging remote server and I can see (`Composer version 2.0.9 2021-01-27 16:09:27`)

of course, I committed all these changes and I tried to re-provision the server and re-deploy multiple times, but with no luck.

I don’t know what else I can try :sob:

this is the error that I have (with composer 1 or composer 2)

 ![Screenshot 2021-02-06 at 16.41.52](https://discourse.roots.io/uploads/default/original/2X/a/a4fbbf06088bbeac2607aaae0396f0d13b3f9fd4.png)

I am happy to revert to composer 1 (maybe it is easier) but when I tried [this](https://discourse.roots.io/t/trellis-1-7-0-with-composer-1-x/19766), the vagrant box and the DO droplet still have composer 2.

I happy to pay if somebody can support me with this, because I run out of possibility. (I am stuck at this point for 2 days, nearly 3 days, the website is ready but I can’t push it live because of this error)

thanks :pray:

---

_[View the full topic](https://discourse.roots.io/t/deploy-failed-composer/20026)._
