Rebuild App - Error

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.

Any help would be appreciated.
Thanks in advance.

Anything interesting in ./launcher logs app ?

I’ll check for you.
Hold on while I login to the server.

Seems like a lot of files have this message, “file does not exist”

What do the contents of /var/discourse look like? Is that where you’re running the commands? Can you tell if there’s a container running?

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.

I don’t know if this one is fixable at all.

Do you have a valid app.yml file in /var/discourse/containers ? If not then you need to re-run the setup script as well.

1 Like

Do

apt-get update

apt-get upgrade

Then

cd /var/discourse/

./launcher rebuild app

4 Likes