Discourse shell update is failing constantly

Here is the log:


[root@talk discourse]#         ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2020-06-19T21:28:36.661251 #1]  INFO -- : Loading --stdin
I, [2020-06-19T21:28:36.668048 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2020-06-19T21:28:36.706405 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2020-06-19T21:28:36.706621 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2020-06-19T21:28:36.710355 #1]  INFO -- : 
I, [2020-06-19T21:28:36.710562 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2020-06-19T21:28:36.713464 #1]  INFO -- : 
I, [2020-06-19T21:28:36.713670 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2020-06-19T21:28:36.716115 #1]  INFO -- : 
I, [2020-06-19T21:28:36.716286 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2020-06-19T21:28:36.719677 #1]  INFO -- : 
I, [2020-06-19T21:28:36.719879 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2020-06-19T21:28:36.722535 #1]  INFO -- : 
I, [2020-06-19T21:28:36.722709 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2020/06/19 21:28:36 socat[28] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2020-06-19T21:28:36.728269 #1]  INFO -- : 
I, [2020-06-19T21:28:36.728445 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2020-06-19T21:28:36.732116 #1]  INFO -- : 
I, [2020-06-19T21:28:36.732257 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2020-06-19T21:28:36.735493 #1]  INFO -- : 
I, [2020-06-19T21:28:36.735626 #1]  INFO -- : > mkdir -p /shared/postgres_run/10-main.pg_stat_tmp
I, [2020-06-19T21:28:36.738569 #1]  INFO -- : 
I, [2020-06-19T21:28:36.738775 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/10-main.pg_stat_tmp
I, [2020-06-19T21:28:36.741876 #1]  INFO -- : 
I, [2020-06-19T21:28:36.748301 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2020-06-19T21:28:36.754072 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2020-06-19T21:28:36.759447 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2020-06-19T21:28:36.764910 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2020-06-19T21:28:36.765148 #1]  INFO -- : > chown -R root /var/lib/postgresql/10/main
I, [2020-06-19T21:28:37.355332 #1]  INFO -- : 
I, [2020-06-19T21:28:37.355531 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/10/bin/initdb -D /shared/postgres_data || exit 0
I, [2020-06-19T21:28:37.358613 #1]  INFO -- : 
I, [2020-06-19T21:28:37.358713 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2020-06-19T21:28:37.398203 #1]  INFO -- : 
I, [2020-06-19T21:28:37.398398 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2020-06-19T21:28:37.401834 #1]  INFO -- : 
I, [2020-06-19T21:28:37.402012 #1]  INFO -- : > /root/upgrade_postgres
I, [2020-06-19T21:28:37.408518 #1]  INFO -- : 
I, [2020-06-19T21:28:37.408675 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2020-06-19T21:28:37.411191 #1]  INFO -- : 
I, [2020-06-19T21:28:37.411528 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/10/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.412300 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.412723 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.413378 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.414064 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.414636 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.415130 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2020-06-19T21:28:37.418744 #1]  INFO -- : 
I, [2020-06-19T21:28:37.419007 #1]  INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.419466 #1]  INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.419902 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.420436 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.420860 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/10/main/postgresql.conf
I, [2020-06-19T21:28:37.421484 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/10/main/pg_hba.conf
I, [2020-06-19T21:28:37.421842 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/10/main/pg_hba.conf
I, [2020-06-19T21:28:37.422105 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main
I, [2020-06-19T21:28:37.423859 #1]  INFO -- : > sleep 5
2020-06-19 21:28:37.449 UTC [51] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2020-06-19 21:28:37.449 UTC [51] LOG:  listening on IPv6 address "::", port 5432
2020-06-19 21:28:37.451 UTC [51] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-06-19 21:28:37.508 UTC [54] LOG:  database system was shut down at 2020-06-19 21:25:54 UTC
2020-06-19 21:28:37.516 UTC [51] LOG:  database system is ready to accept connections
I, [2020-06-19T21:28:42.427206 #1]  INFO -- : 
I, [2020-06-19T21:28:42.427583 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2020-06-19 21:28:42.491 UTC [64] postgres@postgres ERROR:  database "discourse" already exists
2020-06-19 21:28:42.491 UTC [64] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: database creation failed: ERROR:  database "discourse" already exists
I, [2020-06-19T21:28:42.493002 #1]  INFO -- : 
I, [2020-06-19T21:28:42.493325 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2020-06-19 21:28:42.564 UTC [75] postgres@discourse ERROR:  role "discourse" already exists
2020-06-19 21:28:42.564 UTC [75] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2020-06-19T21:28:42.567510 #1]  INFO -- : 
I, [2020-06-19T21:28:42.567872 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2020-06-19T21:28:42.636003 #1]  INFO -- : GRANT

I, [2020-06-19T21:28:42.636319 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2020-06-19T21:28:42.706594 #1]  INFO -- : ALTER SCHEMA

I, [2020-06-19T21:28:42.706843 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2020-06-19T21:28:42.790689 #1]  INFO -- : CREATE EXTENSION

I, [2020-06-19T21:28:42.790984 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2020-06-19T21:28:42.862894 #1]  INFO -- : CREATE EXTENSION

I, [2020-06-19T21:28:42.863284 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2020-06-19T21:28:42.936452 #1]  INFO -- : CREATE EXTENSION

I, [2020-06-19T21:28:42.936706 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2020-06-19T21:28:43.004686 #1]  INFO -- : CREATE EXTENSION

I, [2020-06-19T21:28:43.005146 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2020-06-19T21:28:43.007540 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2020-06-19T21:28:43.081198 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2020-06-19T21:28:43.085075 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2020-06-19T21:28:43.085192 #1]  INFO -- : > echo postgres installed!
I, [2020-06-19T21:28:43.087451 #1]  INFO -- : postgres installed!

I, [2020-06-19T21:28:43.093260 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2020-06-19T21:28:43.099049 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2020-06-19T21:28:43.104535 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2020-06-19T21:28:43.104729 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.105419 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.105833 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2020-06-19T21:28:43.109121 #1]  INFO -- : 
I, [2020-06-19T21:28:43.109529 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.110046 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.110722 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.111341 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2020-06-19T21:28:43.112142 #1]  INFO -- : > echo redis installed
I, [2020-06-19T21:28:43.114984 #1]  INFO -- : redis installed

I, [2020-06-19T21:28:43.115222 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2020-06-19T21:28:43.119384 #1]  INFO -- : logfile ""

I, [2020-06-19T21:28:43.119599 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2020-06-19T21:28:43.121636 #1]  INFO -- : > sleep 10
168:C 19 Jun 2020 21:28:43.125 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
168:C 19 Jun 2020 21:28:43.125 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=168, just started
168:C 19 Jun 2020 21:28:43.125 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 5.0.5 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 168
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

168:M 19 Jun 2020 21:28:43.127 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
168:M 19 Jun 2020 21:28:43.127 # Server initialized
168:M 19 Jun 2020 21:28:43.127 # 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.
168:M 19 Jun 2020 21:28:43.127 # 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.
168:M 19 Jun 2020 21:28:46.169 * DB loaded from disk: 3.042 seconds
168:M 19 Jun 2020 21:28:46.169 * Ready to accept connections
I, [2020-06-19T21:28:53.124471 #1]  INFO -- : 
I, [2020-06-19T21:28:53.124778 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2020-06-19T21:28:53.131243 #1]  INFO -- : thpoff is installed!

I, [2020-06-19T21:28:53.131477 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2020-06-19T21:28:53.233613 #1]  INFO -- : 
I, [2020-06-19T21:28:53.233938 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2020-06-19T21:28:53.308144 #1]  INFO -- : 
I, [2020-06-19T21:28:53.308445 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2020-06-19T21:28:53.394507 #1]  INFO -- : 
I, [2020-06-19T21:28:53.394724 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2020-06-19T21:28:53.726709 #1]  INFO -- : 
I, [2020-06-19T21:28:53.727081 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2020-06-19T21:28:53.730502 #1]  INFO -- : 
I, [2020-06-19T21:28:53.733930 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2020-06-19T21:28:53.740064 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2020-06-19T21:28:53.745916 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2020-06-19T21:28:53.751620 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2020-06-19T21:28:53.757040 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2020-06-19T21:28:53.762561 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2020-06-19T21:28:53.762754 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2020-06-19T21:28:53.763102 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2020-06-19T21:28:53.765282 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
195:C 19 Jun 2020 21:28:53.769 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
195:C 19 Jun 2020 21:28:53.769 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=195, just started
195:C 19 Jun 2020 21:28:53.769 # Configuration loaded
195:M 19 Jun 2020 21:28:53.770 # Could not create server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (27893/27893), done.
I, [2020-06-19T21:29:00.261484 #1]  INFO -- : HEAD is now at a47e0a3fda FIX: TOTP could not be used on sites with colons in their names

I, [2020-06-19T21:29:00.261702 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2020-06-19T21:29:00.356800 #1]  INFO -- : 
I, [2020-06-19T21:29:00.357009 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2020-06-19T21:29:00.362517 #1]  INFO -- : 
I, [2020-06-19T21:29:00.362647 #1]  INFO -- : > cd /var/www/discourse && git pull
From https://github.com/discourse/discourse
   a47e0a3fda..02d3bf304a  master                  -> origin/master
 * [new branch]            auth-improvements       -> origin/auth-improvements
   b6538bb306..6893e72593  beta                    -> origin/beta
 * [new branch]            category-list-filter    -> origin/category-list-filter
 * [new branch]            category-list-filter-old -> origin/category-list-filter-old
 * [new branch]            dependabot/bundler/excon-0.75.0 -> origin/dependabot/bundler/excon-0.75.0
 * [new branch]            dependabot/bundler/rotp-6.0.0 -> origin/dependabot/bundler/rotp-6.0.0
 * [new branch]            ember-cli-test          -> origin/ember-cli-test
 * [new branch]            feature/allow-custom-bookmark-reminder-date-and-time -> origin/feature/allow-custom-bookmark-reminder-date-and-time
 * [new branch]            feature/edit-bookmark-reminders-from-post-and-explicit-delete -> origin/feature/edit-bookmark-reminders-from-post-and-explicit-delete
 * [new branch]            fix-deprecated-import   -> origin/fix-deprecated-import
 * [new branch]            heif-support            -> origin/heif-support
 * [new branch]            imap                    -> origin/imap
 * [new branch]            issue/fix-security-key-typo-algorithms -> origin/issue/fix-security-key-typo-algorithms
 * [new branch]            markvanlan-reorder-icons -> origin/markvanlan-reorder-icons
 * [new branch]            new-css-variable-functions -> origin/new-css-variable-functions
 * [new branch]            remove-ss-constants     -> origin/remove-ss-constants
 * [new branch]            remove-support-for-fa4-icon-names -> origin/remove-support-for-fa4-icon-names
 * [new branch]            skip-existing-users     -> origin/skip-existing-users
 * [new branch]            spec-order              -> origin/spec-order
   632ef306e2..53c7d0200a  stable                  -> origin/stable
   dd4a04e72c..02d3bf304a  tests-passed            -> origin/tests-passed
 * [new branch]            topic-thumbnails        -> origin/topic-thumbnails
 * [new branch]            topic_list_item         -> origin/topic_list_item
 * [new branch]            ui-primary_group        -> origin/ui-primary_group
 * [new branch]            update-badge-icon-names -> origin/update-badge-icon-names
 * [new tag]               v2.4.5                  -> v2.4.5
 * [new tag]               v2.4.0                  -> v2.4.0
 * [new tag]               v2.4.1                  -> v2.4.1
 * [new tag]               v2.4.2                  -> v2.4.2
 * [new tag]               v2.4.3                  -> v2.4.3
 * [new tag]               v2.4.4                  -> v2.4.4
 * [new tag]               v2.5.0.beta1            -> v2.5.0.beta1
 * [new tag]               v2.5.0.beta2            -> v2.5.0.beta2
 * [new tag]               v2.5.0.beta3            -> v2.5.0.beta3
 * [new tag]               v2.5.0.beta4            -> v2.5.0.beta4
 * [new tag]               v2.5.0.beta5            -> v2.5.0.beta5
 * [new tag]               v2.5.0.beta6            -> v2.5.0.beta6
 * [new tag]               v2.5.0.beta7            -> v2.5.0.beta7
I, [2020-06-19T21:29:14.636728 #1]  INFO -- : Updating a47e0a3fda..02d3bf304a
Fast-forward
 .eslintignore                                      |     4 +-
 .git-blame-ignore-revs                             |    21 +
 .github/workflows/ci.yml                           |    64 +-
 .gitignore                                         |    13 +-
 .rubocop.yml                                       |   147 +-
 .template-lintrc.js                                |    50 +-
 .travis.yml                                        |    86 -
 .tx/config                                         |     6 -
 Dangerfile                                         |     6 +-
 Gemfile                                            |    45 +-
 Gemfile.lock                                       |   279 +-
 README.md                                          |     6 +-
 app/assets/javascripts/activate-account.js         |    25 +
 .../javascripts/activate-account.js.no-module.es6  |    24 -
 .../admin/adapters/{api-key.js.es6 => api-key.js}  |     0
 .../{build-plugin.js.es6 => build-plugin.js}       |     0
 ...omization-base.js.es6 => customization-base.js} |     0
 .../{email-style.js.es6 => email-style.js}         |     0
 .../adapters/{embedding.js.es6 => embedding.js}    |     0
 .../adapters/{site-text.js.es6 => site-text.js}    |     0
 ...staff-action-log.js.es6 => staff-action-log.js} |     0
 .../adapters/{tag-group.js.es6 => tag-group.js}    |     0
 .../admin/adapters/{theme.js.es6 => theme.js}      |     0
 .../adapters/{user-field.js.es6 => user-field.js}  |     0
 .../{web-hook-event.js.es6 => web-hook-event.js}   |     0
 .../adapters/{web-hook.js.es6 => web-hook.js}      |     0
 .../javascripts/admin/components/ace-editor.js     |   122 +
 .../javascripts/admin/components/ace-editor.js.es6 |   124 -
 .../admin/components/admin-backups-logs.js         |    74 +
 .../admin/components/admin-backups-logs.js.es6     |    73 -
 .../admin/components/admin-directory-toggle.js.es6 |    30 -
 ...itable-field.js.es6 => admin-editable-field.js} |     0
 .../{admin-form-row.js.es6 => admin-form-row.js}   |     0
 .../{admin-graph.js.es6 => admin-graph.js}         |     0
 .../components/{admin-nav.js.es6 => admin-nav.js}  |     0
 .../admin/components/admin-report-chart.js         |   167 +
 .../admin/components/admin-report-chart.js.es6     |   168 -
 
 .../highlightjs/languages/moonscript.min.js        |     2 +-
 .../javascripts/highlightjs/languages/n1ql.min.js  |     2 +-
 .../javascripts/highlightjs/languages/nginx.min.js |     2 +-
 .../javascripts/highlightjs/languages/nim.min.js   |     1 +
 .../highlightjs/languages/nimrod.min.js            |     2 +-
 .../javascripts/highlightjs/languages/nix.min.js   |     2 +-
 .../javascripts/highlightjs/languages/nsis.min.js  |     2 +-
 .../highlightjs/languages/objectivec.min.js        |     2 +-
 .../javascripts/highlightjs/languages/ocaml.min.js |     2 +-
 .../highlightjs/languages/openscad.min.js          |     2 +-
 .../highlightjs/languages/oxygene.min.js           |     2 +-
 .../highlightjs/languages/parser3.min.js           |     2 +-
 .../javascripts/highlightjs/languages/perl.min.js  |     2 +-
 .../javascripts/highlightjs/languages/pf.min.js    |     2 +-
 .../javascripts/highlightjs/languages/pgsql.min.js |     2 +-
 .../highlightjs/languages/php-template.min.js      |     1 +
 .../javascripts/highlightjs/languages/pony.min.js  |     2 +-
 .../highlightjs/languages/powershell.min.js        |     2 +-
 .../highlightjs/languages/profile.min.js           |     2 +-
 .../highlightjs/languages/prolog.min.js            |     2 +-
 .../highlightjs/languages/properties.min.js        |     2 +-
 .../highlightjs/languages/puppet.min.js            |     2 +-
 .../highlightjs/languages/purebasic.min.js         |     2 +-
 .../highlightjs/languages/python-repl.min.js       |     1 +
 .../highlightjs/languages/python.min.js            |     2 +-
 .../javascripts/highlightjs/languages/q.min.js     |     2 +-
 .../javascripts/highlightjs/languages/qml.min.js   |     2 +-
 .../javascripts/highlightjs/languages/r.min.js     |     2 +-
 .../highlightjs/languages/reasonml.min.js          |     2 +-
 .../highlightjs/languages/roboconf.min.js          |     2 +-
 .../highlightjs/languages/routeros.min.js          |     2 +-
 .../javascripts/highlightjs/languages/ruby.min.js  |     2 +-
 .../highlightjs/languages/ruleslanguage.min.js     |     2 +-
 .../javascripts/highlightjs/languages/rust.min.js  |     2 +-
 .../javascripts/highlightjs/languages/sas.min.js   |     2 +-
 .../javascripts/highlightjs/languages/scala.min.js |     2 +-
 .../highlightjs/languages/scheme.min.js            |     2 +-
 .../highlightjs/languages/scilab.min.js            |     2 +-
 .../javascripts/highlightjs/languages/scss.min.js  |     2 +-
 .../javascripts/highlightjs/languages/shell.min.js |     2 +-
 .../javascripts/highlightjs/languages/smali.min.js |     2 +-
 .../highlightjs/languages/smalltalk.min.js         |     2 +-
 .../javascripts/highlightjs/languages/sml.min.js   |     2 +-
 .../javascripts/highlightjs/languages/sqf.min.js   |     2 +-
 .../javascripts/highlightjs/languages/sql.min.js   |     2 +-
 .../javascripts/highlightjs/languages/stan.min.js  |     2 +-
 .../javascripts/highlightjs/languages/stata.min.js |     2 +-
 .../highlightjs/languages/step21.min.js            |     2 +-
 .../highlightjs/languages/stylus.min.js            |     2 +-
 .../highlightjs/languages/subunit.min.js           |     2 +-
 .../javascripts/highlightjs/languages/swift.min.js |     2 +-
 .../highlightjs/languages/taggerscript.min.js      |     2 +-
 .../javascripts/highlightjs/languages/tap.min.js   |     2 +-
 .../javascripts/highlightjs/languages/tcl.min.js   |     2 +-
 .../javascripts/highlightjs/languages/tex.min.js   |     2 +-
 .../javascripts/highlightjs/languages/tp.min.js    |     2 +-
 .../javascripts/highlightjs/languages/twig.min.js  |     2 +-
 .../highlightjs/languages/typescript.min.js        |     2 +-
 .../javascripts/highlightjs/languages/vala.min.js  |     2 +-
 .../javascripts/highlightjs/languages/vbnet.min.js |     2 +-
 .../highlightjs/languages/vbscript.min.js          |     2 +-
 .../highlightjs/languages/verilog.min.js           |     2 +-
 .../javascripts/highlightjs/languages/vhdl.min.js  |     2 +-
 .../javascripts/highlightjs/languages/vim.min.js   |     2 +-
 .../highlightjs/languages/x86asm.min.js            |     2 +-
 .../javascripts/highlightjs/languages/xl.min.js    |     2 +-
 .../javascripts/highlightjs/languages/xml.min.js   |     2 +-
 .../highlightjs/languages/xquery.min.js            |     2 +-
 .../javascripts/highlightjs/languages/yaml.min.js  |     2 +-
 vendor/assets/javascripts/jquery.fileupload.js     |  2949 +++---
 .../assets/javascripts/jquery.iframe-transport.js  |   404 +-
 vendor/assets/javascripts/jquery.js                |  1240 ++-
 vendor/assets/javascripts/jquery.putcursoratend.js |    38 -
 vendor/assets/javascripts/jquery.ui.widget.js      |  1367 ++-
 vendor/assets/javascripts/mousetrap-global-bind.js |     5 +-
 vendor/assets/javascripts/mousetrap.js             |     2 +-
 vendor/assets/javascripts/popper.js                |   126 +-
 yarn.lock                                          |  1333 ++-
 4639 files changed, 227581 insertions(+), 157065 deletions(-)
 delete mode 100644 .travis.yml
 create mode 100644 app/assets/javascripts/activate-account.js
 delete mode 100644 app/assets/javascripts/activate-account.js.no-module.es6
 rename app/assets/javascripts/admin/adapters/{api-key.js.es6 => api-key.js} (100%)
 rename app/assets/javascripts/admin/adapters/{build-plugin.js.es6 => build-plugin.js} (100%)
 rename app/assets/javascripts/admin/adapters/{customization-base.js.es6 => customization-base.js} (100%)
 rename app/assets/javascripts/admin/adapters/{email-style.js.es6 => email-style.js} (100%)
 rename app/assets/javascripts/admin/adapters/{embedding.js.es6 => embedding.js} (100%)
 rename app/assets/javascripts/admin/adapters/{site-text.js.es6 => site-text.js} (100%)
 rename app/assets/javascripts/admin/adapters/{staff-action-log.js.es6 => staff-action-log.js} (100%)
 rename app/assets/javascripts/admin/adapters/{tag-group.js.es6 => tag-group.js} (100%)
 rename app/assets/javascripts/admin/adapters/{theme.js.es6 => theme.js} (100%)
 rename app/assets/javascripts/admin/adapters/{user-field.js.es6 => user-field.js} (100%)
 rename app/assets/javascripts/admin/adapters/{web-hook-event.js.es6 => web-hook-event.js} (100%)
 rename app/assets/javascripts/admin/adapters/{web-hook.js.es6 => web-hook.js} (100%)
 create mode 100644 app/assets/javascripts/admin/components/ace-editor.js
 delete mode 100644 app/assets/javascripts/admin/components/ace-editor.js.es6
 create mode 100644 app/assets/javascripts/admin/components/admin-backups-logs.js
 ... many more of these
 create mode 100644 vendor/assets/javascripts/highlightjs/languages/python-repl.min.js
 delete mode 100644 vendor/assets/javascripts/jquery.putcursoratend.js

I, [2020-06-19T21:29:14.640166 #1]  INFO -- : > cd /var/www/discourse && git fetch origin tests-passed
From https://github.com/discourse/discourse
 * branch                  tests-passed -> FETCH_HEAD
I, [2020-06-19T21:29:25.483333 #1]  INFO -- : 
I, [2020-06-19T21:29:25.483604 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2020-06-19T21:29:26.014164 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2020-06-19T21:29:26.014366 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2020-06-19T21:29:26.019309 #1]  INFO -- : 
I, [2020-06-19T21:29:26.019464 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2020-06-19T21:29:26.023470 #1]  INFO -- : 
I, [2020-06-19T21:29:26.023582 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2020-06-19T21:29:26.027103 #1]  INFO -- : 
I, [2020-06-19T21:29:26.027280 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2020-06-19T21:29:26.031240 #1]  INFO -- : 
I, [2020-06-19T21:29:26.031370 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2020-06-19T21:29:26.037134 #1]  INFO -- : 
I, [2020-06-19T21:29:26.037275 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2020-06-19T21:29:26.043442 #1]  INFO -- : 
I, [2020-06-19T21:29:26.043674 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2020-06-19T21:29:26.049944 #1]  INFO -- : 
I, [2020-06-19T21:29:26.050094 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2020-06-19T21:29:26.055353 #1]  INFO -- : 
I, [2020-06-19T21:29:26.055527 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2020-06-19T21:29:26.060880 #1]  INFO -- : 
I, [2020-06-19T21:29:26.061030 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2020-06-19T21:29:26.066012 #1]  INFO -- : 
I, [2020-06-19T21:29:26.066169 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2020-06-19T21:29:26.158128 #1]  INFO -- : 
I, [2020-06-19T21:29:26.158622 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2020-06-19T21:29:26.159273 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2020-06-19T21:29:30.105610 #1]  INFO -- : 
I, [2020-06-19T21:29:30.105859 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/angusmcleod/discourse-ratings.git
Cloning into 'discourse-ratings'...
I, [2020-06-19T21:29:31.681690 #1]  INFO -- : 
I, [2020-06-19T21:29:31.681929 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-voting.git
Cloning into 'discourse-voting'...
I, [2020-06-19T21:29:33.474485 #1]  INFO -- : 
I, [2020-06-19T21:29:33.474731 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2020-06-19T21:29:38.445842 #1]  INFO -- : 
I, [2020-06-19T21:29:38.446059 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-email-token.git
Cloning into 'discourse-email-token'...
I, [2020-06-19T21:29:42.891930 #1]  INFO -- : 
I, [2020-06-19T21:29:42.892165 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discoursehosting/discourse-change-email.git
Cloning into 'discourse-change-email'...
I, [2020-06-19T21:29:44.174569 #1]  INFO -- : 
I, [2020-06-19T21:29:44.174790 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discoursehosting/discourse-webhook-digest.git
Cloning into 'discourse-webhook-digest'...
I, [2020-06-19T21:29:45.392443 #1]  INFO -- : 
I, [2020-06-19T21:29:45.392643 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-topic-previews.git
Cloning into 'discourse-topic-previews'...
2020-06-19 21:29:45.994 UTC [333] ERROR:  failed to re-find parent key in index "index_topics_on_lower_title" for deletion target page 550
2020-06-19 21:29:45.994 UTC [333] CONTEXT:  automatic vacuum of table "discourse.public.topics"
I, [2020-06-19T21:29:47.236647 #1]  INFO -- : 
I, [2020-06-19T21:29:47.237106 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2020-06-19T21:29:47.241254 #1]  INFO -- : 
I, [2020-06-19T21:29:47.241578 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2020-06-19T21:29:47.244422 #1]  INFO -- : 
I, [2020-06-19T21:29:47.244580 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2020-06-19T21:29:47.247921 #1]  INFO -- : 
I, [2020-06-19T21:29:47.248254 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2020-06-19T21:29:47.248647 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2020-06-19T21:29:47.249132 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2020-06-19T21:29:47.249615 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2020-06-19T21:29:47.250112 #1]  INFO -- : > echo "done configuring web"
I, [2020-06-19T21:29:47.252372 #1]  INFO -- : done configuring web

I, [2020-06-19T21:29:47.252657 #1]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2020-06-19T21:29:53.404900 #1]  INFO -- : Updating installed gems
Nothing to update

I, [2020-06-19T21:29:53.405123 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
chown: cannot dereference '/var/www/discourse/public/plugins/discourse-internet-explorer': No such file or directory
I, [2020-06-19T21:29:54.604365 #1]  INFO -- : 
I, [2020-06-19T21:29:54.604936 #1]  INFO -- : Terminating async processes
I, [2020-06-19T21:29:54.605146 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 51
I, [2020-06-19T21:29:54.605240 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 168
2020-06-19 21:29:54.605 UTC [51] LOG:  received fast shutdown request
168:signal-handler (1592602194) Received SIGTERM scheduling shutdown...
2020-06-19 21:29:54.622 UTC [51] LOG:  aborting any active transactions
2020-06-19 21:29:54.623 UTC [51] LOG:  worker process: logical replication launcher (PID 60) exited with exit code 1
2020-06-19 21:29:54.624 UTC [55] LOG:  shutting down
2020-06-19 21:29:54.659 UTC [51] LOG:  database system is shut down
168:M 19 Jun 2020 21:29:54.671 # User requested shutdown...
168:M 19 Jun 2020 21:29:54.671 * Saving the final RDB snapshot before exiting.
168:M 19 Jun 2020 21:29:58.712 * DB saved on disk
168:M 19 Jun 2020 21:29:58.712 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+ failed with return #<Process::Status: pid 380 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem update bundler", "find $home ! -user discourse -exec chown discourse {} \\+"]}
dc549257e8d02983198546b61c39fbd9bc1f0a5c2f348f5c6d291eb3def69d18
** 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 just see the following error which I dont know if it is the root cause of problem:

`2020-06-19 21:29:45.994 UTC [333] ERROR:  failed to re-find parent key in index "index_topics_on_lower_title" for deletion target page 550`
2 Likes

You looked up too far (admittedly, easy to miss if you were just looking for ERROR) - if you look for the failed command you’ll see:

I, [2020-06-19T21:29:53.405123 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
chown: cannot dereference '/var/www/discourse/public/plugins/discourse-internet-explorer': No such file or directory

This should be fixed in a later version of discourse_docker - can you git pull inside /var/discourse and try again?

6 Likes

git pull says its already up-to-date.

1 Like

what should I do now?

1 Like