Actualización fallida, no se puede reconstruir

Hola,

Acabo de intentar actualizar la versión de Docker de Discourse a la última versión y he obtenido el siguiente error. El sitio está caído y no puedo reconstruirlo. He intentado deshabilitar todos los plugins, pero sigue fallando con el mismo error:

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 449 exit 1>
Ubicación del error: /pups/lib/pups/exec_command.rb:112:in `spawn'
La ejecución falló con los parámetros {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
309140db90850e9ea6644e471ee47f5fea3a1bb6ea36577280d3c431eaf497fe
** ERROR DE BOOTSTRAP ** desplázate hacia arriba y busca mensajes de error anteriores, puede haber más de uno.

Aquí tienes la salida de ./discourse-doctor, ¿alguna idea de qué podría estar causando esto?


DISCOURSE DOCTOR Wed Jun 9 18:15:39 BST 2021
SO: 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

==================== INFO DE DOCKER ====================
VERSIÓN DE DOCKER: Docker version 18.06.1-ce, build e68fc7a

PROCESOS DE DOCKER (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

==================== ¡PROBLEMA GRAVE! ====================
¡La aplicación no se está ejecutando!
Intentando reconstruir
==================== REGISTRO DE RECONSTRUCCIÓN ====================
Asegurando que el launcher esté actualizado
Obteniendo origen
El launcher está actualizado
Deteniendo el contenedor antiguo
+ /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
Nota: verificando 'v1.0.3'.

Estás en el estado 'detached HEAD'. Puedes mirar alrededor, hacer cambios experimentales y confirmarlos, y puedes descartar cualquier confirmación que hagas en este estado sin afectar ninguna rama realizando otra verificación.

Si deseas crear una nueva rama para conservar las confirmaciones que crees, puedes hacerlo (ahora o más tarde) usando -b con el comando de verificación nuevamente. Ejemplo:

  git checkout -b <new-branch-name>

HEAD is now at d1db030 cutuna nueva versión
I, [2021-06-09T17:15:48.541059 #1]  INFO -- : Cargando --stdin
I, [2021-06-09T17:15:48.547260 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-06-09T17:15:48.581289 #1]  INFO -- : Generando locales (esto puede tardar un poco)...
Generación completada.

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 -- : Reemplazando data_directory = '/var/lib/postgresql/13/main' con data_directory = '/shared/postgres_data' en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.780060 #1]  INFO -- : Reemplazando (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.780857 #1]  INFO -- : Reemplazando (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.781387 #1]  INFO -- : Reemplazando (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.781909 #1]  INFO -- : Reemplazando (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.782428 #1]  INFO -- : Reemplazando (?-mix:#?default_text_search_config *=.*) con default_text_search_config = '$db_default_text_search_config' en /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 -- : Reemplazando (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.787937 #1]  INFO -- : Reemplazando (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.788464 #1]  INFO -- : Reemplazando (?-mix:#?log_min_duration_statement *=.*) con log_min_duration_statement = $db_log_min_duration_statement en /etc/postgresql/13/main/postgresql.conf
I, [2021-06-09T17:15:48.788988 #1]  INFO -- : Reemplazando (?-mix:^#local +replication +postgres +peer$) con local replication postgres  peer en /etc/postgresql/13/main/pg_hba.conf
I, [2021-06-09T17:15:48.789493 #1]  INFO -- : Reemplazando (?-mix:^host.*all.*all.*127.*$) con host all all 0.0.0.0/0 md5 en /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:  iniciando PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) en x86_64-pc-linux-gnu, compilado por gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-06-09 17:15:48.829 UTC [56] LOG:  escuchando en la dirección IPv4 "0.0.0.0", puerto 5432
2021-06-09 17:15:48.829 UTC [56] LOG:  escuchando en la dirección IPv6 "::", puerto 5432
2021-06-09 17:15:48.830 UTC [56] LOG:  escuchando en el socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2021-06-09 17:15:48.833 UTC [59] LOG:  el sistema de bases de datos se apagó a las 2021-06-09 17:06:49 UTC
2021-06-09 17:15:48.837 UTC [56] LOG:  el sistema de bases de datos está listo para aceptar conexiones
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:  la base de datos "discourse" ya existe
2021-06-09 17:15:53.858 UTC [69] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: la creación de la base de datos falló: ERROR:  la base de datos "discourse" ya existe
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:  el rol "discourse" ya existe
2021-06-09 17:15:53.929 UTC [80] postgres@discourse STATEMENT:  create user discourse;
ERROR:  el rol "discourse" ya existe
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:  la extensión "hstore" ya existe, omitiendo
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:  la extensión "pg_trgm" ya existe, omitiendo
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:  la extensión "hstore" ya existe, omitiendo
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:  la extensión "pg_trgm" ya existe, omitiendo
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 -- : Reemplazando daemonize yes con  en /etc/redis/redis.conf
I, [2021-06-09T17:15:54.469064 #1]  INFO -- : Reemplazando (?-mix:^pidfile.*$) con  en /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 -- : Reemplazando (?-mix:^logfile.*$) con logfile "" en /etc/redis/redis.conf
I, [2021-06-09T17:15:54.473856 #1]  INFO -- : Reemplazando (?-mix:^bind .*$) con  en /etc/redis/redis.conf
I, [2021-06-09T17:15:54.474545 #1]  INFO -- : Reemplazando (?-mix:^dir .*$) con dir /shared/redis_data en /etc/redis/redis.conf
I, [2021-06-09T17:15:54.475408 #1]  INFO -- : Reemplazando (?-mix:^protected-mode yes) con protected-mode no en /etc/redis/redis.conf
I, [2021-06-09T17:15:54.476042 #1]  INFO -- : Reemplazando # io-threads 4 con io-threads $redis_io_threads en /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 está iniciando 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 # Configuración cargada
173:M 09 Jun 2021 17:15:54.489 * reloj monótono: POSIX clock_gettime
173:M 09 Jun 2021 17:15:54.490 * Modo de ejecución=standalone, puerto=6379.
173:M 09 Jun 2021 17:15:54.490 # ADVERTENCIA: La configuración de TCP backlog de 511 no se puede aplicar porque /proc/sys/net/core/somaxconn está configurado en el valor inferior de 128.
173:M 09 Jun 2021 17:15:54.490 # Servidor inicializado
173:M 09 Jun 2021 17:15:54.490 # ADVERTENCIA overcommit_memory está configurado en 0! El guardado en segundo plano puede fallar bajo condiciones de memoria baja. Para solucionar este problema agregue 'vm.overcommit_memory = 1' a /etc/sysctl.conf y luego reinicie o ejecute el comando 'sysctl vm.overcommit_memory=1' para que esto surta efecto.
173:M 09 Jun 2021 17:15:54.490 # ADVERTENCIA tiene el soporte de Transparent Huge Pages (THP) habilitado en su kernel. Esto creará problemas de latencia y uso de memoria con Redis. Para solucionar este problema ejecute el comando 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' como root, y agréguelo a su /etc/rc.local para mantener la configuración después de un reinicio. Redis debe reiniciarse después de que THP se deshabilite (configurado en 'madvise' o 'never').
173:M 09 Jun 2021 17:15:54.490 * Cargando RDB producido por la versión 6.2.3
173:M 09 Jun 2021 17:15:54.490 * Edad de RDB 545 segundos
173:M 09 Jun 2021 17:15:54.490 * Uso de memoria de RDB al crearse 48.75 Mb
173:M 09 Jun 2021 17:15:54.632 * Base de datos cargada desde disco: 0.142 segundos
173:M 09 Jun 2021 17:15:54.632 * Listo para aceptar conexiones
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 -- : Reemplazando # postgres con sv start postgres || exit 1 en /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 está iniciando 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 # Configuración cargada
202:M 09 Jun 2021 17:16:04.806 * reloj monótono: POSIX clock_gettime
202:M 09 Jun 2021 17:16:04.806 # Advertencia: No se pudo crear el socket de escucha TCP del servidor *:6379: bind: Dirección ya en uso
202:M 09 Jun 2021 17:16:04.806 # Error al escuchar en el puerto 6379 (TCP), abortando.
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 -- : Reemplazando # redis con sv start redis || exit 1 en /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 -- : Reemplazando pid /run/nginx.pid; con daemon off; en /etc/nginx/nginx.conf
I, [2021-06-09T17:16:22.642367 #1]  INFO -- : Reemplazando (?m-ix:upstream[^\}]+\}) con upstream discourse { server 127.0.0.1:3000; } en /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.642860 #1]  INFO -- : Reemplazando (?-mix:server_name.+$) con server_name _ ; en /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.643347 #1]  INFO -- : Reemplazando (?-mix:client_max_body_size.+$) con client_max_body_size $upload_size ; en /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'
[OBSOLETO] La opción `--deployment` está en desuso porque depende de que se recuerde entre invocaciones de bundler, lo cual bundler ya no hará en futuras versiones. En su lugar, utilice `bundle config set --local deployment 'true'` y deje de usar esta opción.
[OBSOLETO] La opción `--without` está en desuso porque depende de que se recuerde entre invocaciones de bundler, lo cual bundler ya no hará en futuras versiones

Tienes instalado el plugin de etiquetado de Discourse. Este plugin está obsoleto, ya que el etiquetado ahora es una función principal.

Comenta el plugin de etiquetado y vuelve a intentar la compilación.

Además, actualiza tu versión de Docker.

Lo siento, desactivar los complementos parece haber resuelto el problema. Ahora intentaré volver a activarlos.

Gracias, eso parecía ser el problema. Actualizar la versión de Docker es complicado, ya que la máquina ejecuta una distribución más antigua. ¿Cuál es la versión de Docker recomendada? ¿Hay algún problema al ejecutar la versión 18.06?

En realidad, estás ejecutando una versión compatible, disculpa.