Errore durante "./discourse rebuild app" a causa di un errore del tema

Non sono sicuro di cosa sia successo, ma quando ho provato a usare il comando ./discourse rebuild app oggi, l’aggiornamento è fallito e il mio forum è rimasto offline. Questa situazione non mi era mai capitata prima. Per favore, aiutatemi.

root@huey:/var/discourse# ./launcher rebuild app
Verifica che il launcher sia aggiornato
Recupero origin
Il launcher è aggiornato
Arresto del vecchio container
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
Già aggiornato.
Nota: checkout di 'v1.0.3'.

Si è in uno stato di 'HEAD distaccato'. Si può esplorare, apportare modifiche sperimentali e committarle, ed è possibile scartare qualsiasi commit effettuato in questo stato senza influenzare alcun ramo eseguendo un altro checkout.

Se si desidera creare un nuovo ramo per conservare i commit creati, è possibile farlo (ora o in seguito) utilizzando -b con il comando checkout. Esempio:

  git checkout -b <nome-nuovo-ramo>

HEAD is now at d1db030 cut a new version
I, [2021-11-26T06:52:19.774111 #1]  INFO -- : Caricamento da --stdin
I, [2021-11-26T06:52:19.780789 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-11-26T06:52:19.839754 #1]  INFO -- : Generazione delle impostazioni locali (questo potrebbe richiedere del tempo)...
Generazione completata.

I, [2021-11-26T06:52:19.840391 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2021-11-26T06:52:19.844496 #1]  INFO -- : 
I, [2021-11-26T06:52:19.845155 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-11-26T06:52:19.848582 #1]  INFO -- : 
I, [2021-11-26T06:52:19.849162 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2021-11-26T06:52:19.852254 #1]  INFO -- : 
I, [2021-11-26T06:52:19.852809 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2021-11-26T06:52:19.855786 #1]  INFO -- : 
I, [2021-11-26T06:52:19.856271 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-11-26T06:52:19.858758 #1]  INFO -- : 
I, [2021-11-26T06:52:19.859209 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/11/26 06:52:19 socat[27] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-11-26T06:52:19.868693 #1]  INFO -- : 
I, [2021-11-26T06:52:19.869177 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-11-26T06:52:19.872612 #1]  INFO -- : 
I, [2021-11-26T06:52:19.872987 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-11-26T06:52:19.875810 #1]  INFO -- : 
I, [2021-11-26T06:52:19.876176 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-11-26T06:52:19.878527 #1]  INFO -- : 
I, [2021-11-26T06:52:19.879059 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-11-26T06:52:19.881421 #1]  INFO -- : 
I, [2021-11-26T06:52:19.887370 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2021-11-26T06:52:19.891829 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2021-11-26T06:52:19.896663 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2021-11-26T06:52:19.901237 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2021-11-26T06:52:19.901820 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-11-26T06:52:21.465723 #1]  INFO -- : 
I, [2021-11-26T06:52:21.466837 #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-11-26T06:52:21.472718 #1]  INFO -- : 
I, [2021-11-26T06:52:21.473267 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-11-26T06:52:21.500359 #1]  INFO -- : 
I, [2021-11-26T06:52:21.501230 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-11-26T06:52:21.504841 #1]  INFO -- : 
I, [2021-11-26T06:52:21.505537 #1]  INFO -- : > /root/upgrade_postgres
I, [2021-11-26T06:52:21.514813 #1]  INFO -- : 
I, [2021-11-26T06:52:21.515436 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2021-11-26T06:52:21.518874 #1]  INFO -- : 
I, [2021-11-26T06:52:21.520508 #1]  INFO -- : Sostituzione di data_directory = '/var/lib/postgresql/13/main' con data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.521419 #1]  INFO -- : Sostituzione di (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.522149 #1]  INFO -- : Sostituzione di (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.522900 #1]  INFO -- : Sostituzione di (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.523490 #1]  INFO -- : Sostituzione di (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.524195 #1]  INFO -- : Sostituzione di (?-mix:#?default_text_search_config *=.*) con default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.524767 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-11-26T06:52:21.531023 #1]  INFO -- : 
I, [2021-11-26T06:52:21.531900 #1]  INFO -- : Sostituzione di (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.532483 #1]  INFO -- : Sostituzione di (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.533303 #1]  INFO -- : Sostituzione di (?-mix:#?log_min_duration_statement *=.*) con log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2021-11-26T06:52:21.534574 #1]  INFO -- : Sostituzione di (?-mix:^#local +replication +postgres +peer$) con local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-11-26T06:52:21.535094 #1]  INFO -- : Sostituzione di (?-mix:^host.*all.*all.*127.*$) con host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-11-26T06:52:21.535603 #1]  INFO -- : Sostituzione di (?-mix:^host.*all.*all.*::1\/128.*$) con host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-11-26T06:52:21.536120 #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-11-26T06:52:21.538574 #1]  INFO -- : > sleep 5
2021-11-26 06:52:21.644 UTC [50] LOG:  avvio di PostgreSQL 13.5 (Debian 13.5-1.pgdg100+1) su x86_64-pc-linux-gnu, compilato da gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-11-26 06:52:21.645 UTC [50] LOG:  in ascolto sull'indirizzo IPv4 "0.0.0.0", porta 5432
2021-11-26 06:52:21.647 UTC [50] LOG:  in ascolto sull'indirizzo IPv6 "::", porta 5432
2021-11-26 06:52:21.653 UTC [50] LOG:  in ascolto sulla socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2021-11-26 06:52:21.661 UTC [53] LOG:  il sistema del database è stato arrestato il 2021-11-26 06:51:33 UTC
2021-11-26 06:52:21.673 UTC [50] LOG:  il sistema del database è pronto ad accettare connessioni
I, [2021-11-26T06:52:26.553530 #1]  INFO -- : 
I, [2021-11-26T06:52:26.553786 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2021-11-26 06:52:26.660 UTC [63] postgres@postgres ERROR:  il database "discourse" esiste già
2021-11-26 06:52:26.660 UTC [63] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: errore: creazione del database fallita: ERROR:  il database "discourse" esiste già
I, [2021-11-26T06:52:26.663095 #1]  INFO -- : 
I, [2021-11-26T06:52:26.663581 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-11-26 06:52:26.736 UTC [67] postgres@discourse ERROR:  il ruolo "discourse" esiste già
2021-11-26 06:52:26.736 UTC [67] postgres@discourse STATEMENT:  create user discourse;
ERROR:  il ruolo "discourse" esiste già
I, [2021-11-26T06:52:26.738817 #1]  INFO -- : 
I, [2021-11-26T06:52:26.739317 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-11-26T06:52:26.793466 #1]  INFO -- : GRANT

I, [2021-11-26T06:52:26.794156 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-11-26T06:52:26.850327 #1]  INFO -- : ALTER SCHEMA

I, [2021-11-26T06:52:26.850954 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  l'estensione "hstore" esiste già, salto
I, [2021-11-26T06:52:26.915553 #1]  INFO -- : CREATE EXTENSION

I, [2021-11-26T06:52:26.916146 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  l'estensione "pg_trgm" esiste già, salto
I, [2021-11-26T06:52:26.967770 #1]  INFO -- : CREATE EXTENSION

I, [2021-11-26T06:52:26.968378 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  l'estensione "hstore" esiste già, salto
I, [2021-11-26T06:52:27.021684 #1]  INFO -- : CREATE EXTENSION

I, [2021-11-26T06:52:27.022254 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  l'estensione "pg_trgm" esiste già, salto
I, [2021-11-26T06:52:27.072943 #1]  INFO -- : CREATE EXTENSION

I, [2021-11-26T06:52:27.073544 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2021-11-26T06:52:27.078535 #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-11-26T06:52:27.156981 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2021-11-26T06:52:27.161721 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2021-11-26T06:52:27.162374 #1]  INFO -- : > echo postgres installed!
I, [2021-11-26T06:52:27.166280 #1]  INFO -- : postgres installed!

I, [2021-11-26T06:52:27.172391 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2021-11-26T06:52:27.177523 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2021-11-26T06:52:27.182359 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2021-11-26T06:52:27.183964 #1]  INFO -- : Sostituzione di daemonize yes con  in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.184956 #1]  INFO -- : Sostituzione di (?-mix:^pidfile.*$) con  in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.186293 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-11-26T06:52:27.190120 #1]  INFO -- : 
I, [2021-11-26T06:52:27.191015 #1]  INFO -- : Sostituzione di (?-mix:^logfile.*$) con logfile "" in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.191920 #1]  INFO -- : Sostituzione di (?-mix:^bind .*$) con  in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.193485 #1]  INFO -- : Sostituzione di (?-mix:^dir .*$) con dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.194789 #1]  INFO -- : Sostituzione di (?-mix:^protected-mode yes) con protected-mode no in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.196052 #1]  INFO -- : Sostituzione di # io-threads 4 con io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-11-26T06:52:27.197295 #1]  INFO -- : > echo redis installed
I, [2021-11-26T06:52:27.200926 #1]  INFO -- : redis installed

I, [2021-11-26T06:52:27.201741 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-11-26T06:52:27.207759 #1]  INFO -- : logfile ""

I, [2021-11-26T06:52:27.208486 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-11-26T06:52:27.211121 #1]  INFO -- : > sleep 10
111:C 26 Nov 2021 06:52:27.228 # oO0OoO0OoO0Oo Redis è in avvio oO0OoO0OoO0Oo
111:C 26 Nov 2021 06:52:27.228 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=111, appena avviato
111:C 26 Nov 2021 06:52:27.228 # Configurazione caricata
111:M 26 Nov 2021 06:52:27.230 * clock monotonic: POSIX clock_gettime
111:M 26 Nov 2021 06:52:27.231 * Modalità di esecuzione=standalone, porta=6379.
111:M 26 Nov 2021 06:52:27.232 # Server inizializzato
111:M 26 Nov 2021 06:52:27.233 * Caricamento RDB prodotto dalla versione 6.2.6
111:M 26 Nov 2021 06:52:27.233 * Età RDB 55 secondi
111:M 26 Nov 2021 06:52:27.233 * Utilizzo memoria RDB al momento della creazione 13.70 Mb
111:M 26 Nov 2021 06:52:27.282 # Caricamento RDB completato, chiavi caricate: 11359, chiavi scadute: 0.
111:M 26 Nov 2021 06:52:27.282 * DB caricato dal disco: 0.050 secondi
111:M 26 Nov 2021 06:52:27.283 * Pronto ad accettare connessioni
I, [2021-11-26T06:52:37.217342 #1]  INFO -- : 
I, [2021-11-26T06:52:37.218231 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-11-26T06:52:37.225035 #1]  INFO -- : thpoff is installed!

I, [2021-11-26T06:52:37.225901 #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-11-26T06:52:37.322317 #1]  INFO -- : 
I, [2021-11-26T06:52:37.323010 #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-11-26T06:52:37.399326 #1]  INFO -- : 
I, [2021-11-26T06:52:37.400032 #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-11-26T06:52:37.471867 #1]  INFO -- : 
I, [2021-11-26T06:52:37.472524 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-11-26T06:52:37.476255 #1]  INFO -- : 
I, [2021-11-26T06:52:37.479549 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2021-11-26T06:52:37.485079 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2021-11-26T06:52:37.490025 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2021-11-26T06:52:37.494916 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2021-11-26T06:52:37.499850 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2021-11-26T06:52:37.504818 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2021-11-26T06:52:37.505359 #1]  INFO -- : Sostituzione di # postgres con sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-11-26T06:52:37.505881 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-11-26T06:52:37.508360 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
138:C 26 Nov 2021 06:52:37.514 # oO0OoO0OoO0Oo Redis è in avvio oO0OoO0OoO0Oo
138:C 26 Nov 2021 06:52:37.515 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=138, appena avviato
138:C 26 Nov 2021 06:52:37.515 # Configurazione caricata
138:M 26 Nov 2021 06:52:37.516 * clock monotonic: POSIX clock_gettime
138:M 26 Nov 2021 06:52:37.516 # Warning: Impossibile creare la socket TCP di ascolto del server *:6379: bind: Indirizzo già in uso
138:M 26 Nov 2021 06:52:37.517 # Ascolto sulla porta 6379 (TCP) fallito, abort.
Checking out files: 100% (26188/26188), done.
I, [2021-11-26T06:52:41.119917 #1]  INFO -- : HEAD is now at eb82849c FIX: none and all categories filter (#14999)

I, [2021-11-26T06:52:41.123786 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-11-26T06:52:41.289155 #1]  INFO -- : 
I, [2021-11-26T06:52:41.289725 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2021-11-26T06:52:41.294643 #1]  INFO -- : 
I, [2021-11-26T06:52:41.295244 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-11-26T06:52:41.300908 #1]  INFO -- : 
I, [2021-11-26T06:52:41.301446 #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-11-26T06:52:43.563795 #1]  INFO -- : 
I, [2021-11-26T06:52:43.564371 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-11-26T06:52:44.047375 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2021-11-26T06:52:44.047983 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-11-26T06:52:44.054072 #1]  INFO -- : 
I, [2021-11-26T06:52:44.054614 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-11-26T06:52:44.059393 #1]  INFO -- : 
I, [2021-11-26T06:52:44.059865 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-11-26T06:52:44.063768 #1]  INFO -- : 
I, [2021-11-26T06:52:44.064193 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-11-26T06:52:44.067939 #1]  INFO -- : 
I, [2021-11-26T06:52:44.068303 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-11-26T06:52:44.073136 #1]  INFO -- : 
I, [2021-11-26T06:52:44.073492 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2021-11-26T06:52:44.076969 #1]  INFO -- : 
I, [2021-11-26T06:52:44.077286 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-11-26T06:52:44.083262 #1]  INFO -- : 
I, [2021-11-26T06:52:44.083740 #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-11-26T06:52:44.089092 #1]  INFO -- : 
I, [2021-11-26T06:52:44.089478 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2021-11-26T06:52:44.094099 #1]  INFO -- : 
I, [2021-11-26T06:52:44.094465 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-11-26T06:52:44.098926 #1]  INFO -- : 
I, [2021-11-26T06:52:44.099365 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2021-11-26T06:52:44.105025 #1]  INFO -- : 
I, [2021-11-26T06:52:44.105495 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-11-26T06:52:44.110184 #1]  INFO -- : 
I, [2021-11-26T06:52:44.110625 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-11-26T06:52:45.223197 #1]  INFO -- : 
I, [2021-11-26T06:52:45.223947 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-11-26T06:52:45.230468 #1]  INFO -- : 
I, [2021-11-26T06:52:45.232168 #1]  INFO -- : Sostituzione di # redis con sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-11-26T06:52:45.232978 #1]  INFO -- : > cd /var/www/discourse/plugins && mkdir -p plugins
I, [2021-11-26T06:52:45.236941 #1]  INFO -- : 
I, [2021-11-26T06:52:45.237422 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-11-26T06:52:46.093281 #1]  INFO -- : 
I, [2021-11-26T06:52:46.093843 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-bbcode-color.git
Cloning into 'discourse-bbcode-color'...
I, [2021-11-26T06:52:46.369317 #1]  INFO -- : 
I, [2021-11-26T06:52:46.369898 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/gdpelican/babble.git
Cloning into 'babble'...
I, [2021-11-26T06:52:46.809597 #1]  INFO -- : 
I, [2021-11-26T06:52:46.810476 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-11-26T06:52:46.818623 #1]  INFO -- : 
I, [2021-11-26T06:52:46.819407 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-11-26T06:52:46.823768 #1]  INFO -- : 
I, [2021-11-26T06:52:46.824358 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2021-11-26T06:52:46.827596 #1]  INFO -- : 
I, [2021-11-26T06:52:46.828601 #1]  INFO -- : Sostituzione di pid /run/nginx.pid; con daemon off; in /etc/nginx/nginx.conf
I, [2021-11-26T06:52:46.829282 #1]  INFO -- : Sostituzione di (?m-ix:upstream[^\}]+\}) con upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-11-26T06:52:46.829912 #1]  INFO -- : Sostituzione di (?-mix:server_name.+$) con server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-11-26T06:52:46.830533 #1]  INFO -- : Sostituzione di (?-mix:client_max_body_size.+$) con client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-11-26T06:52:46.831060 #1]  INFO -- : > echo "done configuring web"
I, [2021-11-26T06:52:46.833318 #1]  INFO -- : done configuring web

I, [2021-11-26T06:52:46.833822 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-11-26T06:52:47.425921 #1]  INFO -- : Installazione di bundler-2.2.26 con successo
1 gem installato

I, [2021-11-26T06:52:47.426522 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-11-26T06:52:53.805479 #1]  INFO -- : 
I, [2021-11-26T06:52:53.806274 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATA] Il flag `--deployment` è deprecato perché si basa sulla necessità di essere ricordato tra diverse invocazioni di bundler, cosa che bundler non farà più nelle versioni future. Utilizzare invece `bundle config set --local deployment 'true'` e smettere di usare questo flag
[DEPRECATA] Il flag `--without` è deprecato perché si basa sulla necessità di essere ricordato tra diverse invocazioni di bundler, cosa che bundler non farà più nelle versioni future

Sembra esserci un problema con il componente del tema Alternative Logo.

Qualcun altro ha riscontrato un problema con esso qui:

C’è la possibilità che tu possa eseguire ./launcher start app ed eliminare il componente del tema dalle impostazioni di amministrazione, e poi provare ad aggiornare di nuovo. Sebbene l’OP nell’altro argomento abbia infine dovuto creare una nuova installazione e ripristinare un backup.

Nessuna fortuna. Non sono riuscito ad accedere o avviare l’app usando il comando ./launcher start app OPPURE ./launcher enter app

Restituisce questo errore

Unable to find image 'local_discourse/app:latest' locally

docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

See 'docker run --help'.

Mi dispiace, la prima versione del mio post era inutile dato che non si può accedere all’app.

La soluzione sembra essere una reinstallazione completa e il ripristino di un backup, se ne hai uno.

Se è troppo vecchio, proverei alcune cose prima

service docker restart
systemctl restart docker
cd /var/discourse
./launcher destroy app
./launcher start app

Ma le rare volte che ho avuto problemi con Docker, ho scelto di reinstallare, può essere complicato.

Hmm. Hai eseguito una pulizia? (Ma non ha molta importanza ora perché non riesci ad avviare il vecchio container.)

Dovrebbe esserci un modo per disabilitare i temi non funzionanti durante la ricompilazione. Ho modificato il tuo oggetto per richiamare l’attenzione su questo problema.

Potrebbe essere possibile creare un container solo con postgres, quindi rimuovere il tema con sql, quindi reinserire il modello web e ricompilare.

Sono riuscito a risolvere questo problema eseguendo i seguenti passaggi:

  • Modifica containers/app.yml per commentare tutti i servizi template tranne postgres
  • Esegui ./launcher rebuild app quindi ./launcher enter app
  • Una volta dentro, entro nella console postgres su - postgres quindi psql
  • Una volta in postgres, digito \\c discourse quindi SELECT * FROM themes e scopro che il tema errato Alternative Logo ha l’ID 11. Successivamente lo elimino con DELETE FROM themes WHERE id=11 quindi esco dalla console con \\q
  • Esci dal container con exit quindi decommenta tutti i template in containers/app.yaml e ricostruisci di nuovo