Latest site upgrade not working

Today I found out that there is a 2.9 beta version available for discourse. First I tried updating using upgrade portal on the site, but it failed for some reason.
Then I went to server and ran ./launcher rebuild app, but some errors are coming when rebuilding and the site doesn’t work at all now.

Here are the build logs

DISCOURSE DOCTOR Tue Feb 22 08:21:02 UTC 2022
OS: Linux ip-10-0-0-74.ec2.internal 4.14.77-81.59.amzn2.x86_64 #1 SMP Mon Nov 12 21:32:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=discuss.codechef.com
SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com
DEVELOPER_EMAILS=REDACTED
SMTP_PASSWORD=REDACTED
SMTP_PORT=587
SMTP_USER_NAME=
LETSENCRYPT_ACCOUNT_EMAIL=REDACTED

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 18.06.1-ce, build e68fc7a215d7133c34aa18e3b72b4a21fd0c6136

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

==================== SERIOUS PROBLEM!!!! ====================
app not running!
Attempting to rebuild
==================== REBUILD LOG ====================
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2022-02-22T08:21:10.934350 #1]  INFO -- : Reading from stdin
I, [2022-02-22T08:21:10.938669 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2022-02-22T08:21:10.963714 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2022-02-22T08:21:10.963939 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2022-02-22T08:21:10.965947 #1]  INFO -- :
I, [2022-02-22T08:21:10.966192 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2022-02-22T08:21:10.968385 #1]  INFO -- :
I, [2022-02-22T08:21:10.968601 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2022-02-22T08:21:10.970418 #1]  INFO -- :
I, [2022-02-22T08:21:10.970619 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2022-02-22T08:21:10.972263 #1]  INFO -- :
I, [2022-02-22T08:21:10.972457 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2022-02-22T08:21:10.973932 #1]  INFO -- :
I, [2022-02-22T08:21:10.974136 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2022/02/22 08:21:10 socat[23] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2022-02-22T08:21:10.980845 #1]  INFO -- :
I, [2022-02-22T08:21:10.981021 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2022-02-22T08:21:10.982921 #1]  INFO -- :
I, [2022-02-22T08:21:10.983095 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2022-02-22T08:21:10.984990 #1]  INFO -- :
I, [2022-02-22T08:21:10.985377 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2022-02-22T08:21:10.986992 #1]  INFO -- :
I, [2022-02-22T08:21:10.987238 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2022-02-22T08:21:10.988730 #1]  INFO -- :
I, [2022-02-22T08:21:10.992060 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2022-02-22T08:21:10.995163 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2022-02-22T08:21:10.998363 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2022-02-22T08:21:11.001577 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2022-02-22T08:21:11.001866 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2022-02-22T08:21:12.674190 #1]  INFO -- :
I, [2022-02-22T08:21:12.674448 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2022-02-22T08:21:12.676461 #1]  INFO -- :
I, [2022-02-22T08:21:12.676515 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2022-02-22T08:21:12.683331 #1]  INFO -- :
I, [2022-02-22T08:21:12.683566 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2022-02-22T08:21:12.685242 #1]  INFO -- :
I, [2022-02-22T08:21:12.685471 #1]  INFO -- : > /root/upgrade_postgres
I, [2022-02-22T08:21:12.689497 #1]  INFO -- :
I, [2022-02-22T08:21:12.689628 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2022-02-22T08:21:12.691132 #1]  INFO -- :
I, [2022-02-22T08:21:12.691909 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.692793 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.693061 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.694234 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.695429 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.696458 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.697816 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2022-02-22T08:21:12.699718 #1]  INFO -- :
I, [2022-02-22T08:21:12.700026 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.700345 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.701308 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2022-02-22T08:21:12.702726 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2022-02-22T08:21:12.703317 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2022-02-22T08:21:12.703578 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2022-02-22T08:21:12.704464 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2022-02-22T08:21:12.705685 #1]  INFO -- : > sleep 5
2022-02-22 08:21:12.755 UTC [46] LOG:  starting PostgreSQL 13.5 (Debian 13.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2022-02-22 08:21:12.755 UTC [46] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-02-22 08:21:12.755 UTC [46] LOG:  listening on IPv6 address "::", port 5432
2022-02-22 08:21:12.758 UTC [46] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-02-22 08:21:12.763 UTC [49] LOG:  database system was shut down at 2022-02-22 08:13:39 UTC
2022-02-22 08:21:12.767 UTC [46] LOG:  database system is ready to accept connections
I, [2022-02-22T08:21:17.708140 #1]  INFO -- :
I, [2022-02-22T08:21:17.708463 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2022-02-22 08:21:17.766 UTC [59] postgres@postgres ERROR:  database "discourse" already exists
2022-02-22 08:21:17.766 UTC [59] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2022-02-22T08:21:17.767367 #1]  INFO -- :
I, [2022-02-22T08:21:17.767782 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2022-02-22 08:21:17.816 UTC [63] postgres@discourse ERROR:  role "discourse" already exists
2022-02-22 08:21:17.816 UTC [63] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2022-02-22T08:21:17.817559 #1]  INFO -- :
I, [2022-02-22T08:21:17.817750 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2022-02-22T08:21:17.854582 #1]  INFO -- : GRANT

I, [2022-02-22T08:21:17.855017 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2022-02-22T08:21:17.895459 #1]  INFO -- : ALTER SCHEMA

I, [2022-02-22T08:21:17.895795 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2022-02-22T08:21:17.944401 #1]  INFO -- : CREATE EXTENSION

I, [2022-02-22T08:21:17.944704 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2022-02-22T08:21:17.981074 #1]  INFO -- : CREATE EXTENSION

I, [2022-02-22T08:21:17.981409 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2022-02-22T08:21:18.018498 #1]  INFO -- : CREATE EXTENSION

I, [2022-02-22T08:21:18.018841 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2022-02-22T08:21:18.055208 #1]  INFO -- : CREATE EXTENSION

I, [2022-02-22T08:21:18.055521 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2022-02-22T08:21:18.057822 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2022-02-22T08:21:18.119210 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2022-02-22T08:21:18.121365 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2022-02-22T08:21:18.121491 #1]  INFO -- : > echo postgres installed!
I, [2022-02-22T08:21:18.122983 #1]  INFO -- : postgres installed!

I, [2022-02-22T08:21:18.126513 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2022-02-22T08:21:18.129812 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2022-02-22T08:21:18.133092 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2022-02-22T08:21:18.134131 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.134890 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.135254 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2022-02-22T08:21:18.137042 #1]  INFO -- :
I, [2022-02-22T08:21:18.137554 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.137943 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.139181 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.140462 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.142247 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2022-02-22T08:21:18.143494 #1]  INFO -- : > echo redis installed
I, [2022-02-22T08:21:18.144940 #1]  INFO -- : redis installed

I, [2022-02-22T08:21:18.145155 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2022-02-22T08:21:18.149326 #1]  INFO -- : logfile ""

I, [2022-02-22T08:21:18.149561 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2022-02-22T08:21:18.150652 #1]  INFO -- : > sleep 10
107:C 22 Feb 2022 08:21:18.154 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
107:C 22 Feb 2022 08:21:18.154 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=107, just started
107:C 22 Feb 2022 08:21:18.154 # Configuration loaded
107:M 22 Feb 2022 08:21:18.155 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
107:M 22 Feb 2022 08:21:18.155 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
107:M 22 Feb 2022 08:21:18.155 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
107:M 22 Feb 2022 08:21:18.155 * monotonic clock: POSIX clock_gettime
107:M 22 Feb 2022 08:21:18.155 * Running mode=standalone, port=6379.
107:M 22 Feb 2022 08:21:18.155 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
107:M 22 Feb 2022 08:21:18.155 # Server initialized
107:M 22 Feb 2022 08:21:18.155 # 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.
107:M 22 Feb 2022 08:21:18.155 * Loading RDB produced by version 6.2.6
107:M 22 Feb 2022 08:21:18.155 * RDB age 459 seconds
107:M 22 Feb 2022 08:21:18.155 * RDB memory usage when created 0.51 Mb
107:M 22 Feb 2022 08:21:18.155 # Done loading RDB, keys loaded: 0, keys expired: 0.
107:M 22 Feb 2022 08:21:18.155 * DB loaded from disk: 0.000 seconds
107:M 22 Feb 2022 08:21:18.155 * Ready to accept connections
I, [2022-02-22T08:21:28.152464 #1]  INFO -- :
I, [2022-02-22T08:21:28.152702 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2022-02-22T08:21:28.156238 #1]  INFO -- : thpoff is installed!

I, [2022-02-22T08:21:28.156532 #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, [2022-02-22T08:21:28.207967 #1]  INFO -- :
I, [2022-02-22T08:21:28.208259 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2022-02-22T08:21:28.259618 #1]  INFO -- :
I, [2022-02-22T08:21:28.259908 #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, [2022-02-22T08:21:28.310823 #1]  INFO -- :
I, [2022-02-22T08:21:28.311170 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2022-02-22T08:21:28.313524 #1]  INFO -- :
I, [2022-02-22T08:21:28.315825 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2022-02-22T08:21:28.319505 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2022-02-22T08:21:28.323047 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2022-02-22T08:21:28.326586 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2022-02-22T08:21:28.330169 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2022-02-22T08:21:28.333479 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2022-02-22T08:21:28.333694 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2022-02-22T08:21:28.333983 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2022-02-22T08:21:28.336276 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
135:C 22 Feb 2022 08:21:28.339 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
135:C 22 Feb 2022 08:21:28.339 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=135, just started
135:C 22 Feb 2022 08:21:28.339 # Configuration loaded
135:M 22 Feb 2022 08:21:28.339 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
135:M 22 Feb 2022 08:21:28.339 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
135:M 22 Feb 2022 08:21:28.339 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
135:M 22 Feb 2022 08:21:28.339 * monotonic clock: POSIX clock_gettime
135:M 22 Feb 2022 08:21:28.340 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
135:M 22 Feb 2022 08:21:28.340 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (30947/30947), done.
I, [2022-02-22T08:21:30.442648 #1]  INFO -- : HEAD is now at e1367cde I18N: Improve copy on blocked words error messages (#15741)

I, [2022-02-22T08:21:30.442917 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2022-02-22T08:21:30.509182 #1]  INFO -- :
I, [2022-02-22T08:21:30.509397 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2022-02-22T08:21:30.512571 #1]  INFO -- :
I, [2022-02-22T08:21:30.512789 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2022-02-22T08:21:30.515411 #1]  INFO -- :
I, [2022-02-22T08:21:30.515601 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
 * branch              tests-passed -> FETCH_HEAD
 * [new branch]        tests-passed -> origin/tests-passed
I, [2022-02-22T08:21:32.341205 #1]  INFO -- :
I, [2022-02-22T08:21:32.341470 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2022-02-22T08:21:33.021385 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2022-02-22T08:21:33.021535 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2022-02-22T08:21:33.024684 #1]  INFO -- :
I, [2022-02-22T08:21:33.024794 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2022-02-22T08:21:33.027266 #1]  INFO -- :
I, [2022-02-22T08:21:33.027413 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2022-02-22T08:21:33.029784 #1]  INFO -- :
I, [2022-02-22T08:21:33.030010 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2022-02-22T08:21:33.032263 #1]  INFO -- :
I, [2022-02-22T08:21:33.032456 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2022-02-22T08:21:33.034815 #1]  INFO -- :
I, [2022-02-22T08:21:33.035028 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2022-02-22T08:21:33.037266 #1]  INFO -- :
I, [2022-02-22T08:21:33.037463 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2022-02-22T08:21:33.040552 #1]  INFO -- :
I, [2022-02-22T08:21:33.040758 #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, [2022-02-22T08:21:33.043837 #1]  INFO -- :
I, [2022-02-22T08:21:33.044024 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2022-02-22T08:21:33.047144 #1]  INFO -- :
I, [2022-02-22T08:21:33.047320 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2022-02-22T08:21:33.050328 #1]  INFO -- :
I, [2022-02-22T08:21:33.050515 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2022-02-22T08:21:33.053664 #1]  INFO -- :
I, [2022-02-22T08:21:33.053836 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2022-02-22T08:21:33.056727 #1]  INFO -- :
I, [2022-02-22T08:21:33.056929 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2022-02-22T08:21:33.059662 #1]  INFO -- :
I, [2022-02-22T08:21:33.059865 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2022-02-22T08:21:33.062730 #1]  INFO -- :
I, [2022-02-22T08:21:33.062992 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2022-02-22T08:21:33.063296 #1]  INFO -- : > apt-get update && apt-get install -y default-libmysqlclient-dev
debconf: delaying package configuration, since apt-utils is not installed
I, [2022-02-22T08:21:37.228124 #1]  INFO -- : Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [44.2 kB]
Hit:5 https://dl.yarnpkg.com/debian stable InRelease
Get:6 https://deb.nodesource.com/node_16.x bullseye InRelease [4,586 B]
Get:7 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [86.7 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [120 kB]
Get:9 http://deb.debian.org/debian bullseye-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:10 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages [775 B]
Get:11 http://deb.debian.org/debian bullseye-backports/main amd64 Packages T-2022-02-21-2006.35-F-2022-01-30-1410.41.pdiff [74.1 kB]
Get:11 http://deb.debian.org/debian bullseye-backports/main amd64 Packages T-2022-02-21-2006.35-F-2022-01-30-1410.41.pdiff [74.1 kB]
Get:12 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [240 kB]
Fetched 716 kB in 1s (1,073 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libmariadb-dev libmariadb-dev-compat libmariadb3 mariadb-common mysql-common
The following NEW packages will be installed:
  default-libmysqlclient-dev libmariadb-dev libmariadb-dev-compat libmariadb3
  mariadb-common mysql-common
0 upgraded, 6 newly installed, 0 to remove and 9 not upgraded.
Need to get 441 kB of archives.
After this operation, 1,546 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 mysql-common all 5.8+1.0.7 [7,464 B]
Get:2 http://deb.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.12-0+deb11u1 [36.3 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libmariadb3 amd64 1:10.5.12-0+deb11u1 [175 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libmariadb-dev amd64 1:10.5.12-0+deb11u1 [184 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libmariadb-dev-compat amd64 1:10.5.12-0+deb11u1 [35.1 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 default-libmysqlclient-dev amd64 1.0.7 [3,936 B]
Fetched 441 kB in 0s (22.0 MB/s)
Selecting previously unselected package mysql-common.
(Reading database ... 41616 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_5.8+1.0.7_all.deb ...
Unpacking mysql-common (5.8+1.0.7) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../1-mariadb-common_1%3a10.5.12-0+deb11u1_all.deb ...
Unpacking mariadb-common (1:10.5.12-0+deb11u1) ...
Selecting previously unselected package libmariadb3:amd64.
Preparing to unpack .../2-libmariadb3_1%3a10.5.12-0+deb11u1_amd64.deb ...
Unpacking libmariadb3:amd64 (1:10.5.12-0+deb11u1) ...
Selecting previously unselected package libmariadb-dev.
Preparing to unpack .../3-libmariadb-dev_1%3a10.5.12-0+deb11u1_amd64.deb ...
Unpacking libmariadb-dev (1:10.5.12-0+deb11u1) ...
Selecting previously unselected package libmariadb-dev-compat:amd64.
Preparing to unpack .../4-libmariadb-dev-compat_1%3a10.5.12-0+deb11u1_amd64.deb ...
Unpacking libmariadb-dev-compat:amd64 (1:10.5.12-0+deb11u1) ...
Selecting previously unselected package default-libmysqlclient-dev:amd64.
Preparing to unpack .../5-default-libmysqlclient-dev_1.0.7_amd64.deb ...
Unpacking default-libmysqlclient-dev:amd64 (1.0.7) ...
Setting up mysql-common (5.8+1.0.7) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-common (1:10.5.12-0+deb11u1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libmariadb3:amd64 (1:10.5.12-0+deb11u1) ...
Setting up libmariadb-dev (1:10.5.12-0+deb11u1) ...
Setting up libmariadb-dev-compat:amd64 (1:10.5.12-0+deb11u1) ...
Setting up default-libmysqlclient-dev:amd64 (1.0.7) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...

I, [2022-02-22T08:21:37.228856 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-email-handler.git
Cloning into 'discourse-codechef-email-handler'...
I, [2022-02-22T08:21:37.562336 #1]  INFO -- :
I, [2022-02-22T08:21:37.562651 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-user-custom.git
Cloning into 'discourse-codechef-user-custom'...
I, [2022-02-22T08:21:37.868040 #1]  INFO -- :
I, [2022-02-22T08:21:37.868255 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git
Cloning into 'discourse-math'...
I, [2022-02-22T08:21:38.617251 #1]  INFO -- :
I, [2022-02-22T08:21:38.617635 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-api-custom.git
Cloning into 'discourse-codechef-api-custom'...
I, [2022-02-22T08:21:38.945074 #1]  INFO -- :
I, [2022-02-22T08:21:38.945255 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-scripts.git
Cloning into 'discourse-codechef-scripts'...
I, [2022-02-22T08:21:39.292678 #1]  INFO -- :
I, [2022-02-22T08:21:39.293110 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2022-02-22T08:21:39.295946 #1]  INFO -- :
I, [2022-02-22T08:21:39.296192 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2022-02-22T08:21:39.297983 #1]  INFO -- :
I, [2022-02-22T08:21:39.298102 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2022-02-22T08:21:39.299942 #1]  INFO -- :
I, [2022-02-22T08:21:39.300716 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2022-02-22T08:21:39.301003 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2022-02-22T08:21:39.301303 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2022-02-22T08:21:39.302315 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2022-02-22T08:21:39.303106 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/conf.d/discourse.conf
I, [2022-02-22T08:21:39.303830 #1]  INFO -- : > echo "done configuring web"
I, [2022-02-22T08:21:39.305463 #1]  INFO -- : done configuring web

I, [2022-02-22T08:21:39.305781 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2022-02-22T08:21:39.675856 #1]  INFO -- : Successfully installed bundler-2.3.4
1 gem installed

I, [2022-02-22T08:21:39.676141 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2022-02-22T08:21:43.194476 #1]  INFO -- :
I, [2022-02-22T08:21:43.194958 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'test development'`, and stop using this flag
I, [2022-02-22T08:22:12.051781 #1]  INFO -- : Running `bundle install --deployment --jobs 4 --retry 3 --verbose --without "test" "development"` with bundler 2.3.4
Frozen, using resolution from the lockfile
The definition is missing ["bootsnap-1.10.3", "message_bus-4.1.0", "excon-0.91.0", "nokogiri-1.13.1-x86_64-linux", "loofah-2.14.0", "oj-3.13.11", "pg-1.3.2", "mini_sql-1.3.0", "sidekiq-6.4.1", "mini_racer-0.6.2", "rack-protection-2.2.0", "json_schemer-0.2.19", "puma-5.6.2", "stackprof-0.2.18", "cppjieba_rb-0.4.2", "rqrcode-2.1.1", "rails_failover-0.8.1", "msgpack-1.4.5", "i18n-1.10.0", "zeitwerk-2.5.4", "in_threads-1.6.0", "regexp_parser-2.2.1", "request_store-1.5.1", "jmespath-1.6.0", "faraday-1.10.0", "ipaddr-1.2.4"]
HTTP GET https://index.rubygems.org/versions
HTTP 416 Range Not Satisfiable https://index.rubygems.org/versions
HTTP GET https://index.rubygems.org/versions
HTTP 200 OK https://index.rubygems.org/versions
HTTP GET https://index.rubygems.org/versions
HTTP 200 OK https://index.rubygems.org/versions
Fetching gem metadata from https://rubygems.org/
Looking up gems ["actionmailer", "actionpack", "actionview", "actionview_precompiler", "active_model_serializers", "activejob", "activemodel", "activerecord", "activesupport", "addressable", "annotate", "ast", "aws-eventstream", "aws-partitions", "aws-sdk-core", "aws-sdk-kms", "aws-sdk-s3", "aws-sdk-sns", "aws-sigv4", "barber", "better_errors", "binding_of_caller", "bootsnap", "builder", "bullet", "byebug", "cbor", "certified", "chunky_png", "coderay", "colored2", "concurrent-ruby", "connection_pool", "cose", "cppjieba_rb", "crack", "crass", "css_parser", "debug_inspector", "diff-lcs", "diffy", "discourse-ember-rails", "discourse-ember-source", "discourse-fonts", "discourse_dev_assets", "docile", "ecma-re-validator", "email_reply_trimmer", "ember-data-source", "ember-handlebars-template", "ember-source", "erubi", "excon", "execjs", "exifr", "fabrication", "faker", "fakeweb", "faraday", "faraday-em_http", "faraday-em_synchrony", "faraday-excon", "faraday-httpclient", "faraday-multipart", "faraday-net_http", "faraday-net_http_persistent", "faraday-patron", "faraday-rack", "faraday-retry", "fast_blank", "fast_xs", "fastimage", "ffi", "fspath", "gc_tracer", "globalid", "guess_html_encoding", "hana", "hashdiff", "hashie", "highline", "hkdf", "htmlentities", "http_accept_language", "i18n", "image_optim", "image_size", "in_threads", "ipaddr", "jmespath", "jquery-rails", "json", "json-schema", "json_schemer", "jwt", "kgio", "libv8-node", "listen", "literate_randomizer", "lograge", "logstash-event", "logstash-logger", "logster", "loofah", "lru_redux", "lz4-ruby", "maxminddb", "memory_profiler", "message_bus", "method_source", "mini_mime", "mini_portile2", "mini_racer", "mini_scheduler", "mini_sql", "mini_suffix", "minitest", "mocha", "msgpack", "multi_json", "multi_xml", "multipart-post", "mustache", "nio4r", "nokogiri", "oauth", "oauth2", "oj", "omniauth", "omniauth-facebook", "omniauth-github", "omniauth-google-oauth2", "omniauth-oauth", "omniauth-oauth2", "omniauth-twitter", "openssl", "openssl-signature_algorithm", "optimist", "parallel", "parallel_tests", "parser", "pg", "progress", "pry", "pry-byebug", "pry-rails", "public_suffix", "puma", "r2", "racc", "rack", "rack-mini-profiler", "rack-protection", "rack-test", "rails-dom-testing", "rails-html-sanitizer", "rails_failover", "rails_multisite", "railties", "rainbow", "raindrops", "rake", "rb-fsevent", "rb-inotify", "rbtrace", "rchardet", "redis", "redis-namespace", "regexp_parser", "request_store", "rexml", "rinku", "rotp", "rqrcode", "rqrcode_core", "rspec", "rspec-core", "rspec-expectations", "rspec-html-matchers", "rspec-mocks", "rspec-rails", "rspec-support", "rss", "rswag-specs", "rtlit", "rubocop", "rubocop-ast", "rubocop-discourse", "rubocop-rspec", "ruby-prof", "ruby-progressbar", "ruby-readability", "ruby2_keywords", "rubyzip", "sanitize", "sassc", "sassc-rails", "seed-fu", "shoulda-matchers", "sidekiq", "simplecov", "simplecov-html", "simplecov_json_formatter", "sprockets", "sprockets-rails", "sshkey", "stackprof", "test-prof", "thor", "tilt", "tzinfo", "uglifier", "unf", "unf_ext", "unicode-display_width", "unicorn", "uniform_notifier", "uri_template", "webmock", "webpush", "xorcist", "yaml-lint", "zeitwerk"]
HTTP GET https://index.rubygems.org/info/actionmailer
HTTP GET https://index.rubygems.org/info/actionpack
HTTP 206 Partial Content https://index.rubygems.org/info/actionmailer
HTTP GET https://index.rubygems.org/info/actionview
HTTP 206 Partial Content https://index.rubygems.org/info/actionpack
HTTP 206 Partial Content https://index.rubygems.org/info/actionview
HTTP GET https://index.rubygems.org/info/activejob
HTTP GET https://index.rubygems.org/info/activemodel
HTTP 206 Partial Content https://index.rubygems.org/info/activejob
HTTP 206 Partial Content https://index.rubygems.org/info/activemodel
HTTP GET https://index.rubygems.org/info/activerecord
HTTP GET https://index.rubygems.org/info/activesupport
HTTP 206 Partial Content https://index.rubygems.org/info/activerecord
HTTP 206 Partial Content https://index.rubygems.org/info/activesupport
HTTP GET https://index.rubygems.org/info/annotate
HTTP GET https://index.rubygems.org/info/aws-partitions
HTTP 206 Partial Content https://index.rubygems.org/info/annotate
HTTP 206 Partial Content https://index.rubygems.org/info/aws-partitions
HTTP GET https://index.rubygems.org/info/aws-sdk-core
HTTP GET https://index.rubygems.org/info/aws-sdk-kms
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-core
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-kms
HTTP GET https://index.rubygems.org/info/aws-sdk-sns
HTTP GET https://index.rubygems.org/info/aws-sdk-s3
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-s3
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-sns
HTTP GET https://index.rubygems.org/info/bootsnap
HTTP 206 Partial Content https://index.rubygems.org/info/bootsnap
HTTP GET https://index.rubygems.org/info/excon
HTTP GET https://index.rubygems.org/info/fabrication
HTTP 206 Partial Content https://index.rubygems.org/info/excon
HTTP 206 Partial Content https://index.rubygems.org/info/fabrication
HTTP GET https://index.rubygems.org/info/faraday
HTTP GET https://index.rubygems.org/info/faraday-excon
HTTP 206 Partial Content https://index.rubygems.org/info/faraday
HTTP 206 Partial Content https://index.rubygems.org/info/faraday-excon
HTTP GET https://index.rubygems.org/info/i18n
HTTP GET https://index.rubygems.org/info/ipaddr
HTTP 206 Partial Content https://index.rubygems.org/info/ipaddr
HTTP 206 Partial Content https://index.rubygems.org/info/i18n
HTTP GET https://index.rubygems.org/info/jmespath
HTTP GET https://index.rubygems.org/info/json_schemer
HTTP 206 Partial Content https://index.rubygems.org/info/jmespath
HTTP 206 Partial Content https://index.rubygems.org/info/json_schemer
HTTP GET https://index.rubygems.org/info/loofah
HTTP GET https://index.rubygems.org/info/message_bus
HTTP 206 Partial Content https://index.rubygems.org/info/loofah
HTTP 206 Partial Content https://index.rubygems.org/info/message_bus
HTTP GET https://index.rubygems.org/info/mini_portile2
HTTP GET https://index.rubygems.org/info/mini_sql
HTTP 206 Partial Content https://index.rubygems.org/info/mini_portile2
HTTP 206 Partial Content https://index.rubygems.org/info/mini_sql
HTTP GET https://index.rubygems.org/info/msgpack
HTTP 206 Partial Content https://index.rubygems.org/info/msgpack
HTTP GET https://index.rubygems.org/info/nokogiri
HTTP 206 Partial Content https://index.rubygems.org/info/nokogiri
HTTP GET https://index.rubygems.org/info/oauth2
HTTP 206 Partial Content https://index.rubygems.org/info/oauth2
HTTP GET https://index.rubygems.org/info/parser
HTTP GET https://index.rubygems.org/info/pg
HTTP 206 Partial Content https://index.rubygems.org/info/parser
HTTP 206 Partial Content https://index.rubygems.org/info/pg
HTTP GET https://index.rubygems.org/info/puma
HTTP GET https://index.rubygems.org/info/rack-protection
HTTP 206 Partial Content https://index.rubygems.org/info/puma
HTTP 206 Partial Content https://index.rubygems.org/info/rack-protection
HTTP GET https://index.rubygems.org/info/rails_failover
HTTP GET https://index.rubygems.org/info/railties
HTTP 206 Partial Content https://index.rubygems.org/info/rails_failover
HTTP 206 Partial Content https://index.rubygems.org/info/railties
HTTP GET https://index.rubygems.org/info/rb-fsevent
HTTP GET https://index.rubygems.org/info/redis
HTTP 206 Partial Content https://index.rubygems.org/info/rb-fsevent
HTTP 206 Partial Content https://index.rubygems.org/info/redis
HTTP GET https://index.rubygems.org/info/regexp_parser
HTTP 206 Partial Content https://index.rubygems.org/info/regexp_parser
HTTP GET https://index.rubygems.org/info/rqrcode
HTTP GET https://index.rubygems.org/info/rspec
HTTP 206 Partial Content https://index.rubygems.org/info/rqrcode
HTTP 206 Partial Content https://index.rubygems.org/info/rspec
HTTP GET https://index.rubygems.org/info/rspec-core
HTTP GET https://index.rubygems.org/info/rspec-expectations
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-core
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-expectations
HTTP GET https://index.rubygems.org/info/rspec-mocks
HTTP GET https://index.rubygems.org/info/rspec-support
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-support
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-mocks
HTTP GET https://index.rubygems.org/info/rswag-specs
HTTP GET https://index.rubygems.org/info/rubocop
HTTP 206 Partial Content https://index.rubygems.org/info/rswag-specs
HTTP 206 Partial Content https://index.rubygems.org/info/rubocop
HTTP GET https://index.rubygems.org/info/rubocop-ast
HTTP 206 Partial Content https://index.rubygems.org/info/rubocop-ast
HTTP GET https://index.rubygems.org/info/sidekiq
HTTP GET https://index.rubygems.org/info/simplecov_json_formatter
HTTP 206 Partial Content https://index.rubygems.org/info/sidekiq
HTTP 206 Partial Content https://index.rubygems.org/info/simplecov_json_formatter
HTTP GET https://index.rubygems.org/info/stackprof
HTTP 206 Partial Content https://index.rubygems.org/info/stackprof
Looking up gems ["mail", "text-format", "net-imap", "net-pop", "net-smtp", "erubis", "rack-mount", "rack-cache", "journey", "rails-deprecated_sanitizer", "jsonapi", "case_transform", "jsonapi-renderer", "activemodel-globalid", "bcrypt-ruby", "arel", "activerecord-deprecated_finders", "memcache-client", "thread_safe", "jamespath", "http-2", "aws-crt", "ember-template-compiler-source", "handlebars-source", "rouge", "columnize", "debugger-linecache", "slop", "rb-readline", "functional-ruby", "ref", "snappy", "safe_yaml", "rdoc", "pastel", "tty-pager", "tty-screen", "tty-tree", "rcov", "httpclient", "net-http-persistent", "patron", "rake-compiler", "rb-appscript", "xattr", "ffi-xattr", "termios", "rails", "json_pure", "rb-fchange", "rb-kqueue", "celluloid", "celluloid-io", "ruby_dep", "rdf", "stud", "ruby_parser", "eventmachine", "thin", "libv8", "net-ftp", "metaclass", "hoe", "ruby-hmac", "weakling", "mini_portile", "pkg-config", "bigdecimal", "oa-core", "oa-oauth", "oa-openid", "oa-basic", "oa-enterprise", "oa-more", "faraday-middleware", "httpauth", "sexp_processor", "win32console", "yard", "spoon", "pry-doc", "escape_utils", "rack-ssl", "trollop", "base32", "webrat", "rspec-collection_matchers", "term-ansicolor", "backports", "powerpack", "astrolabe", "tins", "jaro_winkler", "psych", "hpricot", "nokogumbo", "bundler", "sass", "bourne", "strscan", "lockfile", "compass", "sprockets-sass", "sinatra", "slim", "hike", "therubyracer"]
HTTP GET https://index.rubygems.org/info/rouge
HTTP 206 Partial Content https://index.rubygems.org/info/rouge
HTTP GET https://index.rubygems.org/info/rails
HTTP GET https://index.rubygems.org/info/rb-kqueue
HTTP 206 Partial Content https://index.rubygems.org/info/rb-kqueue
HTTP 206 Partial Content https://index.rubygems.org/info/rails
HTTP GET https://index.rubygems.org/info/rdf
HTTP 206 Partial Content https://index.rubygems.org/info/rdf
HTTP GET https://index.rubygems.org/info/bundler
HTTP 206 Partial Content https://index.rubygems.org/info/bundler
HTTP GET https://index.rubygems.org/info/sinatra
HTTP 206 Partial Content https://index.rubygems.org/info/sinatra
Looking up gems ["mime-types", "treetop", "tlsmail", "digest", "net-protocol", "timeout", "abstract", "multimap", "jsonapi-parser", "bcrypt", "ZenTest", "RubyInline", "atomic", "text-hyphen", "ruby_core_source", "debugger-ruby_core_source", "snappy-jars", "tty-which", "verse", "strings", "equatable", "tty-color", "spruz", "win32-api", "timers", "facter", "celluloid-essentials", "celluloid-extras", "celluloid-fsm", "celluloid-pool", "celluloid-supervision", "dotenv", "nenv", "rspec-logsplit", "activeresource", "actionwebservice", "actioncable", "activestorage", "actionmailbox", "actiontext", "metriks", "ParseTree", "daemons", "time", "rubyforge", "gemcutter", "link_header", "hamster", "rack-openid", "ruby-openid-apps-discovery", "restclient", "rest-client", "net-ldap", "rubyntlm", "pyu-ruby-sasl", "uuid", "XMLCanonicalizer", "webrick", "curses", "sync", "jar-dependencies", "stringio", "sass-listen", "haml", "fssm", "compass-core", "compass-import-once", "sprockets-helpers", "temple", "mongrel", "mustermann"]
HTTP GET https://index.rubygems.org/info/activestorage
HTTP GET https://index.rubygems.org/info/actioncable
HTTP 206 Partial Content https://index.rubygems.org/info/activestorage
HTTP 206 Partial Content https://index.rubygems.org/info/actioncable
HTTP GET https://index.rubygems.org/info/actionmailbox
HTTP GET https://index.rubygems.org/info/actiontext
HTTP 206 Partial Content https://index.rubygems.org/info/actionmailbox
HTTP 206 Partial Content https://index.rubygems.org/info/actiontext
HTTP GET https://index.rubygems.org/info/curses
HTTP 206 Partial Content https://index.rubygems.org/info/curses
Looking up gems ["mime-types-data", "facets", "polyglot", "io-wait", "archive-tar-minitar", "unicode_utils", "strings-ansi", "test-unit", "hitimes", "CFPropertyList", "sys-admin", "win32-dir", "windows-api", "windows-pr", "win32-security", "hocon", "celluloid-gems", "coveralls", "dotenv-deployment", "rails-observers", "activemodel-serializers-xml", "marcel", "mimemagic", "coffee-rails", "em-hiredis", "faye-websocket", "websocket-driver", "rbtree", "faraday_middleware", "yajl-ruby", "avl_tree", "SexpProcessor", "date", "net-scp", "ruby-openid", "netrc", "http-cookie", "http-accept", "macaddr", "log4r", "ruby-maven", "cgi_multipart_eof_fix", "fastthread", "gem_plugin", "tool"]
HTTP GET https://index.rubygems.org/info/io-wait
HTTP 206 Partial Content https://index.rubygems.org/info/io-wait
HTTP GET https://index.rubygems.org/info/rbtree
HTTP 206 Partial Content https://index.rubygems.org/info/rbtree
Looking up gems ["minitar", "minitar-cli", "power_assert", "configuration", "mkrf", "libxml-ruby", "ffi-win32-extensions", "colorize", "coffee-script", "hiredis", "websocket-extensions", "roauth", "net-ssh", "ruby-yadis", "domain_name", "sqlite3", "systemu", "maven-tools", "ruby-maven-libs"]
Looking up gems ["powerbar", "pattern-match", "coffee-script-source", "needle", "jruby-pageant", "bcrypt_pbkdf", "rbnacl", "rbnacl-libsodium", "virtus"]
Looking up gems ["ansi", "descendants_tracker", "axiom-types", "coercible", "equalizer"]
Looking up gems ["ice_nine", "adamantium"]
Looking up gems ["memoizable"]
Using rake 13.0.6
0:  rake (13.0.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.6.gemspec
Using concurrent-ruby 1.1.9
2:  concurrent-ruby (1.1.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/concurrent-ruby-1.1.9.gemspec
Using minitest 5.15.0
Using builder 3.2.4
3:  builder (3.2.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/builder-3.2.4.gemspec
Using erubi 1.10.0
2:  erubi (1.10.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/erubi-1.10.0.gemspec
1:  minitest (5.15.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/minitest-5.15.0.gemspec
Fetching zeitwerk 2.5.4
Using racc 1.6.0
Using crass 1.0.6
Using rack 2.2.3
1:  rack (2.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-2.2.3.gemspec
3:  racc (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/racc-1.6.0.gemspec
Using public_suffix 4.0.6
3:  public_suffix (4.0.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/public_suffix-4.0.6.gemspec
Using aws-eventstream 1.2.0
3:  aws-eventstream (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-eventstream-1.2.0.gemspec
Using aws-partitions 1.516.0
3:  aws-partitions (1.516.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-partitions-1.516.0.gemspec
Fetching jmespath 1.6.0
2:  crass (1.0.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/crass-1.0.6.gemspec
Using ember-source 2.18.2
2:  ember-source (2.18.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-source-2.18.2.gemspec
Using execjs 2.8.1
2:  execjs (2.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/execjs-2.8.1.gemspec
Fetching msgpack 1.4.5
Using mini_mime 1.1.2
1:  mini_mime (1.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_mime-1.1.2.gemspec
Using bundler 2.3.4
1:  bundler (2.3.4) from /usr/local/lib/ruby/gems/2.7.0/specifications/bundler-2.3.4.gemspec
Using byebug 11.1.3
1:  byebug (11.1.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/byebug-11.1.3.gemspec
Using cbor 0.5.9.6
1:  cbor (0.5.9.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cbor-0.5.9.6.gemspec
Using chunky_png 1.4.0
1:  chunky_png (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/chunky_png-1.4.0.gemspec
Using coderay 1.1.3
1:  coderay (1.1.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/coderay-1.1.3.gemspec
Using colored2 3.1.2
1:  colored2 (3.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/colored2-3.1.2.gemspec
Using connection_pool 2.2.5
1:  connection_pool (2.2.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/connection_pool-2.2.5.gemspec
Fetching ipaddr 1.2.4
Installing jmespath 1.6.0
Installing ipaddr 1.2.4
Installing zeitwerk 2.5.4
Installing msgpack 1.4.5 with native extensions
1:  ipaddr (1.2.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ipaddr-1.2.4.gemspec
Fetching cppjieba_rb 0.4.2
0:  zeitwerk (2.5.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/zeitwerk-2.5.4.gemspec
Using diffy 3.4.0
0:  diffy (3.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/diffy-3.4.0.gemspec
Using method_source 1.0.0
0:  method_source (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/method_source-1.0.0.gemspec
Using thor 1.2.1
0:  thor (1.2.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/thor-1.2.1.gemspec
Using discourse-ember-source 3.12.2.3
0:  discourse-ember-source (3.12.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-ember-source-3.12.2.3.gemspec
Using discourse-fonts 0.0.9
0:  discourse-fonts (0.0.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-fonts-0.0.9.gemspec
Fetching regexp_parser 2.2.1
Building native extensions. This could take a while...
Installing regexp_parser 2.2.1
0:  regexp_parser (2.2.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/regexp_parser-2.2.1.gemspec
Using email_reply_trimmer 0.1.13
0:  email_reply_trimmer (0.1.13) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/email_reply_trimmer-0.1.13.gemspec
Fetching excon 0.91.0
3:  jmespath (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jmespath-1.6.0.gemspec
Using exifr 1.3.9
3:  exifr (1.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/exifr-1.3.9.gemspec
Using faraday-em_http 1.0.0
3:  faraday-em_http (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-em_http-1.0.0.gemspec
Using faraday-em_synchrony 1.0.0
3:  faraday-em_synchrony (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-em_synchrony-1.0.0.gemspec
Using faraday-excon 1.1.0
3:  faraday-excon (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-excon-1.1.0.gemspec
Using faraday-httpclient 1.0.1
3:  faraday-httpclient (1.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-httpclient-1.0.1.gemspec
Using multipart-post 2.1.1
3:  multipart-post (2.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/multipart-post-2.1.1.gemspec
Using faraday-net_http 1.0.1
3:  faraday-net_http (1.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http-1.0.1.gemspec
Using faraday-net_http_persistent 1.2.0
3:  faraday-net_http_persistent (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http_persistent-1.2.0.gemspec
Using faraday-patron 1.0.0
3:  faraday-patron (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-patron-1.0.0.gemspec
Using faraday-rack 1.0.0
3:  faraday-rack (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-rack-1.0.0.gemspec
Using faraday-retry 1.0.3
3:  faraday-retry (1.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-retry-1.0.3.gemspec
Using ruby2_keywords 0.0.5
3:  ruby2_keywords (0.0.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ruby2_keywords-0.0.5.gemspec
Using fast_blank 1.0.1
3:  fast_blank (1.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/fast_blank-1.0.1.gemspec
Using fast_xs 0.8.0
3:  fast_xs (0.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/fast_xs-0.8.0.gemspec
Using fastimage 2.2.6
3:  fastimage (2.2.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/fastimage-2.2.6.gemspec
Using ffi 1.15.5
3:  ffi (1.15.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ffi-1.15.5.gemspec
Using fspath 3.1.2
3:  fspath (3.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/fspath-3.1.2.gemspec
Using gc_tracer 1.5.1
3:  gc_tracer (1.5.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/gc_tracer-1.5.1.gemspec
Using guess_html_encoding 0.0.11
3:  guess_html_encoding (0.0.11) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/guess_html_encoding-0.0.11.gemspec
Using hana 1.3.7
3:  hana (1.3.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/hana-1.3.7.gemspec
Using hashie 5.0.0
3:  hashie (5.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/hashie-5.0.0.gemspec
Using highline 2.0.3
3:  highline (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/highline-2.0.3.gemspec
Using hkdf 0.3.0
3:  hkdf (0.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/hkdf-0.3.0.gemspec
Using htmlentities 4.3.4
3:  htmlentities (4.3.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/htmlentities-4.3.4.gemspec
Using http_accept_language 2.1.1
3:  http_accept_language (2.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/http_accept_language-2.1.1.gemspec
Using image_size 3.0.1
3:  image_size (3.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/image_size-3.0.1.gemspec
Fetching in_threads 1.6.0
Installing in_threads 1.6.0
Installing excon 0.91.0
3:  in_threads (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/in_threads-1.6.0.gemspec
Using progress 3.6.0
3:  progress (3.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/progress-3.6.0.gemspec
Using json 2.6.1
3:  json (2.6.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/json-2.6.1.gemspec
Using uri_template 0.7.0
3:  uri_template (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/uri_template-0.7.0.gemspec
Using jwt 2.3.0
3:  jwt (2.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jwt-2.3.0.gemspec
Using kgio 2.11.4
3:  kgio (2.11.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/kgio-2.11.4.gemspec
Using libv8-node 16.10.0.0 (x86_64-linux)
3:  libv8-node (16.10.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/libv8-node-16.10.0.0-x86_64-linux.gemspec
Using logstash-event 1.2.02
3:  logstash-event (1.2.02) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logstash-event-1.2.02.gemspec
Using logster 2.10.1
3:  logster (2.10.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logster-2.10.1.gemspec
Using lru_redux 1.1.0
3:  lru_redux (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lru_redux-1.1.0.gemspec
Using lz4-ruby 0.3.3
3:  lz4-ruby (0.3.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lz4-ruby-0.3.3.gemspec
Using maxminddb 0.1.22
3:  maxminddb (0.1.22) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/maxminddb-0.1.22.gemspec
Using memory_profiler 1.0.0
3:  memory_profiler (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/memory_profiler-1.0.0.gemspec
Using redis 4.5.1
3:  redis (4.5.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/redis-4.5.1.gemspec
Fetching mini_sql 1.3.0
0:  excon (0.91.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/excon-0.91.0.gemspec
Using multi_json 1.15.0
0:  multi_json (1.15.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/multi_json-1.15.0.gemspec
Using multi_xml 0.6.0
0:  multi_xml (0.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/multi_xml-0.6.0.gemspec
Using mustache 1.1.1
0:  mustache (1.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mustache-1.1.1.gemspec
Using nio4r 2.5.8
0:  nio4r (2.5.8) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nio4r-2.5.8.gemspec
Using oauth 0.5.8
0:  oauth (0.5.8) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oauth-0.5.8.gemspec
Fetching oj 3.13.11
Installing mini_sql 1.3.0
Installing oj 3.13.11 with native extensions
3:  mini_sql (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_sql-1.3.0.gemspec
Using optimist 3.0.1
3:  optimist (3.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/optimist-3.0.1.gemspec
Fetching pg 1.3.2
Installing pg 1.3.2 with native extensions
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Installing cppjieba_rb 0.4.2 with native extensions
Building native extensions. This could take a while...
2:  msgpack (1.4.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/msgpack-1.4.5.gemspec
Using r2 0.2.7
2:  r2 (0.2.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/r2-0.2.7.gemspec
Using raindrops 0.20.0
2:  raindrops (0.20.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/raindrops-0.20.0.gemspec
Using rchardet 1.8.0
2:  rchardet (1.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rchardet-1.8.0.gemspec
Using rexml 3.2.5
2:  rexml (3.2.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rexml-3.2.5.gemspec
Using rinku 2.0.6
2:  rinku (2.0.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rinku-2.0.6.gemspec
Using rotp 6.2.0
2:  rotp (6.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rotp-6.2.0.gemspec
Using rqrcode_core 1.2.0
2:  rqrcode_core (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rqrcode_core-1.2.0.gemspec
Using rtlit 0.0.5
2:  rtlit (0.0.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rtlit-0.0.5.gemspec
Using rubyzip 2.3.2
2:  rubyzip (2.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rubyzip-2.3.2.gemspec
Using tilt 2.0.10
2:  tilt (2.0.10) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/tilt-2.0.10.gemspec
Using sshkey 2.0.0
2:  sshkey (2.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sshkey-2.0.0.gemspec
Fetching stackprof 0.2.18
Installing stackprof 0.2.18 with native extensions
Building native extensions. This could take a while...
2:  stackprof (0.2.18) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/stackprof-0.2.18.gemspec
Using unf_ext 0.0.8
2:  unf_ext (0.0.8) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf_ext-0.0.8.gemspec
Using xorcist 1.1.2
2:  xorcist (1.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/xorcist-1.1.2.gemspec
Fetching i18n 1.10.0
Installing i18n 1.10.0
2:  i18n (1.10.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/i18n-1.10.0.gemspec
Using tzinfo 2.0.4
2:  tzinfo (2.0.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/tzinfo-2.0.4.gemspec
Fetching nokogiri 1.13.1 (x86_64-linux)
Installing nokogiri 1.13.1 (x86_64-linux)
2:  nokogiri (1.13.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nokogiri-1.13.1-x86_64-linux.gemspec
Using rack-test 1.1.0
2:  rack-test (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-test-1.1.0.gemspec
Using addressable 2.8.0
2:  addressable (2.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/addressable-2.8.0.gemspec
Using aws-sigv4 1.4.0
2:  aws-sigv4 (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sigv4-1.4.0.gemspec
Using barber 0.12.2
2:  barber (0.12.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/barber-0.12.2.gemspec
Using ember-data-source 3.0.2
2:  ember-data-source (3.0.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-data-source-3.0.2.gemspec
Using sprockets 3.7.2
2:  sprockets (3.7.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-3.7.2.gemspec
Fetching request_store 1.5.1
Installing request_store 1.5.1
2:  request_store (1.5.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/request_store-1.5.1.gemspec
Fetching message_bus 4.1.0
Installing message_bus 4.1.0
2:  message_bus (4.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/message_bus-4.1.0.gemspec
Using rack-mini-profiler 2.3.3
2:  rack-mini-profiler (2.3.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-mini-profiler-2.3.3.gemspec
Fetching rack-protection 2.2.0
Installing rack-protection 2.2.0
2:  rack-protection (2.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-protection-2.2.0.gemspec
Using uglifier 4.2.0
2:  uglifier (4.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/uglifier-4.2.0.gemspec
Using mail 2.8.0.edge from https://github.com/discourse/mail.git (at main@5b700fc)
2:  mail (2.8.0.edge) from /var/www/discourse/vendor/bundle/ruby/2.7.0/bundler/gems/mail-5b700fc95ee6/mail.gemspec
Using openssl 2.2.1
2:  openssl (2.2.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/openssl-2.2.1.gemspec
Using pry 0.13.1
2:  pry (0.13.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec
Using ecma-re-validator 0.4.0
2:  ecma-re-validator (0.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ecma-re-validator-0.4.0.gemspec
Using faraday-multipart 1.0.3
2:  faraday-multipart (1.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-multipart-1.0.3.gemspec
Using mini_suffix 0.3.3
2:  mini_suffix (0.3.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_suffix-0.3.3.gemspec
Using omniauth 1.9.1
2:  omniauth (1.9.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-1.9.1.gemspec
Using sassc 2.0.1
2:  sassc (2.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-2.0.1.gemspec
Using image_optim 0.31.1
2:  image_optim (0.31.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/image_optim-0.31.1.gemspec
Using logstash-logger 0.26.1
2:  logstash-logger (0.26.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logstash-logger-0.26.1.gemspec
Fetching mini_racer 0.6.2
Installing mini_racer 0.6.2 with native extensions
Building native extensions. This could take a while...
1:  cppjieba_rb (0.4.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cppjieba_rb-0.4.2.gemspec
Fetching sidekiq 6.4.1
Installing sidekiq 6.4.1
1:  sidekiq (6.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sidekiq-6.4.1.gemspec
Using redis-namespace 1.8.1
1:  redis-namespace (1.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/redis-namespace-1.8.1.gemspec
Using webpush 1.1.0
1:  webpush (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/webpush-1.1.0.gemspec
Fetching puma 5.6.2
Installing puma 5.6.2 with native extensions
Building native extensions. This could take a while...
3:  pg (1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pg-1.3.2.gemspec
Fetching bootsnap 1.10.3
Installing bootsnap 1.10.3 with native extensions
Building native extensions. This could take a while...
3:  bootsnap (1.10.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/bootsnap-1.10.3.gemspec
Using rbtrace 0.4.14
3:  rbtrace (0.4.14) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rbtrace-0.4.14.gemspec
Fetching rqrcode 2.1.1
Installing rqrcode 2.1.1
3:  rqrcode (2.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rqrcode-2.1.1.gemspec
Using rss 0.2.9
3:  rss (0.2.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rss-0.2.9.gemspec
Using unicorn 6.1.0
3:  unicorn (6.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unicorn-6.1.0.gemspec
Using unf 0.1.4
3:  unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf-0.1.4.gemspec
Using activesupport 6.1.4.1
3:  activesupport (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activesupport-6.1.4.1.gemspec
Fetching loofah 2.14.0
Installing loofah 2.14.0
3:  loofah (2.14.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/loofah-2.14.0.gemspec
Using ruby-readability 0.7.0
3:  ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ruby-readability-0.7.0.gemspec
Using sanitize 6.0.0
3:  sanitize (6.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sanitize-6.0.0.gemspec
Using css_parser 1.11.0
3:  css_parser (1.11.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/css_parser-1.11.0.gemspec
Using aws-sdk-core 3.121.2
3:  aws-sdk-core (3.121.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-core-3.121.2.gemspec
Using ember-handlebars-template 0.8.0
3:  ember-handlebars-template (0.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-handlebars-template-0.8.0.gemspec
Using openssl-signature_algorithm 1.1.1
3:  openssl-signature_algorithm (1.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/openssl-signature_algorithm-1.1.1.gemspec
Fetching json_schemer 0.2.19
Installing json_schemer 0.2.19
3:  json_schemer (0.2.19) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/json_schemer-0.2.19.gemspec
Using pry-byebug 3.9.0
3:  pry-byebug (3.9.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec
Using pry-rails 0.3.9
3:  pry-rails (0.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-rails-0.3.9.gemspec
Fetching faraday 1.10.0
Installing faraday 1.10.0
3:  faraday (1.10.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-1.10.0.gemspec
Using omniauth-oauth 1.2.0
3:  omniauth-oauth (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth-1.2.0.gemspec
Using mini_scheduler 0.13.0
3:  mini_scheduler (0.13.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_scheduler-0.13.0.gemspec
Using rails-dom-testing 2.0.3
3:  rails-dom-testing (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-dom-testing-2.0.3.gemspec
Using globalid 1.0.0
3:  globalid (1.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/globalid-1.0.0.gemspec
Using activemodel 6.1.4.1
3:  activemodel (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activemodel-6.1.4.1.gemspec
Using rails-html-sanitizer 1.4.2
3:  rails-html-sanitizer (1.4.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-html-sanitizer-1.4.2.gemspec
Using aws-sdk-kms 1.44.0
3:  aws-sdk-kms (1.44.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-kms-1.44.0.gemspec
Using aws-sdk-sns 1.46.0
3:  aws-sdk-sns (1.46.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-sns-1.46.0.gemspec
Using cose 1.2.0
3:  cose (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cose-1.2.0.gemspec
Using oauth2 1.4.7
3:  oauth2 (1.4.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oauth2-1.4.7.gemspec
Using omniauth-twitter 1.4.0
3:  omniauth-twitter (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-twitter-1.4.0.gemspec
Using activejob 6.1.4.1
3:  activejob (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activejob-6.1.4.1.gemspec
Using active_model_serializers 0.8.4
3:  active_model_serializers (0.8.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/active_model_serializers-0.8.4.gemspec
Using activerecord 6.1.4.1
3:  activerecord (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activerecord-6.1.4.1.gemspec
Using actionview 6.1.4.1
3:  actionview (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview-6.1.4.1.gemspec
Using aws-sdk-s3 1.96.1
3:  aws-sdk-s3 (1.96.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-s3-1.96.1.gemspec
Using actionpack 6.1.4.1
3:  actionpack (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionpack-6.1.4.1.gemspec
Using actionview_precompiler 0.2.3
3:  actionview_precompiler (0.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview_precompiler-0.2.3.gemspec
Using omniauth-oauth2 1.7.2
3:  omniauth-oauth2 (1.7.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth2-1.7.2.gemspec
Using seed-fu 2.3.9
3:  seed-fu (2.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/seed-fu-2.3.9.gemspec
Using actionmailer 6.1.4.1
3:  actionmailer (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionmailer-6.1.4.1.gemspec
Using railties 6.1.4.1
3:  railties (6.1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/railties-6.1.4.1.gemspec
Using omniauth-facebook 9.0.0
3:  omniauth-facebook (9.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-facebook-9.0.0.gemspec
Using omniauth-github 1.4.0
3:  omniauth-github (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-github-1.4.0.gemspec
Using omniauth-google-oauth2 0.8.2
3:  omniauth-google-oauth2 (0.8.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-google-oauth2-0.8.2.gemspec
Using sprockets-rails 3.4.2
3:  sprockets-rails (3.4.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-rails-3.4.2.gemspec
Using jquery-rails 4.4.0
3:  jquery-rails (4.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jquery-rails-4.4.0.gemspec
Using lograge 0.11.2
3:  lograge (0.11.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lograge-0.11.2.gemspec
Fetching rails_failover 0.8.1
Installing rails_failover 0.8.1
3:  rails_failover (0.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_failover-0.8.1.gemspec
Using rails_multisite 4.0.0
3:  rails_multisite (4.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_multisite-4.0.0.gemspec
Using sassc-rails 2.1.2
3:  sassc-rails (2.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-rails-2.1.2.gemspec
Using discourse-ember-rails 0.18.6
3:  discourse-ember-rails (0.18.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-ember-rails-0.18.6.gemspec
1:  puma (5.6.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/puma-5.6.2.gemspec
2:  mini_racer (0.6.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_racer-0.6.2.gemspec
0:  oj (3.13.11) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oj-3.13.11.gemspec
Bundle complete! 126 Gemfile dependencies, 176 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`

I, [2022-02-22T08:22:12.052124 #1]  INFO -- : > cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'
warning Resolution field "lodash@4.17.21" is incompatible with requested version "lodash@4.17.15"
warning " > @mixer/parallel-prettier@2.0.1" has unmet peer dependency "prettier@^2.0.0".
I, [2022-02-22T08:23:07.016495 #1]  INFO -- : yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ yarn --cwd app/assets/javascripts/discourse
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 32.66s.
Done in 49.85s.
yarn cache v1.22.17
success Cleared cache.
Done in 4.78s.

I, [2022-02-22T08:23:07.017003 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2022-02-22T08:23:11.280662 #1]  INFO -- : discourse-codechef-email-handler is already at latest compatible version
discourse-codechef-user-custom is already at latest compatible version
discourse-math is already at latest compatible version
discourse-codechef-api-custom is already at latest compatible version
discourse-codechef-scripts is already at latest compatible version

I, [2022-02-22T08:23:11.283319 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
Discourse requires Redis 6.2.0 or up
I, [2022-02-22T08:23:19.834861 #1]  INFO -- : gem install mysql2 -v 0.5.2 -i /var/www/discourse/plugins/discourse-codechef-api-custom/gems/2.7.5 --no-document --ignore-dependencies --no-user-install
Building native extensions. This could take a while...
Successfully installed mysql2-0.5.2
1 gem installed

I, [2022-02-22T08:23:19.835243 #1]  INFO -- : Terminating async processes
I, [2022-02-22T08:23:19.835295 #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/13/bin/postmaster -D /etc/postgresql/13/main pid: 46
I, [2022-02-22T08:23:19.835334 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 107
2022-02-22 08:23:19.835 UTC [46] LOG:  received fast shutdown request
107:signal-handler (1645518199) Received SIGTERM scheduling shutdown...
2022-02-22 08:23:19.838 UTC [46] LOG:  aborting any active transactions
2022-02-22 08:23:19.841 UTC [46] LOG:  background worker "logical replication launcher" (PID 55) exited with exit code 1
2022-02-22 08:23:19.841 UTC [50] LOG:  shutting down
2022-02-22 08:23:19.860 UTC [46] LOG:  database system is shut down
107:M 22 Feb 2022 08:23:19.930 # User requested shutdown...
107:M 22 Feb 2022 08:23:19.930 * Saving the final RDB snapshot before exiting.
107:M 22 Feb 2022 08:23:19.934 * DB saved on disk
107:M 22 Feb 2022 08:23:19.934 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1856 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
e47c7ed53cf670fd0c81677b4f71bd6f63fc5d5d3d6bf26580361b2f62f46b69
** 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.
==================== END REBUILD LOG ====================
Failed to rebuild app.

Checking your domain name . . .

Connection to discuss.codechef.com succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . .
x86_64 arch detected.

+ /bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=2 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST=discourse-production.c7teckpg2ocf.us-east-1.rds.amazonaws.com -e DISCOURSE_DB_PORT=5432 -e DISCOURSE_MAX_ADMIN_API_REQS_PER_KEY_PER_MINUTE=500 -e DISCOURSE_HOSTNAME=discuss.codechef.com -e DISCOURSE_DEVELOPER_EMAILS=REDACTED  -e DISCOURSE_SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=AKIAIHL3WLHZNDXF62XQ -e DISCOURSE_SMTP_PASSWORD=REDACTED  -e DISCOURSE_DB_USERNAME=codechef -e DISCOURSE_DB_PASSWORD=REDACTED  -e DISCOURSE_REDIS_HOST=discourse-production.x3rtbu.0001.use1.cache.amazonaws.com -e DISCOURSE_REDIS_PORT=6379 -e POSTGRES_DB_HOST=discourse-production.c7teckpg2ocf.us-east-1.rds.amazonaws.com -e POSTGRES_DB_NAME=discourse -e POSTGRES_DB_USER=codechef -e POSTGRES_DB_PW=AbaNabaRuba@123 -e MYSQL_DB_HOST=ccdbinstance.c7teckpg2ocf.us-east-1.rds.amazonaws.com -e MYSQL_DB_NAME=codechef -e MYSQL_DB_USER=discuss -e MYSQL_DB_PW=7sje981eu -h ip-10-0-0-74-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 4444:80 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:f6:61:48:77:db local_discourse/app /sbin/boot
Unable to find image 'local_discourse/app:latest' locally
/bin/docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login'.
See '/bin/docker run --help'.
Failed to restart the container.


==================== PLUGINS ====================
#          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-email-handler.git
          - git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-user-custom.git
          - git clone https://github.com/discourse/discourse-math.git
          - git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-api-custom.git
          - git clone https://9900af0b4d21567fdc2e737907cc354581075218@github.com/codechef-org/discourse-codechef-scripts.git
#          - git clone https://github.com/paviliondev/discourse-events.git
#          - git clone https://github.com/discourse/discourse-sitemap.git
#          - git clone https://github.com/discourse/discourse-akismet.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/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at discuss.codechef.com: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 3796

              total        used        free      shared  buff/cache   available
Mem:           3707         226        2766           0         713        3134
Swap:             0           0           0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1   32G   19G   14G  57% /

==================== DISK INFORMATION ====================
Disk /dev/nvme0n1: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D644E4B4-1955-43E3-BBBB-5773780BDEE7

Device           Start      End  Sectors Size Type
/dev/nvme0n1p1    4096 67108830 67104735  32G Linux filesystem
/dev/nvme0n1p128  2048     4095     2048   1M BIOS boot

Partition table entries are not in disk order.

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Mail test skipped.

==================== DONE! ====================

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file

Can somebody help please?

Main error which is coming towards the end is this.

I, [2022-02-22T08:23:19.835243 #1]  INFO -- : Terminating async processes
I, [2022-02-22T08:23:19.835295 #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/13/bin/postmaster -D /etc/postgresql/13/main pid: 46
I, [2022-02-22T08:23:19.835334 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 107
2022-02-22 08:23:19.835 UTC [46] LOG:  received fast shutdown request
107:signal-handler (1645518199) Received SIGTERM scheduling shutdown...
2022-02-22 08:23:19.838 UTC [46] LOG:  aborting any active transactions
2022-02-22 08:23:19.841 UTC [46] LOG:  background worker "logical replication launcher" (PID 55) exited with exit code 1
2022-02-22 08:23:19.841 UTC [50] LOG:  shutting down
2022-02-22 08:23:19.860 UTC [46] LOG:  database system is shut down
107:M 22 Feb 2022 08:23:19.930 # User requested shutdown...
107:M 22 Feb 2022 08:23:19.930 * Saving the final RDB snapshot before exiting.
107:M 22 Feb 2022 08:23:19.934 * DB saved on disk
107:M 22 Feb 2022 08:23:19.934 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1856 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
e47c7ed53cf670fd0c81677b4f71bd6f63fc5d5d3d6bf26580361b2f62f46b69
** 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.
==================== END REBUILD LOG ====================
Failed to rebuild app.

^^ this is the problem.

Are you running a standard install according to our guide? If so, Redis should have updated automatically, so this is quite surprising.

2 Likes

We are using AWS elasticache for redis. So I think I have to create a new Redis instance with version 6.2.0 or up, right?

2 Likes

Yes, that should do it :+1:

I’m not too familiar with Elasticache, but if there’s any way to “upgrade” your existing instance without losing data, that would make sure that users don’t lose their existing login sessions.

I updated redis to 6.2.5, still it is not rebuilding.

Does the log still say “Discourse requires Redis 6.2.0 or up`”?

No, I can’t find this line now.
Here is the full output of discourse-doctor.

Looks like an error from a third-party plugin: discourse-codechef-email-handler. It will probably need to be updated to work with the latest version of Discourse.

4 Likes

Basically we were extending single_sign_on class to add a custom email as an Accessor.

Here is the code for it.

# name: discourse-codechef-email-handler
# about: A plugin to redirect emails to the correct email-address for multiple accounts associated with the same address,
#        and handle all the functions related to a user's email address on CodeChef.

enabled_site_setting :discourse_codechef_email_handler_enabled

after_initialize do 

    # This code block overrides build_email() to send emails to codechef_email(user.codechef_email) 
    # instead of email(user.email)
    require_dependency 'email/message_builder'
    module ::Email::BuildEmailHelper
        def build_email(*builder_args)
            user = User.find_by_email(builder_args[0])
            builder_args[0] = user.codechef_email
            builder = Email::MessageBuilder.new(*builder_args)
            headers(builder.header_args) if builder.header_args.present?
            mail(builder.build_args).tap { |message|
              if message && h = builder.html_part
                message.html_part = h
              end
            }
        end
    end

    # This code block extends the SingleSignOn class to include codechef_email as an ACCESSOR 
    require_dependency 'single_sign_on'
    class ::SingleSignOn
        ACCESSORS = ACCESSORS.dup << :codechef_email 
        attr_accessor(*ACCESSORS)
    end

    # This code block overrides 'change_external_attributes_and_override' to save codechef_email at every 
    # login to discourse via SSO
    require_dependency 'discourse_single_sign_on'
    class ::DiscourseSingleSignOn
        module AddCodeChefEmail
            def change_external_attributes_and_override(sso_record, user)
                super(sso_record, user)
                user.codechef_email = codechef_email
            end
        end
        prepend AddCodeChefEmail
    end
end

Can you point to some documentation where I can see the changes?

The SSO-related classes have been renamed in the latest version of Discourse. You can see the change here:

Note that we don’t really recommend making patches to core behaviour like this in plugins. It would be much better if you can handle the custom email logic on the identity-provider side.

2 Likes

Got it. I have changed the class names for now and it worked.
I will look further into how to achieve the requirement without making patches on the core behaviour.
Thanks a lot for all your help. :slight_smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.