# Rebuild fails with yarn errors

**URL:** <https://meta.discourse.org/t/rebuild-fails-with-yarn-errors/272189>\
**Category:** Self-hosting\
**Created:** [July 19, 2023, 8:51pm UTC](https://meta.discourse.org/t/rebuild-fails-with-yarn-errors/272189 "2023-07-19T20:51:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [July 20, 2023, 2:38am UTC](https://meta.discourse.org/t/rebuild-fails-with-yarn-errors/272189/10 "2023-07-20T02:38:03Z")

</div>

The second line tells the whole story

```plaintext
fatal: not a git repository (or any parent up to mount point /var)

```

Your `/var/discourse` directory is not a git repository, which breaks our auto-update of launcher and the tools we use to bootstrap Discourse, which in turn means you are stuck in an old docker image.

You need to undo the changes you did to break that.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-fails-with-yarn-errors/272189)._
