# Bug With Rebuilding version: v2.4.0.beta1

**URL:** https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332
**Category:** Self-hosting
**Created:** [February 22, 2020, 6:31am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332 "2020-02-22T06:31:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [February 22, 2020, 6:31am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/1 "2020-02-22T06:31:49Z")

</div>

Context: I’m creating a staging site to test updating production to the latest version.

./launcher rebuild web\_only fails with

`chown: cannot dereference '/var/www/discourse/public/plugins/discourse-internet-explorer': No such file or directory`

```yaml
params:
  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed
  #version: 760fbf0c417d09559dc3d4267df24e55e67e604a
  version: v2.4.0.beta1

```

Looks like it’s related to

> [@Error rebuilding on 2.3.8](https://meta.discourse.org/t/error-rebuilding-on-2-3-8/136992):
>
> Hi there! I have revision: stable in my containers/app.yml which currently resolves to v2.3.8. I am getting an error when trying to rebuild the container: I, [2019-12-24T17:46:51.163113 #1] INFO -- : \> cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+ chown: cannot dereference '/var/www/discourse/public/plugins/discourse-internet-explorer': No such file or directory It looks like the discourse-internet-explorer plugin was introduced in the v2.4.0 …

Any ideas on how to work around this?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2020, 6:05am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/2 "2020-02-23T06:05:54Z")

</div>

Yeah doing historic installs is not going to be easy, recommend you choose an earlier base image. You can control that with the `base_image: ....` element.

---

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [February 23, 2020, 8:44pm UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/3 "2020-02-23T20:44:02Z")

</div>

> [@sam](#):
>
> recommend you choose an earlier base image. You can control that with the `base_image: ....` element.

In the params: section?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2020, 8:54pm UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/4 "2020-02-23T20:54:36Z")

</div>

It is a top level element

---

<div class="post-metadata">

### Author: ![Jite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jite/32/179162_2.png) [@Jite](https://meta.discourse.org/u/Jite)
#### Post date: [May 4, 2020, 7:29am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/5 "2020-05-04T07:29:20Z")

</div>

Hi there! I seem to get this error on latest version (2.5.0.beta3) while bootstrapping (I have a container built and running, but need to rebuild it to remove plugins and fix some configs).  
Are there any obvious ways to fix it or will I need to clean-rebuild with a downtime the users of the forum will hate me for? 🙂

---

<div class="post-metadata">

### Author: ![chandan.gupta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chandan.gupta/32/180765_2.png) [@chandan.gupta](https://meta.discourse.org/u/chandan.gupta)
#### Post date: [May 5, 2020, 8:39am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/6 "2020-05-05T08:39:33Z")

</div>

Updating the discourse\_docker repo before rebuilding the image worked for me.

---

<div class="post-metadata">

### Author: ![Jite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jite/32/179162_2.png) [@Jite](https://meta.discourse.org/u/Jite)
#### Post date: [May 5, 2020, 8:43am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/7 "2020-05-05T08:43:25Z")

</div>

By pulling the image or the repository itself? I will try that! Tyvm 🙂

---

<div class="post-metadata">

### Author: ![chandan.gupta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chandan.gupta/32/180765_2.png) [@chandan.gupta](https://meta.discourse.org/u/chandan.gupta)
#### Post date: [May 5, 2020, 11:31am UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/8 "2020-05-05T11:31:40Z")

</div>

I meant pulling the repository itself. There are a few recent commits in `discourse_docker` repo that fixes the issue due to removed plugins. I was working off a month-old repo which didn’t have those fixes. A git fetch/git merge helped.

---

<div class="post-metadata">

### Author: ![Jite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jite/32/179162_2.png) [@Jite](https://meta.discourse.org/u/Jite)
#### Post date: [May 5, 2020, 12:52pm UTC](https://meta.discourse.org/t/bug-with-rebuilding-version-v2-4-0-beta1/142332/9 "2020-05-05T12:52:57Z")

</div>

Aye, tried that (forgot to come back here and say something, hehe). Working great now!

Thank you for the help 🙂
