Cannot rebuild app after recent upgrade 05/07/2025

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

/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:

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

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

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                                                  

I believe there is a bug as:

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

wants:

10-http.conf
20-https.conf

but the instruction says to comment out the providers:

  #- "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

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

7b042d6157

by doing

git reset --hard HEAD^1

The

./launcher rebuild app

does a git pull.

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.

I was able to get something working by doing:

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.

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

Got it back up and running using:

git reset --hard HEAD^1
./launcher bootstrap app
./launcher start app
2 Likes

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?

1 Like

Hit the same bug here.

2 Likes

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

3 Likes

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

6 Likes