更新に失敗しました、再構築できません

こんにちは、

Discourse の Docker バージョンを最新バージョンに更新しようとしたところ、以下のエラーが発生しました。サイトがダウンしており、再構築もできません。すべてのプラグインを無効化してみましたが、同じエラーで失敗します:

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 449 exit 1>
失敗箇所: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec がパラメータ {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]} で失敗しました
309140db90850e9ea6644e471ee47f5fea3a1bb6ea36577280d3c431eaf497fe
** ブートストラップに失敗しました ** 上にスクロールして、より前のエラーメッセージを確認してください。エラーが複数ある可能性があります。

以下は ./discourse-doctor の出力です。これが原因となる可能性のあるアイデアはありますか?


DISCOURSE DOCTOR Wed Jun 9 18:15:39 BST 2021
OS: Linux h79-143-80-210 3.13.0-147-generic #196-Ubuntu SMP Wed May 2 15:51:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

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

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS                     PORTS                  NAMES
6084a0e22b64        local_discourse/app         "/sbin/boot"             5 weeks ago         Exited (5) 9 minutes ago                          app

==================== SERIOUS PROBLEM!!!! ====================
app が実行されていません!
再構築を試みています
==================== REBUILD LOG ====================
launcher が最新であることを確認しています
origin を取得しています
launcher は最新です
古いコンテナを停止しています
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
From https://github.com/discourse/pups
   17f04ec..44198d7  master            -> origin/master
 * [new branch]      add-ignore-option -> origin/add-ignore-option
 + 4db217f...af226b0 gen-env-args      -> origin/gen-env-args  (forced update)
Updating 17f04ec..44198d7
Fast-forward
 .github/workflows/ci.yml     |  29 ++++++
 .github/workflows/lint.yml   |  27 ++++++
 .rubocop.yml                 |   3 +
 Gemfile                      |   2 +
 Guardfile                    |   4 +-
 README.md                    |   9 ++
 Rakefile                     |  14 +--
 bin/pups                     |   8 +-
 lib/pups.rb                  |  32 ++++---
 lib/pups/cli.rb              |  85 +++++++++--------
 lib/pups/command.rb          |  25 ++---
 lib/pups/config.rb           | 217 +++++++++++++++++++++----------------------
 lib/pups/exec_command.rb     | 182 ++++++++++++++++++------------------
 lib/pups/file_command.rb     |  60 ++++++------
 lib/pups/merge_command.rb    |  94 ++++++++++---------
 lib/pups/replace_command.rb  |  70 +++++++-------
 lib/pups/runit.rb            |  47 +++++-----
 lib/pups/version.rb          |   4 +-
 pups.gemspec                 |  37 ++++----
 test/cli_test.rb             |  25 +++--
 test/config_test.rb          | 125 +++++++++++++------------
 test/exec_command_test.rb    |  62 ++++++-------
 test/file_command_test.rb    |  17 ++--
 test/merge_command_test.rb   |  64 ++++++-------
 test/replace_command_test.rb |  86 +++++++++--------
 test/test_helper.rb          |   2 +
 26 files changed, 712 insertions(+), 618 deletions(-)
 create mode 100644 .github/workflows/ci.yml
 create mode 100644 .github/workflows/lint.yml
 create mode 100644 .rubocop.yml
