# Requirement file missing during Commcare deploy

**URL:** <https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118>\
**Category:** Developers\
**Created:** [July 3, 2022, 8:27pm UTC](https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118 "2022-07-03T20:27:28Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Rodolphe](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/rodolphe/32/1825_2.png) [@Rodolphe](https://forum.dimagi.com/u/Rodolphe)\
**Post date:** [July 19, 2022, 7:27pm UTC](https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118/22 "2022-07-19T19:27:46Z")

</div>

> [@Ethan\_Soergel](#):
>
> Actually I might've been mistaken about that "multiple configurations" message - I see that as well when I deploy.

I feel a bit more secure now.

> [@Ethan\_Soergel](#):
>
> Honestly I'm not sure how to proceed from here - it must be getting those old URL formats from somewhere, I'd try to figure out where.

Yes, it must get this old format somewhere when deploying.

During the deployment a **git clone /home/cchq/www/monolith/current/.git /home/cchq/www/monolith/releases/XXX** is made, so the url should be retrieved at that time (is it right?). But I have checked the configuration files, the urls is correct.

I will keep searching in that way.

I hope to find the solution soon.  
I hope you will find a solution too.

Thanks

---

<div class="post-metadata">

**Author:** ![Rodolphe](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/rodolphe/32/1825_2.png) [@Rodolphe](https://forum.dimagi.com/u/Rodolphe)\
**Post date:** [July 20, 2022, 11:58am UTC](https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118/23 "2022-07-20T11:58:22Z")

</div>

Hello @Ethan_Soergel  
I noticed something.  
My current release head is on commit **456a3073d9f798b075a743560e44437f4b9d3b81** (commecare-hq) and in this commit ([https://github.com/dimagi/commcare-hq/blob/456a3073d9f798b075a743560e44437f4b9d3b81/.gitmodules](https://github.com/dimagi/commcare-hq/blob/456a3073d9f798b075a743560e44437f4b9d3b81/.gitmodules)) **.gitmodules** have old url format .

I have a question.  
When deploy command is executed, what is it supposed to do with **.git** repository and **.gitmodules** file of current release ? Make an exact copy or copy first and pull from head inside ?

---

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [July 22, 2022, 3:31pm UTC](https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118/24 "2022-07-22T15:31:34Z")

</div>

Hi @Rodolphe here is the code that runs during deploy to do this operation - that may help understand what's going on:

> <https://github.com/dimagi/commcare-cloud/blob/c4905ab11bc1796dcae38140cdba6f3d6ccd56fe/src/commcare_cloud/fab/operations/release.py#L30-L78>

It should make a copy of the `current` directory first, then fetch and check out the deploy commit in that new directory.

[Previous page](https://forum.dimagi.com/t/requirement-file-missing-during-commcare-deploy/9118.md?page=1)
