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

reboot

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!

./discourse-doctor

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-._ -._-./ .-’ .-’
|-._-.
-.__.-' _.-'_.-'| |-.
-._ _.-'_.-' | http://redis.io-._ -._-..-’.-’ .-’
|-._-.
-.__.-' _.-'_.-'| |-.
-._ _.-'_.-' |-._ -._-.
.-’_.-’ _.-’
-._-..-’ _.-’
-._ _.-'-.
.-’

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...
sha256:b3f0f76a675614f8861d8cefb02f233e1cebc9279f206c6080e4e0405884a998
45695130fd7d36fdb5b6bc7af91cb093873753e90cae889756c664f17a2a49b6
Removing old container
app

d74e61cfe7372ce02d5d64efcbd42ed4e8b3e2e1a445acc9e960534deeaf4405`

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
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "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 https://meta.discourse.org/t/17247 for details
expose:
  - "80:80"   # http
  - "443:443" # https

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

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## 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
  #UNICORN_WORKERS: 3

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'discuss.datasciencedojo.com'

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

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'me@example.com,REDCATED  '

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: REDCATED         # required
  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_AUTHENTICATION: none
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

  ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

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

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
         # - git clone https://github.com/discourse/discourse-solved.git
         # - git clone https://github.com/kasperpeulen/discourse-mathjax.git
         # - git clone https://github.com/discourse/discourse-plugin-linkedin-auth.git
         # - git clone https://github.com/mit-teaching-systems-lab/discourse-edx-lti.git
         # - git clone https://github.com/discourse/discourse-oauth2-basic.git
         # - git clone https://github.com/iunctis/discourse-formatting-toolbar.git
         # - git clone https://github.com/discourse/discourse-chat-integration.git      
         # - git clone https://github.com/discourse/discourse-translator.git
         # - git clone https://github.com/discourse/discourse-voting.git
         # - git clone https://github.com/discourse/discourse-data-explorer.git
         # - git clone https://github.com/discourse/discourse-signatures.git
         # - git clone https://github.com/discourse/discourse-calendar.git
         # - git clone https://github.com/discourse/discourse-assign.git
         # - git clone https://github.com/angusmcleod/discourse-locations.git
         # - git clone https://github.com/synweap15/discourse-voice-record.git
## Any custom commands to run after building
run:
  - 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='info@unconfigured.discourse.org'"
  - 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 ====================
DISCOURSE_HOSTNAME=discuss.datasciencedojo.com
SMTP_ADDRESS=d|||||||||||||||||||||| # required
DEVELOPER_EMAILS=|||||||||||||||||||||
SMTP_PASSWORD=# required, WARNING the char '#' in pw can cause problems!
SMTP_PORT=25 # (optional, default 587)
SMTP_USER_NAME=# required
LETSENCRYPT_ACCOUNT_EMAIL=me@example.com

==================== 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       0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   app

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

Discourse container app is running


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
         # - git clone https://github.com/discourse/discourse-solved.git
         # - git clone https://github.com/kasperpeulen/discourse-mathjax.git
         # - git clone https://github.com/discourse/discourse-plugin-linkedin-au                                                                                                                                                                                                                                             th.git
         # - git clone https://github.com/mit-teaching-systems-lab/discourse-edx                                                                                                                                                                                                                                             -lti.git
         # - git clone https://github.com/discourse/discourse-oauth2-basic.git
         # - git clone https://github.com/iunctis/discourse-formatting-toolbar.g                                                                                                                                                                                                                                             it
         # - git clone https://github.com/discourse/discourse-chat-integration.g                                                                                                                                                                                                                                             it
         # - git clone https://github.com/discourse/discourse-translator.git
         # - git clone https://github.com/discourse/discourse-voting.git
         # - git clone https://github.com/discourse/discourse-data-explorer.git
         # - git clone https://github.com/discourse/discourse-signatures.git
         # - git clone https://github.com/discourse/discourse-calendar.git
         # - git clone https://github.com/discourse/discourse-assign.git
         # - git clone https://github.com/angusmcleod/discourse-locations.git
         # - git clone https://github.com/synweap15/discourse-voice-record.git
         # - git clone https://github.com/discourse/discourse-openid-connect.git

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

See https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb fo                                                                                                                                                                                                                                             r the official list.

========================================
Discourse version at discuss.datasciencedojo.com: 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.

3 Likes

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