Build fallita per hash di commit specifico

Devo compilare Discourse su un commit specifico “dc5b37c01131bfc42eb666ec2bc779433df309cb”, ma ho un errore.

# ./launcher rebuild app
Il dispositivo "docker0" non esiste.
Architettura x86_64 rilevata.
ATTENZIONE: il file containers/app.yml è leggibile da tutti. Puoi proteggere questo file eseguendo: chmod o-rwx containers/app.yml
Assicurazione che il launcher sia aggiornato
Il launcher è aggiornato
Arresto del contenitore precedente
+ /usr/bin/docker stop -t 60 app
app
2.0.20230313-1023: Estrazione da discourse/base
Digest: sha256:f7467469ab9e39c3548d4478e3f416c05b34a0ee58eb6e40b963e562005669cc
Stato: Immagine aggiornata per discourse/base:2.0.20230313-1023
docker.io/discourse/base:2.0.20230313-1023
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-04-05T15:11:07.535403 #1]  INFO -- : Lettura da stdin
I, [2023-04-05T15:11:07.537775 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-04-05T15:11:07.572821 #1]  INFO -- : Generazione delle localizzazioni (potrebbe richiedere del tempo)...
Generazione completata.

I, [2023-04-05T15:11:07.572972 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-04-05T15:11:07.574699 #1]  INFO -- : 
I, [2023-04-05T15:11:07.574816 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-04-05T15:11:07.576296 #1]  INFO -- : 
I, [2023-04-05T15:11:07.576405 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-04-05T15:11:07.577600 #1]  INFO -- : 
I, [2023-04-05T15:11:07.577742 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-04-05T15:11:07.579598 #1]  INFO -- : 
I, [2023-04-05T15:11:07.579717 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-04-05T15:11:07.581535 #1]  INFO -- : 
I, [2023-04-05T15:11:07.581607 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres già in esecuzione, arresta il contenitore ; exit 1
2023/04/05 15:11:07 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): File o directory non esistente
I, [2023-04-05T15:11:07.599263 #1]  INFO -- : 
I, [2023-04-05T15:11:07.599391 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-04-05T15:11:07.601296 #1]  INFO -- : 
I, [2023-04-05T15:11:07.601464 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-04-05T15:11:07.603233 #1]  INFO -- : 
I, [2023-04-05T15:11:07.603317 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-04-05T15:11:07.604655 #1]  INFO -- : 
I, [2023-04-05T15:11:07.604738 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-04-05T15:11:07.606021 #1]  INFO -- : 
I, [2023-04-05T15:11:07.608870 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2023-04-05T15:11:07.611356 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2023-04-05T15:11:07.614115 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2023-04-05T15:11:07.616574 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2023-04-05T15:11:07.616711 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-04-05T15:11:08.725425 #1]  INFO -- : 
I, [2023-04-05T15:11:08.725588 #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, [2023-04-05T15:11:08.727170 #1]  INFO -- : 
I, [2023-04-05T15:11:08.727201 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-04-05T15:11:08.738009 #1]  INFO -- : 
I, [2023-04-05T15:11:08.738126 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-04-05T15:11:08.739967 #1]  INFO -- : 
I, [2023-04-05T15:11:08.740125 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-04-05T15:11:08.743817 #1]  INFO -- : 
I, [2023-04-05T15:11:08.743941 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-04-05T15:11:08.745191 #1]  INFO -- : 
I, [2023-04-05T15:11:08.746217 #1]  INFO -- : Sostituzione data_directory = '/var/lib/postgresql/13/main' con data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.746641 #1]  INFO -- : Sostituzione (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.747008 #1]  INFO -- : Sostituzione (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.747165 #1]  INFO -- : Sostituzione (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.747294 #1]  INFO -- : Sostituzione (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.747425 #1]  INFO -- : Sostituzione (?-mix:#?default_text_search_config *=.*) con default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.747548 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-04-05T15:11:08.750851 #1]  INFO -- : 
I, [2023-04-05T15:11:08.751034 #1]  INFO -- : Sostituzione (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.751277 #1]  INFO -- : Sostituzione (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.751672 #1]  INFO -- : Sostituzione (?-mix:#?log_min_duration_statement *=.*) con log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2023-04-05T15:11:08.752098 #1]  INFO -- : Sostituzione (?-mix:^#local +replication +postgres +peer$) con local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-04-05T15:11:08.752249 #1]  INFO -- : Sostituzione (?-mix:^host.*all.*all.*127.*$) con host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-04-05T15:11:08.752356 #1]  INFO -- : Sostituzione (?-mix:^host.*all.*all.*::1\/128.*$) con host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-04-05T15:11:08.752459 #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, [2023-04-05T15:11:08.753675 #1]  INFO -- : > sleep 5
2023-04-05 15:11:08.866 UTC [42] LOG:  avvio di PostgreSQL 13.10 (Debian 13.10-1.pgdg110+1) su x86_64-pc-linux-gnu, compilato con gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-04-05 15:11:08.866 UTC [42] LOG:  in ascolto sull'indirizzo IPv4 "0.0.0.0", porta 5432
2023-04-05 15:11:08.866 UTC [42] LOG:  in ascolto sull'indirizzo IPv6 "::", porta 5432
2023-04-05 15:11:08.868 UTC [42] LOG:  in ascolto sulla socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2023-04-05 15:11:08.873 UTC [45] LOG:  il sistema di database è stato spento alle 2023-04-05 06:16:39 UTC
2023-04-05 15:11:08.883 UTC [42] LOG:  il sistema di database è pronto ad accettare connessioni
I, [2023-04-05T15:11:13.755663 #1]  INFO -- : 
I, [2023-04-05T15:11:13.756280 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-04-05 15:11:13.829 UTC [55] postgres@postgres ERRORE:  il database "discourse" esiste già
2023-04-05 15:11:13.829 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: errore: creazione del database fallita: ERRORE:  il database "discourse" esiste già
I, [2023-04-05T15:11:13.830921 #1]  INFO -- : 
I, [2023-04-05T15:11:13.831090 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-04-05 15:11:13.871 UTC [59] postgres@discourse ERRORE:  il ruolo "discourse" esiste già
2023-04-05 15:11:13.871 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERRORE:  il ruolo "discourse" esiste già
I, [2023-04-05T15:11:13.873063 #1]  INFO -- : 
I, [2023-04-05T15:11:13.873258 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-04-05T15:11:13.902751 #1]  INFO -- : GRANT

I, [2023-04-05T15:11:13.902932 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-04-05T15:11:13.933017 #1]  INFO -- : ALTER SCHEMA

I, [2023-04-05T15:11:13.933227 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTA:  l'estensione "hstore" esiste già, in corso
I, [2023-04-05T15:11:13.969476 #1]  INFO -- : CREATE EXTENSION

I, [2023-04-05T15:11:13.969619 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTA:  l'estensione "pg_trgm" esiste già, in corso
I, [2023-04-05T15:11:14.001740 #1]  INFO -- : CREATE EXTENSION

I, [2023-04-05T15:11:14.001885 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTA:  l'estensione "hstore" esiste già, in corso
I, [2023-04-05T15:11:14.031644 #1]  INFO -- : CREATE EXTENSION

I, [2023-04-05T15:11:14.031827 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTA:  l'estensione "pg_trgm" esiste già, in corso
I, [2023-04-05T15:11:14.062186 #1]  INFO -- : CREATE EXTENSION

I, [2023-04-05T15:11:14.062353 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-04-05T15:11:14.064363 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2023-04-05T15:11:14.111348 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-04-05T15:11:14.113559 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2023-04-05T15:11:14.113612 #1]  INFO -- : > echo postgres installato!
I, [2023-04-05T15:11:14.114734 #1]  INFO -- : postgres installato!

I, [2023-04-05T15:11:14.117530 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2023-04-05T15:11:14.120181 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2023-04-05T15:11:14.122880 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2023-04-05T15:11:14.123505 #1]  INFO -- : Sostituzione daemonize yes con  in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.124199 #1]  INFO -- : Sostituzione (?-mix:^pidfile.*$) con  in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.124445 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-04-05T15:11:14.126384 #1]  INFO -- : 
I, [2023-04-05T15:11:14.126590 #1]  INFO -- : Sostituzione (?-mix:^logfile.*$) con logfile "" in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.127138 #1]  INFO -- : Sostituzione (?-mix:^bind .*$) con  in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.127515 #1]  INFO -- : Sostituzione (?-mix:^dir .*$) con dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.127883 #1]  INFO -- : Sostituzione (?-mix:^protected-mode yes) con protected-mode no in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.128139 #1]  INFO -- : Sostituzione # io-threads 4 con io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-04-05T15:11:14.128483 #1]  INFO -- : > echo redis installato
I, [2023-04-05T15:11:14.130199 #1]  INFO -- : redis installato

I, [2023-04-05T15:11:14.130276 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-04-05T15:11:14.134491 #1]  INFO -- : logfile ""

I, [2023-04-05T15:11:14.134662 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-04-05T15:11:14.135963 #1]  INFO -- : > sleep 10
103:C 05 Apr 2023 15:11:14.149 # oO0OoO0OoO0Oo Redis sta avviando oO0OoO0OoO0Oo
103:C 05 Apr 2023 15:11:14.149 # Versione Redis=7.0.7, bits=64, commit=00000000, modified=0, pid=103, appena avviato
103:C 05 Apr 2023 15:11:14.149 # Configurazione caricata
103:M 05 Apr 2023 15:11:14.149 * orologio monotonico: POSIX clock_gettime
103:M 05 Apr 2023 15:11:14.151 * Modalità di esecuzione=standalone, porta=6379.
103:M 05 Apr 2023 15:11:14.151 # Server inizializzato
103:M 05 Apr 2023 15:11:14.151 # ATTENZIONE: il sovrassegnamento della memoria deve essere abilitato! Senza di esso, un salvataggio in background o la replicazione potrebbero fallire in condizioni di bassa memoria. Se disabilitato, può causare fallimenti anche senza condizioni di bassa memoria, vedi https://github.com/jemalloc/jemalloc/issues/1328. Per risolvere questo problema, aggiungi 'vm.overcommit_memory = 1' a /etc/sysctl.conf e poi riavvia o esegui il comando 'sysctl vm.overcommit_memory=1' affinché abbia effetto.
103:M 05 Apr 2023 15:11:14.152 * Caricamento RDB prodotto dalla versione 7.0.7
103:M 05 Apr 2023 15:11:14.152 * Età RDB 32075 secondi
103:M 05 Apr 2023 15:11:14.152 * Utilizzo memoria RDB alla creazione 0.82 Mb
103:M 05 Apr 2023 15:11:14.152 * Caricamento RDB completato, chiavi caricate: 0, chiavi scadute: 0.
103:M 05 Apr 2023 15:11:14.152 * DB caricato dal disco: 0.000 secondi
103:M 05 Apr 2023 15:11:14.152 * Pronto ad accettare connessioni
I, [2023-04-05T15:11:24.137467 #1]  INFO -- : 
I, [2023-04-05T15:11:24.137853 #1]  INFO -- : > thpoff echo "thpoff è installato!"
I, [2023-04-05T15:11:24.149387 #1]  INFO -- : thpoff è installato!

I, [2023-04-05T15:11:24.149681 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Annullamento! La posta non è configurata!"; exit 1; end'
I, [2023-04-05T15:11:24.200993 #1]  INFO -- : 
I, [2023-04-05T15:11:24.201152 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Annullamento! Il dominio non è configurato!"; exit 1; end'
I, [2023-04-05T15:11:24.243718 #1]  INFO -- : 
I, [2023-04-05T15:11:24.243859 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Annullamento! Il CDN deve avere un protocollo specificato. Una volta corretto, dovresti rigenerare ora tutti i post per correggere tutti i post."; exit 1; end'
I, [2023-04-05T15:11:24.281161 #1]  INFO -- : 
I, [2023-04-05T15:11:24.281311 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-04-05T15:11:24.288045 #1]  INFO -- : 
I, [2023-04-05T15:11:24.289881 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2023-04-05T15:11:24.293565 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2023-04-05T15:11:24.296532 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2023-04-05T15:11:24.299442 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2023-04-05T15:11:24.301992 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2023-04-05T15:11:24.305284 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2023-04-05T15:11:24.305369 #1]  INFO -- : Sostituzione # postgres con sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-04-05T15:11:24.305639 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-04-05T15:11:24.307095 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
130:C 05 Apr 2023 15:11:24.310 # oO0OoO0OoO0Oo Redis sta avviando oO0OoO0OoO0Oo
130:C 05 Apr 2023 15:11:24.310 # Versione Redis=7.0.7, bits=64, commit=00000000, modified=0, pid=130, appena avviato
130:C 05 Apr 2023 15:11:24.310 # Configurazione caricata
130:M 05 Apr 2023 15:11:24.310 * orologio monotonico: POSIX clock_gettime
130:M 05 Apr 2023 15:11:24.310 # Attenzione: impossibile creare la socket TCP di ascolto del server *:6379: bind: Indirizzo già in uso
130:M 05 Apr 2023 15:11:24.310 # Errore nell'ascolto sulla porta 6379 (TCP), annullamento.
Aggiornamento dei file: 100% (32972/32972), completato.
I, [2023-04-05T15:11:26.455124 #1]  INFO -- : HEAD è ora su 59e548540 Build(deps): Aggiornamento di sass da 1.58.3 a 1.59.2 in /app/assets/javascripts (#20656)

I, [2023-04-05T15:11:26.455203 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-04-05T15:11:26.537625 #1]  INFO -- : 
I, [2023-04-05T15:11:26.537707 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin dc5b37c01131bfc42eb666ec2bc779433df309cb
      git fetch --depth 1 origin dc5b37c01131bfc42eb666ec2bc779433df309cb
  else
      git fetch --prune --prune-tags origin dc5b37c01131bfc42eb666ec2bc779433df309cb
  fi
'
fatal: errore remoto: upload-pack: non è il nostro riferimento dc5b37c01131bfc42eb666ec2bc779433df309cb
I, [2023-04-05T15:11:28.603419 #1]  INFO -- : 
I, [2023-04-05T15:11:28.604132 #1]  INFO -- : Terminazione dei processi asincroni
I, [2023-04-05T15:11:28.604192 #1]  INFO -- : Invio di INT a 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: 42
2023-04-05 15:11:28.604 UTC [42] LOG:  richiesta di arresto rapido ricevuta
I, [2023-04-05T15:11:28.604310 #1]  INFO -- : Invio di TERM a exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103
103:signal-handler (1680707488) SIGTERM ricevuto, pianificazione dell'arresto...
2023-04-05 15:11:28.610 UTC [42] LOG:  annullamento di tutte le transazioni attive
2023-04-05 15:11:28.613 UTC [42] LOG:  worker di background "logical replication launcher" (PID 51) uscito con codice di uscita 1
2023-04-05 15:11:28.614 UTC [46] LOG:  arresto in corso
2023-04-05 15:11:28.653 UTC [42] LOG:  il sistema di database è spento
103:M 05 Apr 2023 15:11:28.692 # Arresto richiesto dall'utente...
103:M 05 Apr 2023 15:11:28.692 * Salvataggio dell'ultimo snapshot RDB prima dell'uscita.
103:M 05 Apr 2023 15:11:28.695 * DB salvato su disco
103:M 05 Apr 2023 15:11:28.695 # Redis è ora pronto per uscire, arrivederci...


FALLITO
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin dc5b37c01131bfc42eb666ec2bc779433df309cb
      git fetch --depth 1 origin dc5b37c01131bfc42eb666ec2bc779433df309cb
  else
      git fetch --prune --prune-tags origin dc5b37c01131bfc42eb666ec2bc779433df309cb
  fi
' fallito con return #<Process::Status: pid 138 exit 128>
Posizione dell'errore: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec fallito con i parametri {"cd"=>"$home", "hook"=>"code", "cmd"=>["sudo -H -E -u discourse git reset --hard", "sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse bash -c '\n  if [ $(git rev-parse --is-shallow-repository) == \"true\" ]; then\n      git remote set-branches --add origin main\n      git remote set-branches origin $version\n      git fetch --depth 1 origin $version\n  else\n      git fetch --prune --prune-tags origin $version\n  fi\n'", "sudo -H -E -u discourse bash -c '\n  if [[ $(git symbolic-ref --short HEAD) == $version ]] ; then\n      git pull\n  else\n      git -c advice.detachedHead=false checkout $version\n  fi\n'", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p                    /shared/log/rails", "bash -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "bash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shared/tmp/{backups,restores}\"", "bash -c \"ln    -s           /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp", "[ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"]}
bootstrap fallito con codice di uscita 128
** FALLIMENTO DEL BOOTSTRAP ** scorri verso l'alto e cerca i messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor potrebbe aiutare a diagnosticare il problema.
2b9af6c1f823c44dc011edda5c4aa2512a29545fecf926eb47e6dbcb078ab79b

Sei sicuro che sia il commit giusto?

https://github.com/discourse/discourse/commit/dc5b37c01131bfc42eb666ec2bc779433df309cb è un 404

Questo è un commit di discourse_docker. Fix checksums · discourse/discourse_docker@dc5b37c · GitHub

Devi fare il pin su un commit di discourse/discourse.

E forse anche un commit compatibile di discourse_docker, dato che qualsiasi Discourse tu voglia potrebbe non essere compatibile con l’immagine base di Discourse corrente.

È un po’ confuso che discourse_docker venga installato in /var/discourse.

Ho impostato la versione in container/app.yml e ho anche effettuato il checkout di quel commit

params:
    version: 'dc5b37c01131bfc42eb666ec2bc779433df309cb'

Cos’altro dovrei fare?

Inserisci il commit di Discourse nel tuo file yml dove hai inserito il commit di discourse_docker e, immagino, fai il checkout di quel commit in /var/discourse/ prima di ricostruire.

Ma sembra che tu non sappia quale commit di Discourse desideri, solo quale commit di discourse_docker desideri. Se stai cercando di abbinare un sito in esecuzione, puoi visualizzare l’origine e guardare il meta tag per il commit di Discourse.

Cambiala con un commit che esiste? Fix checksums · discourse/discourse@dc5b37c · GitHub è un 404.

Ho impostato un hash di commit corretto e ora fallisce di nuovo:

I, [2023-04-10T08:33:27.495565 #1]  INFO -- : cd /var/www/discourse & gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERROR:  Could not find a valid gem 'bundler' (= 2.3.4), here is why:
          Unable to download data from https://rubygems.org/ - Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)

Ma posso fare curl a rubygems.org dall’host senza problemi.

Il problema riguarda ipv6 per i gem di Ruby e i siti web di Yarn e la soluzione è abbassare la priorità di ipv6 in /etc/gai.conf:

precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 10
precedence 2a04:4e42::0/32 5
precedence 2606:4700::0/32 5