Note: checking out 'v1.0.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at d1db030 cut新しいバージョン
I, [2021-06-09T17:15:48.541059 #1]  INFO -- : Loading --stdin
I, [2021-06-09T17:15:48.547260 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-06-09T17:15:48.581289 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2021-06-09T17:15:48.581551 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2021-06-09T17:15:48.585489 #1]  INFO -- : 
I, [2021-06-09T17:15:48.585715 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-06-09T17:15:48.588562 #1]  INFO -- : 
I, [2021-06-09T17:15:48.588757 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2021-06-09T17:15:48.591247 #1]  INFO -- : 
I, [2021-06-09T17:15:48.591474 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2021-06-09T17:15:48.594255 #1]  INFO -- : 
I, [2021-06-09T17:15:48.594478 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-06-09T17:15:48.597015 #1]  INFO -- : 
I, [2021-06-09T17:15:48.597231 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/06/09 17:15:48 socat[33] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-06-09T17:15:48.603543 #1]  INFO -- : 
I, [2021-06-09T17:15:48.603775 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-06-09T17:15:48.607952 #1]  INFO -- : 
I, [2021-06-09T17:15:48.608200 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-06-09T17:15:48.612365 #1]  INFO -- : 
I, [2021-06-09T17:15:48.612608 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-06-09T17:15:48.616089 #1]  INFO -- : 
I, [2021-06-09T17:15:48.616338 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-06-09T17:15:48.619784 #1]  INFO -- : 
I, [2021-06-09T17:15:48.627365 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2021-06-09T17:15:48.634715 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2021-06-09T17:15:48.641257 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2021-06-09T17:15:48.647799 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2021-06-09T17:15:48.648283 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-06-09T17:15:48.745062 #1]  INFO -- : 
I, [2021-06-09T17:15:48.745241 #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, [2021-06-09T17:15:48.747853 #1]  INFO -- : 
I, [2021-06-09T17:15:48.747918 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-06-09T17:15:48.768688 #1]  INFO -- : 
I, [2021-06-09T17:15:48.768793 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-06-09T17:15:48.770937 #1]  INFO -- : 
I, [2021-06-09T17:15:48.771145 #1]  INFO -- : > /root/upgrade_postgres
I, [2021-06-09T17:15:48.776325 #1]  INFO -- : 
I, [2021-06-09T17:15:48.776522 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2021-06-09T17:15:48.778762 #1]  INFO -- : 
I, [2021-06-09T17:15:48.779198 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.780060 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.780857 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.781387 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.781909 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.782428 #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, [2021-06-09T17:15:48.782909 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-06-09T17:15:48.786951 #1]  INFO -- : 
I, [2021-06-09T17:15:48.787418 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.787937 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.788464 #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, [2021-06-09T17:15:48.788988 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-06-09T17:15:48.789493 #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, [2021-06-09T17:15:48.789922 #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, [2021-06-09T17:15:48.792209 #1]  INFO -- : > sleep 5
2021-06-09 17:15:48.829 UTC [56] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-06-09 17:15:48.829 UTC [56] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-06-09 17:15:48.829 UTC [56] LOG:  listening on IPv6 address "::", port 5432
2021-06-09 17:15:48.830 UTC [56] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-06-09 17:15:48.833 UTC [59] LOG:  database system was shut down at 2021-06-09 17:06:49 UTC
2021-06-09 17:15:48.837 UTC [56] LOG:  database system is ready to accept connections
I, [2021-06-09T17:15:53.795707 #1]  INFO -- : 
I, [2021-06-09T17:15:53.796024 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2021-06-09 17:15:53.858 UTC [69] postgres@postgres ERROR:  database "discourse" already exists
2021-06-09 17:15:53.858 UTC [69] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2021-06-09T17:15:53.860168 #1]  INFO -- : 
I, [2021-06-09T17:15:53.860419 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-06-09 17:15:53.929 UTC [80] postgres@discourse ERROR:  role "discourse" already exists
2021-06-09 17:15:53.929 UTC [80] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2021-06-09T17:15:53.931099 #1]  INFO -- : 
I, [2021-06-09T17:15:53.931380 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-06-09T17:15:53.999605 #1]  INFO -- : GRANT

I, [2021-06-09T17:15:53.999906 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-06-09T17:15:54.072279 #1]  INFO -- : ALTER SCHEMA

I, [2021-06-09T17:15:54.072566 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-06-09T17:15:54.146269 #1]  INFO -- : CREATE EXTENSION

I, [2021-06-09T17:15:54.146478 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-06-09T17:15:54.214671 #1]  INFO -- : CREATE EXTENSION

I, [2021-06-09T17:15:54.215057 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-06-09T17:15:54.287421 #1]  INFO -- : CREATE EXTENSION

I, [2021-06-09T17:15:54.287676 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-06-09T17:15:54.358707 #1]  INFO -- : CREATE EXTENSION

I, [2021-06-09T17:15:54.359168 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2021-06-09T17:15:54.361595 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2021-06-09T17:15:54.441578 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2021-06-09T17:15:54.445975 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2021-06-09T17:15:54.446132 #1]  INFO -- : > echo postgres installed!
I, [2021-06-09T17:15:54.449248 #1]  INFO -- : postgres installed!

I, [2021-06-09T17:15:54.455508 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2021-06-09T17:15:54.461760 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2021-06-09T17:15:54.467970 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2021-06-09T17:15:54.468236 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.469064 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.470014 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-06-09T17:15:54.472748 #1]  INFO -- : 
I, [2021-06-09T17:15:54.473111 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.473856 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.474545 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.475408 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.476042 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-06-09T17:15:54.476623 #1]  INFO -- : > echo redis installed
I, [2021-06-09T17:15:54.478913 #1]  INFO -- : redis installed

I, [2021-06-09T17:15:54.479100 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-06-09T17:15:54.482701 #1]  INFO -- : logfile ""

I, [2021-06-09T17:15:54.482860 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-06-09T17:15:54.484286 #1]  INFO -- : > sleep 10
173:C 09 Jun 2021 17:15:54.489 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
173:C 09 Jun 2021 17:15:54.489 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=173, just started
173:C 09 Jun 2021 17:15:54.489 # Configuration loaded
173:M 09 Jun 2021 17:15:54.489 * monotonic clock: POSIX clock_gettime
173:M 09 Jun 2021 17:15:54.490 * Running mode=standalone, port=6379.
173:M 09 Jun 2021 17:15:54.490 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
173:M 09 Jun 2021 17:15:54.490 # Server initialized
173:M 09 Jun 2021 17:15:54.490 # 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.
173:M 09 Jun 2021 17:15:54.490 # 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 madvise > /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 (set to 'madvise' or 'never').
173:M 09 Jun 2021 17:15:54.490 * Loading RDB produced by version 6.2.3
173:M 09 Jun 2021 17:15:54.490 * RDB age 545 seconds
173:M 09 Jun 2021 17:15:54.490 * RDB memory usage when created 48.75 Mb
173:M 09 Jun 2021 17:15:54.632 * DB loaded from disk: 0.142 seconds
173:M 09 Jun 2021 17:15:54.632 * Ready to accept connections
I, [2021-06-09T17:16:04.486234 #1]  INFO -- : 
I, [2021-06-09T17:16:04.486551 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-06-09T17:16:04.492079 #1]  INFO -- : thpoff is installed!

I, [2021-06-09T17:16:04.492318 #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, [2021-06-09T17:16:04.564478 #1]  INFO -- : 
I, [2021-06-09T17:16:04.564833 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2021-06-09T17:16:04.633789 #1]  INFO -- : 
I, [2021-06-09T17:16:04.634145 #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, [2021-06-09T17:16:04.702442 #1]  INFO -- : 
I, [2021-06-09T17:16:04.702787 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2021-06-09T17:16:04.756374 #1]  INFO -- : 
I, [2021-06-09T17:16:04.756704 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-06-09T17:16:04.760585 #1]  INFO -- : 
I, [2021-06-09T17:16:04.764495 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2021-06-09T17:16:04.770841 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2021-06-09T17:16:04.777110 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2021-06-09T17:16:04.784325 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2021-06-09T17:16:04.791191 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2021-06-09T17:16:04.797822 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2021-06-09T17:16:04.798063 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-06-09T17:16:04.798498 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-06-09T17:16:04.801159 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
202:C 09 Jun 2021 17:16:04.805 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
202:C 09 Jun 2021 17:16:04.805 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=202, just started
202:C 09 Jun 2021 17:16:04.805 # Configuration loaded
202:M 09 Jun 2021 17:16:04.806 * monotonic clock: POSIX clock_gettime
202:M 09 Jun 2021 17:16:04.806 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
202:M 09 Jun 2021 17:16:04.806 # Failed listening on port 6379 (TCP), aborting.
Checking out files: 100% (28860/28860), done.
I, [2021-06-09T17:16:06.924867 #1]  INFO -- : HEAD is now at 74f71503 FEATURE: Automatically timed delete stub topics after entire topic is merged into another topic (#13187)

I, [2021-06-09T17:16:06.924989 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-06-09T17:16:07.016232 #1]  INFO -- : 
I, [2021-06-09T17:16:07.016466 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2021-06-09T17:16:07.020571 #1]  INFO -- : 
I, [2021-06-09T17:16:07.020650 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-06-09T17:16:07.420156 #1]  INFO -- : 
I, [2021-06-09T17:16:07.420323 #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, [2021-06-09T17:16:13.888848 #1]  INFO -- : 
I, [2021-06-09T17:16:13.889069 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-06-09T17:16:14.942809 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2021-06-09T17:16:14.943087 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-06-09T17:16:14.948641 #1]  INFO -- : 
I, [2021-06-09T17:16:14.948775 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-06-09T17:16:14.953695 #1]  INFO -- : 
I, [2021-06-09T17:16:14.953805 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-06-09T17:16:14.958785 #1]  INFO -- : 
I, [2021-06-09T17:16:14.958884 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-06-09T17:16:14.964009 #1]  INFO -- : 
I, [2021-06-09T17:16:14.964161 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-06-09T17:16:14.968736 #1]  INFO -- : 
I, [2021-06-09T17:16:14.968878 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2021-06-09T17:16:14.973740 #1]  INFO -- : 
I, [2021-06-09T17:16:14.973868 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-06-09T17:16:14.981370 #1]  INFO -- : 
I, [2021-06-09T17:16:14.981509 #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, [2021-06-09T17:16:14.988896 #1]  INFO -- : 
I, [2021-06-09T17:16:14.989030 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2021-06-09T17:16:14.996745 #1]  INFO -- : 
I, [2021-06-09T17:16:14.996917 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-06-09T17:16:15.004403 #1]  INFO -- : 
I, [2021-06-09T17:16:15.004570 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2021-06-09T17:16:15.012290 #1]  INFO -- : 
I, [2021-06-09T17:16:15.012457 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-06-09T17:16:15.020418 #1]  INFO -- : 
I, [2021-06-09T17:16:15.020572 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-06-09T17:16:15.298235 #1]  INFO -- : 
I, [2021-06-09T17:16:15.298369 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-06-09T17:16:15.303229 #1]  INFO -- : 
I, [2021-06-09T17:16:15.303539 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-06-09T17:16:15.304417 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-06-09T17:16:18.074871 #1]  INFO -- : 
I, [2021-06-09T17:16:18.075094 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-tagging.git
Cloning into 'discourse-tagging'...
I, [2021-06-09T17:16:18.637146 #1]  INFO -- : 
I, [2021-06-09T17:16:18.637340 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2021-06-09T17:16:20.184574 #1]  INFO -- : 
I, [2021-06-09T17:16:20.184741 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-oauth2-basic.git
Cloning into 'discourse-oauth2-basic'...
I, [2021-06-09T17:16:21.214907 #1]  INFO -- : 
I, [2021-06-09T17:16:21.215135 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2021-06-09T17:16:21.964386 #1]  INFO -- : 
I, [2021-06-09T17:16:21.964566 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-staff-notes.git
Cloning into 'discourse-staff-notes'...
I, [2021-06-09T17:16:22.629042 #1]  INFO -- : 
I, [2021-06-09T17:16:22.629590 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.633683 #1]  INFO -- : 
I, [2021-06-09T17:16:22.633844 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-06-09T17:16:22.637380 #1]  INFO -- : 
I, [2021-06-09T17:16:22.637513 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2021-06-09T17:16:22.641418 #1]  INFO -- : 
I, [2021-06-09T17:16:22.641789 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-06-09T17:16:22.642367 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.642860 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.643347 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.643816 #1]  INFO -- : > echo "done configuring web"
I, [2021-06-09T17:16:22.646689 #1]  INFO -- : done configuring web

I, [2021-06-09T17:16:22.647211 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-06-09T17:16:23.381227 #1]  INFO -- : Successfully installed bundler-2.2.19
1 gem installed

I, [2021-06-09T17:16:23.381582 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-06-09T17:16:24.411208 #1]  INFO -- : 
I, [2021-06-09T17:16:24.411610 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[非推奨] `--deployment` フラグは、bundler の呼び出し間で記憶されることを前提としているため、将来のバージョンでは bundler がこれを行わなくなるため、非推奨となりました。代わりに `bundle config set --local deployment 'true'` を使用し、このフラグの使用を停止してください。
[非推奨] `--without` フラグは、bundler の呼び出し間で記憶されることを前提としているため、将来のバージョンでは bundler がこれを行わなくなるため、非推奨となりました。

Discourse タグ付けプラグインがインストールされていますが、タグ付け機能は現在コア機能として実装されているため、このプラグインは廃止されました。

タグ付けプラグインをコメントアウトして、再ビルドを試みてください。

また、Docker のバージョンも更新してください。

申し訳ありませんが、プラグインを無効化したところ、問題が解決したようです。現在、プラグインを再度有効化しようとしています。

ありがとうございます。それが問題の原因のようですね。Docker のバージョンアップグレードは困難です。マシンが古いディストリビューションで実行されているためです。推奨される Docker バージョンは何ですか?18.06 を実行することに関連する問題はありますか?

実際、お使いのバージョンはサポート対象です。申し訳ありません。