User _ESP is encountering errors while trying to rebuild their Discourse app using ./launcher rebuild app. The initial error involves Docker failing due to an “invalid reference format” and missing files, followed by a failed bootstrap. After reinstalling, a new error appears: Pups::ExecError due to unconfigured mail settings (DISCOURSE_SMTP_ADDRESS still set to default smtp.example.com). _ESP confirms the issue persists. Ghan suggests checking ./launcher logs app and the contents of /var/discourse, asking if the container is running and whether app.yml exists in /var/discourse/containers — implying a possible misconfiguration or incomplete setup. IAmGav recommends running apt-get update && upgrade, then rebuilding from /var/discourse/. The core issue appears to be either a misconfigured app.yml or incomplete setup steps preventing successful rebuild. Ghan emphasizes re-running the setup script if app.yml is missing. Discourse Doctor was tried but offered no direct solution. The thread seeks resolution through environment checks, config validation, and system updates.
Hi there,
So I’m trying to rebuild my Discourse app to get it started up, but I keep getting this error.
./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), 2.93 KiB | 2.93 MiB/s, done.
From https://github.com/discourse/discourse_docker
* [new branch] add-maxmind-key-line-(commented-out)-to-default-config -> origin/add-maxmind-key-line-(commented-out)-to-default-config
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && /pups/bin/pups --stdin
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.
cat: cids/app_bootstrap.cid: No such file or directory
"docker rm" requires at least 1 argument.
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
rm: cannot remove 'cids/app_bootstrap.cid': No such file or directory
** 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.
That is the full output from running the command.
And I’ve tried running Discourse Doctor several times, it didn’t supply anything directly to help the issue.
So, I decided to just quickly redo the installation, now when I run,
./launcher rebuild app
It outputs this as the error,
FAILED
--------------------
Pups::ExecError: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end' failed with return #<Process::Status: pid 192 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "/usr/local/bin/ruby -e 'if ENV[\"DISCOURSE_SMTP_ADDRESS\"] == \"smtp.example.com\"; puts \"Aborting! Mail is not configured!\"; exit 1; end'"
75286dddc94d10daec3fb41a586df799de5eb633374f13c50a976aab68f6add6
** 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.