Site wont rebuild

I am trying to install a plugin as i have many times,

I edited the app.yml to include the link to the github repo, saved and input the command to rebuild.

After rebuilding the site is not functioning,ERR CONNECT REFUSED".

In the rebuilding log i see the following which i assume it indicative of the issue: ’
2019-01-29 17:07:13.425 UTC [68] LOG: worker process: logical replication launcher (PID 77) exited with exit code 1

Any advice/guidance would be hugely appreciated

-Adding: I did sftp in and download the yml file and put it in a validator, so its confirmed good and not simply bad formatting - the only change made was adding the new line the - git clone {{repo link}}

I think we might need more of the logs. But sometimes I need to reboot the server to rebuild


or if it still doesn’t work

service docker restart

And try another rebuild. It happens when something doesn’t close or restart correctly

Which plugin is it? Is it confirmed working with 2.2b10?

Does commenting the line out or removing it allow a rebuild to complete?

1 Like

I am trying to install OpenID Connect Authentication Plugin;

The site was updated to the latest discourse bits and working fine however even commenting out the newly added plugin does not allow rebuild to complete successfully.

will report back soon after rebooting the machine and restarting docker

What if you comment out all plugins beyond the default docker manager?

If you’ve just upgraded to b10 you may be carrying another plugin which is incompatible and unrelated to the change you believe is leading to the failures.

1 Like

Hmm troubling for me - I rebooted the machine, restarted docker, and commenting out all plugins except docker manager and rebuild, same results.

let me output the rebuild log to a text file and share; stay tuned!


Will generate the logs for you.

1 Like

Not sure why i only get the following output from .launcher rebuild app > log.txt but here is what it gave me.
Ensuring launcher is up to date Fetching origin Launcher is up-to-date Stopping old container app cd /pups && git pull && /pups/bin/pups --stdin Already up-to-date. _._ _.-``__ ''-._ _.-`` . _. ''-._ Redis 3.0.6 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .- | , ) Running in standalone mode |-.-...- __…-.``-.|’_.-'| Port: 6379 | -._ ._ / _.-' | PID: 185 -._ -._ -./ .-’ .-’
-.__.-' _.-'_.-'| | -.
-._ _.-'_.-' | -._ -._-..-’.-’ .-’
-.__.-' _.-'_.-'| | -.
-._ _.-'_.-' | -._ -._-.
.-’_.-’ _.-’
-._ -..-’ _.-’
-._ _.-' -.

185:M 29 Jan 18:46:24.588 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
185:M 29 Jan 18:46:24.588 # Server started, Redis version 3.0.6
185:M 29 Jan 18:46:24.589 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
185:M 29 Jan 18:46:24.589 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
185:M 29 Jan 18:46:24.624 * DB loaded from disk: 0.035 seconds
185:M 29 Jan 18:46:24.624 * The server is now ready to accept connections on port 6379
227:M 29 Jan 18:46:34.824 # Creating Server TCP listening socket *:6379: bind: Address already in use
185:signal-handler (1548787823) Received SIGTERM scheduling shutdown...
185:M 29 Jan 18:50:23.523 # User requested shutdown...
185:M 29 Jan 18:50:23.524 * Saving the final RDB snapshot before exiting.
185:M 29 Jan 18:50:23.559 * DB saved on disk
185:M 29 Jan 18:50:23.559 # Redis is now ready to exit, bye bye...
Removing old container


here is the app.yml redacted:

## this is the all-in-one, standalone Discourse Docker container template
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
## visit to validate this file as needed

  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.ssl.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  # - "templates/web.ssl.template.yml"
  # - "templates/web.letsencrypt.ssl.template.yml"

## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see for details
  - "80:80"   # http
  - "443:443" # https

  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  #db_shared_buffers: "256MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

  LANG: en_US.UTF-8

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override

  ## TODO: The domain name this Discourse instance will respond to

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example ','

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_PORT: 25                        # (optional, default 587)
  DISCOURSE_SMTP_USER_NAME:       # required
  DISCOURSE_SMTP_PASSWORD:               # required, WARNING the char '#' in pw can cause problems!
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate

  ## The CDN address for this Discourse instance (configured to pull)
  ## see for details

## The Docker container is stateless; all data is stored in /shared
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## Plugins go here
## see for details
    - exec:
        cd: $home/plugins
          - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone      
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
## Any custom commands to run after building
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email=''"
  - exec: echo "End of custom commands"

discourse doctor output:

DISCOURSE DOCTOR Tue Jan 29 19:17:39 UTC 2019
OS: Linux Forum 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x8                                                                                                                                                                                                                                             6_64 x86_64 x86_64 GNU/Linux

Found containers/app.yml

==================== YML SETTINGS ====================
SMTP_ADDRESS=d|||||||||||||||||||||| # required
SMTP_PASSWORD=# required, WARNING the char '#' in pw can cause problems!
SMTP_PORT=25 # (optional, default 587)
SMTP_USER_NAME=# required

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 18.09.1, build 4c52b90

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE                 COMMAND             CREATED                                                                                                                                                                                                                                                          STATUS              PORTS                                      NAMES
d74e61cfe737        local_discourse/app   "/sbin/boot"        26 minutes ago                                                                                                                                                                                                                                                   Up 26 minutes>80/tcp,>443/tcp   app

d74e61cfe737        local_discourse/app   "/sbin/boot"        26 minutes ago                                                                                                                                                                                                                                                   Up 26 minutes>80/tcp,>443/tcp   app

Discourse container app is running

==================== PLUGINS ====================
          - git clone
         # - git clone
         # - git clone
         # - git clone                                                                                                                                                                                                                                             th.git
         # - git clone                                                                                                                                                                                                                                             -lti.git
         # - git clone
         # - git clone                                                                                                                                                                                                                                             it
         # - git clone                                                                                                                                                                                                                                             it
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone
         # - git clone

You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See fo                                                                                                                                                                                                                                             r the official list.

Discourse version at NOT FOUND

Just some general observations:

No need to expose 443 if SSL isn’t being used.

Unicorn_workers and db_shared_buffers are automatically set by bootstrap, but in your file they’ve been commented out. How long have they been set this way?

Was this installed by following the standard guide?

This was a digital ocean one-click installation, we do use ssl with a wildcard cert.

Ah, I would recommend reaching out to them then, we don’t support third-party packages here.


Will do - Thanks for the help/advice! :slight_smile: