# Cannot rebuild app after recent upgrade 05/07/2025

**URL:** https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213
**Category:** Bug
**Tags:** fixed
**Created:** [May 7, 2025, 10:06pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213 "2025-05-07T22:06:41Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![adflkjlvm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adflkjlvm/32/486885_2.png) [@adflkjlvm](https://meta.discourse.org/u/adflkjlvm)
#### Post date: [May 7, 2025, 10:06pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/1 "2025-05-07T22:06:41Z")

</div>

I am now getting a failure trying to update my discourse to the latest version. The file path:

```plaintext
/etc/nginx/conf.d/outlets/server/20-https.conf

```

does not exist on my Ubuntu 24.04 virtual instance. Or maybe the error below means that it is missing in the nginx install in the docker image. There appears to be an issue in `pups-1.2.1`.

Any help appreciated. I am not using `nginx` on my main system, as I am using:

```plaintext
  - "templates/web.socketed.template.yml"

```

as suggested in:  
[https://meta.discourse.org/t/installing-discourse-behind-reverse-proxy-using-recommended-supported-installation/300191](https://meta.discourse.org/t/installing-discourse-behind-reverse-proxy-using-recommended-supported-installation/300191)

```plaintext
FAILED                                                                                                            
--------------------                                                                                              
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/nginx/conf.d/outlets/server/20-https.conf            
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/replace_command.rb:11:in `read'      
replace failed with the params {"filename"=>"/etc/nginx/conf.d/outlets/server/20-https.conf", "from"=>"/listen 443
 ssl;(\\nlisten \\[::\\]:443 ssl;)?/", "to"=>"listen unix:/shared/nginx.https.sock ssl;\nset_real_ip_from unix:;"}
bootstrap failed with exit code 1                                                                                 
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.       
./discourse-doctor may help diagnose the problem.                                                                 
e3176c7debb5ed1c106765e76f5896b83dac3bb21dd3478b2ac043cbcb8032e1                                                  

```

---

<div class="post-metadata">

### Author: ![adflkjlvm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adflkjlvm/32/486885_2.png) [@adflkjlvm](https://meta.discourse.org/u/adflkjlvm)
#### Post date: [May 7, 2025, 10:54pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/4 "2025-05-07T22:54:02Z")

</div>

I believe there is a bug as:

```plaintext
  - "templates/web.socketed.template.yml"

```

wants:

```plaintext
10-http.conf
20-https.conf

```

but the instruction says to comment out the providers:

```plaintext
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"                                                                                   

```

and if I comment the first file back in, the `web.ssl.template.yml` deletes `10-http.conf`

---

<div class="post-metadata">

### Author: ![adflkjlvm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adflkjlvm/32/486885_2.png) [@adflkjlvm](https://meta.discourse.org/u/adflkjlvm)
#### Post date: [May 7, 2025, 11:33pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/5 "2025-05-07T23:33:45Z")

</div>

to compound the situation, when I try to avoid the last commit:

```plaintext
7b042d6157

```

by doing

```plaintext
git reset --hard HEAD^1

```

The

```plaintext
./launcher rebuild app

```

does a `git pull`.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 7, 2025, 11:38pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/6 "2025-05-07T23:38:12Z")

</div>

I think that if you do a

./launcher bootstrap app

It won’t do the pull. When it’s done you can destroy and start app. You might need to stop app if it’s running now.

---

<div class="post-metadata">

### Author: ![adflkjlvm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adflkjlvm/32/486885_2.png) [@adflkjlvm](https://meta.discourse.org/u/adflkjlvm)
#### Post date: [May 8, 2025, 12:18am UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/8 "2025-05-08T00:18:43Z")

</div>

I was able to get something working by doing:

```plaintext
git reset --hard HEAD^1
git checkout -b mybranch
./launcher rebuild app

```

so it appears that commit `7b042d6157` is resulting in issues with my setup.

---

<div class="post-metadata">

### Author: ![MarkoK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markok/32/377309_2.png) [@MarkoK](https://meta.discourse.org/u/MarkoK)
#### Post date: [May 8, 2025, 4:27am UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/9 "2025-05-08T04:27:56Z")

</div>

I’m getting the same error message here.  
Using also Discourse behind reverse proxy.

Got it back up and running using:

```plaintext
git reset --hard HEAD^1
./launcher bootstrap app
./launcher start app

```

---

<div class="post-metadata">

### Author: ![TypicalThieves](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/typicalthieves/32/502207_2.png) [@TypicalThieves](https://meta.discourse.org/u/TypicalThieves)
#### Post date: [May 8, 2025, 4:50am UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/10 "2025-05-08T04:50:53Z")

</div>

Came here with the same issue, tried doing a redeploy to upgrade & install a plugin. Using Discourse behind reverse proxy too.

So, this is a Discourse bug?

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [May 8, 2025, 4:58pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/11 "2025-05-08T16:58:42Z")

</div>

Hit the same bug here.

---

<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: [May 9, 2025, 2:34am UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/12 "2025-05-09T02:34:53Z")

</div>

It looks related to this commit by @nbianca , putting a high priority tag on this, we will start working on a fix very soon.

[https://github.com/discourse/discourse\_docker/commit/7b042d6157555c886e1cdcf77e8cb67c56ff8333](https://github.com/discourse/discourse_docker/commit/7b042d6157555c886e1cdcf77e8cb67c56ff8333)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 9, 2025, 3:10am UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/15 "2025-05-09T03:10:24Z")

</div>

We have reverted the changes for now while we work towards a fix.

[https://github.com/discourse/discourse\_docker/pull/958](https://github.com/discourse/discourse_docker/pull/958)

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [May 9, 2025, 1:33pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/16 "2025-05-09T13:33:20Z")

</div>

Thank you for the report. I have been working on a fix and will be merged soon:

[https://github.com/discourse/discourse\_docker/pull/959](https://github.com/discourse/discourse_docker/pull/959)

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [May 21, 2025, 12:55pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-after-recent-upgrade-05-07-2025/365213/19 "2025-05-21T12:55:36Z")

</div>


