Échec de la reconstruction : "extconf a échoué, code de sortie 1" -- à cause d'un ancien Docker ?

J’ai une reconstruction qui échoue, je pense à cause de cela. Il s’exécute sur Ubuntu 16.04 avec Docker version 17.05.0-ce, build 89658be, ce que je sais être suspect, mais je voulais donner à cette personne une dernière chance de reconstruction si possible.

I, [2023-12-06T16:10:12.656984 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

dossier actuel :
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext
/usr/local/bin/ruby extconf.rb
  -- tar zxvfo msgpack-1.1.0.tar.gz
  -- env CFLAGS=nil LDFLAGS=nil CC=nil
-- ./configure --disable-dependency-tracking --disable-shared --with-pic
--prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/lib
*** extconf.rb a échoué ***
Impossible de créer le fichier Makefile pour une raison quelconque, probablement manque de
bibliothèques et/ou en-têtes nécessaires. Vérifiez le fichier mkmf.log pour plus de détails. Vous pourriez
avoir besoin d'options de configuration.

Options de configuration fournies :
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
extconf.rb:6:in `sys': ./configure --disable-dependency-tracking
--disable-shared --with-pic
--prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/lib
a échoué, veuillez signaler sur https://github.com/tmm1/rbtrace/issues (RuntimeError)
        from extconf.rb:42:in `block (2 levels) in <main>'
        from extconf.rb:34:in `chdir'
        from extconf.rb:34:in `block in <main>'
        from extconf.rb:30:in `chdir'
        from extconf.rb:30:in `<main>'

Pour voir pourquoi cette extension a échoué à la compilation, veuillez vérifier le fichier mkmf.log qui se trouve ici :

/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.0/mkmf.log

Échec de extconf, code de sortie 1

root@www:/var/discourse# ./launcher rebuild app
ATTENTION : La version Docker 17.05.0-ce est obsolète, il est recommandé de passer à la version 17.06.2 ou supérieure.
Architecture x86_64 détectée.
ATTENTION : Le fichier containers/app.yml est lisible par tous. Vous pouvez sécuriser ce fichier en exécutant : chmod o-rwx containers/app.yml
Vérification que le launcher est à jour
Récupération de origin
Le launcher est à jour
Arrêt de l'ancien conteneur
+ /usr/bin/docker stop -t 600 app
app
2.0.20231023-1945: Tirage depuis discourse/base
Digest : sha256:2b0eb484d20888cc2daadb690dcfa73522105650c1420212e99345a36a424d77
Statut : L'image est à jour pour discourse/base:2.0.20231023-1945
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-12-06T16:07:07.394158 #1]  INFO -- : Lecture depuis stdin
I, [2023-12-06T16:07:07.401986 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-12-06T16:07:07.472801 #1]  INFO -- : Génération des locales (cela peut prendre un moment)...
Génération terminée.

I, [2023-12-06T16:07:07.473766 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-12-06T16:07:07.483448 #1]  INFO -- :
I, [2023-12-06T16:07:07.485286 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-12-06T16:07:07.492124 #1]  INFO -- :
I, [2023-12-06T16:07:07.493335 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-12-06T16:07:07.499353 #1]  INFO -- :
I, [2023-12-06T16:07:07.500588 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-12-06T16:07:07.507193 #1]  INFO -- :
I, [2023-12-06T16:07:07.508374 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-12-06T16:07:07.514723 #1]  INFO -- :
I, [2023-12-06T16:07:07.516000 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/12/06 16:07:07 socat[17] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): Aucun fichier ou dossier de ce type
I, [2023-12-06T16:07:07.543544 #1]  INFO -- :
I, [2023-12-06T16:07:07.544355 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-12-06T16:07:07.549264 #1]  INFO -- :
I, [2023-12-06T16:07:07.549978 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-12-06T16:07:07.554670 #1]  INFO -- :
I, [2023-12-06T16:07:07.555334 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-06T16:07:07.559798 #1]  INFO -- :
I, [2023-12-06T16:07:07.560895 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-06T16:07:07.565444 #1]  INFO -- :
I, [2023-12-06T16:07:07.575177 #1]  INFO -- : Fichier > /etc/service/postgres/run  chmod: +x  chown:
I, [2023-12-06T16:07:07.583472 #1]  INFO -- : Fichier > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2023-12-06T16:07:07.593556 #1]  INFO -- : Fichier > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2023-12-06T16:07:07.602131 #1]  INFO -- : Fichier > /root/upgrade_postgres  chmod: +x  chown:
I, [2023-12-06T16:07:07.603040 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-12-06T16:07:08.001408 #1]  INFO -- :
I, [2023-12-06T16:07:08.002703 #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-12-06T16:07:08.006516 #1]  INFO -- :
I, [2023-12-06T16:07:08.007156 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-12-06T16:07:08.048363 #1]  INFO -- :
I, [2023-12-06T16:07:08.049524 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-12-06T16:07:08.055285 #1]  INFO -- :
I, [2023-12-06T16:07:08.056635 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-12-06T16:07:08.067823 #1]  INFO -- :
I, [2023-12-06T16:07:08.068692 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-12-06T16:07:08.074460 #1]  INFO -- :
I, [2023-12-06T16:07:08.077226 #1]  INFO -- : Remplacement de data_directory = '/var/lib/postgresql/13/main' par data_directory = '/shared/postgres_data' dans /etc/postgresql/13/main/postgresql.con
f
I, [2023-12-06T16:07:08.078863 #1]  INFO -- : Remplacement de (?-mix:#?listen_addresses *=.*) par listen_addresses = '*' dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.080089 #1]  INFO -- : Remplacement de (?-mix:#?synchronous_commit *=.*) par synchronous_commit = $db_synchronous_commit dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.081228 #1]  INFO -- : Remplacement de (?-mix:#?shared_buffers *=.*) par shared_buffers = $db_shared_buffers dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.082315 #1]  INFO -- : Remplacement de (?-mix:#?work_mem *=.*) par work_mem = $db_work_mem dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.083334 #1]  INFO -- : Remplacement de (?-mix:#?default_text_search_config *=.*) par default_text_search_config = '$db_default_text_search_config' dans /etc/postgresql/13/mai
n/postgresql.conf
I, [2023-12-06T16:07:08.084197 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-12-06T16:07:08.093130 #1]  INFO -- :
I, [2023-12-06T16:07:08.094813 #1]  INFO -- : Remplacement de (?-mix:#?checkpoint_segments *=.*) par checkpoint_segments = $db_checkpoint_segments dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.095967 #1]  INFO -- : Remplacement de (?-mix:#?logging_collector *=.*) par logging_collector = $db_logging_collector dans /etc/postgresql/13/main/postgresql.conf
I, [2023-12-06T16:07:08.097082 #1]  INFO -- : Remplacement de (?-mix:#?log_min_duration_statement *=.*) par log_min_duration_statement = $db_log_min_duration_statement dans /etc/postgresql/13/main/
postgresql.conf
I, [2023-12-06T16:07:08.098475 #1]  INFO -- : Remplacement de (?-mix:^#local +replication +postgres +peer$) par local replication postgres  peer dans /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-06T16:07:08.099453 #1]  INFO -- : Remplacement de (?-mix:^host.*all.*all.*127.*$) par host all all 0.0.0.0/0 md5 dans /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-06T16:07:08.100346 #1]  INFO -- : Remplacement de (?-mix:^host.*all.*all.*::1\/128.*$) par host all all ::/0 md5 dans /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-06T16:07:08.101225 #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/postm
aster -D /etc/postgresql/13/main
I, [2023-12-06T16:07:08.105497 #1]  INFO -- : > sleep 5
2023-12-06 16:07:08.222 UTC [40] LOG:  démarrage de PostgreSQL 13.12 (Debian 13.12-1.pgdg110+1) sur x86_64-pc-linux-gnu, compilé par gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-12-06 16:07:08.223 UTC [40] LOG:  écoute sur l'adresse IPv4 "0.0.0.0", port 5432
2023-12-06 16:07:08.224 UTC [40] LOG:  écoute sur l'adresse IPv6 "::", port 5432
2023-12-06 16:07:08.228 UTC [40] LOG:  écoute sur le socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2023-12-06 16:07:08.236 UTC [43] LOG:  le système de bases de données a été arrêté le 2023-12-06 16:06:59 UTC
2023-12-06 16:07:08.249 UTC [40] LOG:  le système de bases de données est prêt à accepter les connexions
I, [2023-12-06T16:07:13.114589 #1]  INFO -- :
I, [2023-12-06T16:07:13.114892 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-12-06 16:07:13.233 UTC [53] postgres@postgres ERROR:  la base de données "discourse" existe déjà
2023-12-06 16:07:13.233 UTC [53] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: erreur: la création de la base de données a échoué : ERROR:  la base de données "discourse" existe déjà
I, [2023-12-06T16:07:13.238163 #1]  INFO -- :
I, [2023-12-06T16:07:13.239077 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-12-06 16:07:13.337 UTC [57] postgres@discourse ERROR:  le rôle "discourse" existe déjà
2023-12-06 16:07:13.337 UTC [57] postgres@discourse STATEMENT:  create user discourse;
ERROR:  le rôle "discourse" existe déjà
I, [2023-12-06T16:07:13.341906 #1]  INFO -- :
I, [2023-12-06T16:07:13.342832 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-12-06T16:07:13.414866 #1]  INFO -- : GRANT

I, [2023-12-06T16:07:13.415706 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-12-06T16:07:13.488051 #1]  INFO -- : ALTER SCHEMA

I, [2023-12-06T16:07:13.488985 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  l'extension "hstore" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.565797 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.566695 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  l'extension "pg_trgm" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.631827 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.632670 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE:  l'extension "vector" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.699897 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.700680 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  l'extension "hstore" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.766672 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.767617 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  l'extension "pg_trgm" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.836190 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.837081 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE:  l'extension "vector" existe déjà, passage à l'étape suivante
I, [2023-12-06T16:07:13.904254 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-06T16:07:13.905131 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-12-06T16:07:13.911512 #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-12-06T16:07:14.017559 #1]  INFO -- : Fichier > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-12-06T16:07:14.025808 #1]  INFO -- : Fichier > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2023-12-06T16:07:14.026677 #1]  INFO -- : > echo postgres installed!
I, [2023-12-06T16:07:14.031148 #1]  INFO -- : postgres installed!

I, [2023-12-06T16:07:14.039613 #1]  INFO -- : Fichier > /etc/service/redis/run  chmod: +x  chown:
I, [2023-12-06T16:07:14.047348 #1]  INFO -- : Fichier > /etc/service/redis/log/run  chmod: +x  chown:
I, [2023-12-06T16:07:14.054663 #1]  INFO -- : Fichier > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2023-12-06T16:07:14.056288 #1]  INFO -- : Remplacement de daemonize yes par  dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.058359 #1]  INFO -- : Remplacement de (?-mix:^pidfile.*$) par  dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.059363 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-12-06T16:07:14.063988 #1]  INFO -- :
I, [2023-12-06T16:07:14.065261 #1]  INFO -- : Remplacement de (?-mix:^logfile.*$) par logfile "" dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.066441 #1]  INFO -- : Remplacement de (?-mix:^bind .*$) par  dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.068176 #1]  INFO -- : Remplacement de (?-mix:^dir .*$) par dir /shared/redis_data dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.069623 #1]  INFO -- : Remplacement de (?-mix:^protected-mode yes) par protected-mode no dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.072095 #1]  INFO -- : Remplacement de # io-threads 4 par io-threads $redis_io_threads dans /etc/redis/redis.conf
I, [2023-12-06T16:07:14.073689 #1]  INFO -- : > echo redis installed
I, [2023-12-06T16:07:14.079558 #1]  INFO -- : redis installed

I, [2023-12-06T16:07:14.080851 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-12-06T16:07:14.092037 #1]  INFO -- : logfile ""

I, [2023-12-06T16:07:14.092862 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-06T16:07:14.095644 #1]  INFO -- : > sleep 10
109:C 06 Dec 2023 16:07:14.118 # oO0OoO0OoO0Oo Redis démarre oO0OoO0OoO0Oo
109:C 06 Dec 2023 16:07:14.119 # Version Redis=7.0.7, bits=64, commit=00000000, modified=0, pid=109, vient de démarrer
109:C 06 Dec 2023 16:07:14.119 # Configuration chargée
109:M 06 Dec 2023 16:07:14.120 * horloge monotone : POSIX clock_gettime
109:M 06 Dec 2023 16:07:14.123 * Mode d'exécution=standalone, port=6379.
109:M 06 Dec 2023 16:07:14.123 # ATTENTION : Le paramètre TCP backlog de 511 ne peut pas être appliqué car /proc/sys/net/core/somaxconn est défini sur la valeur inférieure de 128.
109:M 06 Dec 2023 16:07:14.123 # Serveur initialisé
109:M 06 Dec 2023 16:07:14.124 * Chargement de RDB produit par la version 7.0.7
109:M 06 Dec 2023 16:07:14.125 * Âge du RDB 17 secondes
109:M 06 Dec 2023 16:07:14.125 * Utilisation mémoire RDB lors de la création 16.66 Mo
109:M 06 Dec 2023 16:07:14.212 * Chargement RDB terminé, clés chargées : 24735, clés expirées : 2.
109:M 06 Dec 2023 16:07:14.212 * DB chargée depuis le disque : 0.088 secondes
109:M 06 Dec 2023 16:07:14.212 * Prêt à accepter les connexions
I, [2023-12-06T16:07:24.102624 #1]  INFO -- :
I, [2023-12-06T16:07:24.103423 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-12-06T16:07:24.111028 #1]  INFO -- : thpoff is installed!

I, [2023-12-06T16:07:24.111792 #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, [2023-12-06T16:07:24.220317 #1]  INFO -- :
I, [2023-12-06T16:07:24.221265 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2023-12-06T16:07:24.335260 #1]  INFO -- :
I, [2023-12-06T16:07:24.336566 #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, [2023-12-06T16:07:24.447936 #1]  INFO -- :
I, [2023-12-06T16:07:24.448990 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-12-06T16:07:24.456613 #1]  INFO -- :
I, [2023-12-06T16:07:24.462541 #1]  INFO -- : Fichier > /etc/cron.d/anacron  chmod:   chown:
I, [2023-12-06T16:07:24.472173 #1]  INFO -- : Fichier > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2023-12-06T16:07:24.483793 #1]  INFO -- : Fichier > /etc/service/unicorn/run  chmod: +x  chown:
I, [2023-12-06T16:07:24.493548 #1]  INFO -- : Fichier > /etc/service/nginx/run  chmod: +x  chown:
I, [2023-12-06T16:07:24.503794 #1]  INFO -- : Fichier > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2023-12-06T16:07:24.511755 #1]  INFO -- : Fichier > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2023-12-06T16:07:24.512437 #1]  INFO -- : Remplacement de # postgres par sv start postgres || exit 1 dans /etc/service/unicorn/run
I, [2023-12-06T16:07:24.513223 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-06T16:07:24.517456 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
137:C 06 Dec 2023 16:07:24.534 # oO0OoO0OoO0Oo Redis démarre oO0OoO0OoO0Oo
137:C 06 Dec 2023 16:07:24.534 # Version Redis=7.0.7, bits=64, commit=00000000, modified=0, pid=137, vient de démarrer
137:C 06 Dec 2023 16:07:24.534 # Configuration chargée
137:M 06 Dec 2023 16:07:24.535 * horloge monotone : POSIX clock_gettime
137:M 06 Dec 2023 16:07:24.536 # Attention : Impossible de créer le socket d'écoute TCP du serveur *:6379 : bind : Adresse déjà utilisée
137:M 06 Dec 2023 16:07:24.536 # Échec de l'écoute sur le port 6379 (TCP), abandon.
Mise à jour des fichiers : 100% (33858/33858), terminé.
I, [2023-12-06T16:07:29.876110 #1]  INFO -- : HEAD est maintenant à 043b4a418 FIX: remplace l'utilisation de data-tooltip par <DTooltip /> (#24062)

I, [2023-12-06T16:07:29.876964 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-12-06T16:07:30.100602 #1]  INFO -- :
I, [2023-12-06T16:07:30.101495 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
Depuis https://github.com/discourse/discourse
 - [supprimé]             (aucun)     -> origin/0-flake-key
 - [supprimé]             (aucun)     -> origin/0-obscuring
 - [supprimé]             (aucun)     -> origin/0-router-lint
 - [supprimé]             (aucun)     -> origin/0-router-service
 - [supprimé]             (aucun)     -> origin/autoimport-cleanup
 - [supprimé]             (aucun)     -> origin/category-bullet-only
 - [supprimé]             (aucun)     -> origin/dependabot/bundler/syntax_tree-6.2.0
 - [supprimé]             (aucun)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.4.0
 - [supprimé]             (aucun)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.8.0
 - [supprimé]             (aucun)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.6.0
 - [supprimé]             (aucun)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.5.2
 - [supprimé]             (aucun)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.4.2
 - [supprimé]             (aucun)     -> origin/dev-upgrade-reject-reason-reviewable-modal
 - [supprimé]             (aucun)     -> origin/dev/ability-to-collect-stats-without-public-exposing
 - [supprimé]             (aucun)     -> origin/dev/minio-s3-system-specs
 - [supprimé]             (aucun)     -> origin/dev/re-enable-minio-specs
 - [supprimé]             (aucun)     -> origin/dev/switch-over-category-settings
 - [supprimé]             (aucun)     -> origin/dev/switch-over-more-category-settings
 - [supprimé]             (aucun)     -> origin/discovery-named-outlets
 - [supprimé]             (aucun)     -> origin/feature/theme-settings-migration
 - [supprimé]             (aucun)     -> origin/fix/account-for-empty-string-site-settings
 - [supprimé]             (aucun)     -> origin/footnote-plugin
 - [supprimé]             (aucun)     -> origin/metadata-update
 - [supprimé]             (aucun)     -> origin/modal-ux
 - [supprimé]             (aucun)     -> origin/neil-2
 - [supprimé]             (aucun)     -> origin/perf_cache_async_search
 - [supprimé]             (aucun)     -> origin/spoiler-plugin
 - [supprimé]             (aucun)     -> origin/support-search-customizationz
   043b4a418..22bb1c895  main                   -> origin/main
 * [nouvelle branche]          0-lint-suffix          -> origin/0-lint-suffix
 * [nouvelle branche]          0-rubocop              -> origin/0-rubocop
 * [nouvelle branche]          add-custom-emoji-sanitization-clean -> origin/add-custom-emoji-sanitization-clean
 * [nouvelle branche]          add-ds-store-to-gitignore -> origin/add-ds-store-to-gitignore
 + 64520a075...ff17131c9 add-new-chat-indicator-preference-only-mentions -> origin/add-new-chat-indicator-preference-only-mentions  (mise à jour forcée)
 * [nouvelle branche]          api-topic-title-decorator -> origin/api-topic-title-decorator
 * [nouvelle branche]          array-custom-field-fix -> origin/array-custom-field-fix
 * [nouvelle branche]          array-custom-field-order -> origin/array-custom-field-order
 * [nouvelle branche]          avatar-notifications   -> origin/avatar-notifications
 * [nouvelle branche]          boosted-searches       -> origin/boosted-searches
 * [nouvelle branche]          category_definition    -> origin/category_definition
 * [nouvelle branche]          chat-github-onebox     -> origin/chat-github-onebox
 * [nouvelle branche]          chat-reaction-emoji-alignment -> origin/chat-reaction-emoji-alignment
 * [nouvelle branche]          chat/direct-messages   -> origin/chat/direct-messages
 * [nouvelle branche]          custom-field-store-cleanup -> origin/custom-field-store-cleanup
 * [nouvelle branche]          delete-backups-based-on-time-window -> origin/delete-backups-based-on-time-window
 * [nouvelle branche]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.5.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.5.0
 * [nouvelle branche]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.9.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.9.0
 * [nouvelle branche]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.7.1 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.7.1
 * [nouvelle branche]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.6.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.6.0
 * [nouvelle branche]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.5.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.5.0
 * [nouvelle branche]          desktop-notification-handlers -> origin/desktop-notification-handlers
 * [nouvelle branche]          dev/add-a-reference-column-to-notifications -> origin/dev/add-a-reference-column-to-notifications
 + ee95e6359...346f9d1cd dev/add-new-chat-metrics -> origin/dev/add-new-chat-metrics  (mise à jour forcée)
 * [nouvelle branche]          dev/dry-up-user-status-serializers -> origin/dev/dry-up-user-status-serializers
 * [nouvelle branche]          dev/flaky-chat-details-collapser-spec -> origin/dev/flaky-chat-details-collapser-spec
 * [nouvelle branche]          dev/no-need-to-include-user-status-twice -> origin/dev/no-need-to-include-user-status-twice
 * [nouvelle branche]          dev/rethink-mass-mentions -> origin/dev/rethink-mass-mentions
 * [nouvelle branche]          dev/rethink-mass-mentions-polymorphic -> origin/dev/rethink-mass-mentions-polymorphic
 * [nouvelle branche]          dev/revert-guardian-devex -> origin/dev/revert-guardian-devex
 * [nouvelle branche]          dev/use-system-user-id-const -> origin/dev/use-system-user-id-const
 + 54940ca5c...1f44361c2 dev_paginate_categories_json -> origin/dev_paginate_categories_json  (mise à jour forcée)
 * [nouvelle branche]          dev_watched_words      -> origin/dev_watched_words
 + 46fe4511f...a9d0e7069 ember-4                -> origin/ember-4  (mise à jour forcée)
 * [nouvelle branche]          ember-5-plugins        -> origin/ember-5-plugins
 * [nouvelle branche]          extract_stripper       -> origin/extract_stripper
 * [nouvelle branche]          feature/add-copy-share-link-post-functionality -> origin/feature/add-copy-share-link-post-functionality
   9a6c6fd5b..8780daeee  feature/bookmark-menu-and-modal-redesign -> origin/feature/bookmark-menu-and-modal-redesign
 * [nouvelle branche]          feature/migrations-schema-generator -> origin/feature/migrations-schema-generator
 * [nouvelle branche]          feature_watched_words_validation -> origin/feature_watched_words_validation
 * [nouvelle branche]          file-size-restriction  -> origin/file-size-restriction
   43df37774..4393dd37e  filtered-events        -> origin/filtered-events
 * [nouvelle branche]          fix-keyboard-shortcuts-modal-double-scrollbar -> origin/fix-keyboard-shortcuts-modal-double-scrollbar
 * [nouvelle branche]          fix/count-mass-mentions-correctly -> origin/fix/count-mass-mentions-correctly
 * [nouvelle branche]          fix_category_select_kits -> origin/fix_category_select_kits
 * [nouvelle branche]          full-page              -> origin/full-page
   ce7fb6906..a6227532d  generic-import-latest  -> origin/generic-import-latest
 * [nouvelle branche]          generic-import-latest-snowflake -> origin/generic-import-latest-snowflake
 * [nouvelle branche]          generic-import-update  -> origin/generic-import-update
 * [nouvelle branche]          image-assets           -> origin/image-assets
 * [nouvelle branche]          independent-theme-compiler -> origin/independent-theme-compiler
 * [nouvelle branche]          input-text-field-component -> origin/input-text-field-component
 * [nouvelle branche]          issue/fix-guardian-init-basic-user -> origin/issue/fix-guardian-init-basic-user
 * [nouvelle branche]          keyword-site-setting   -> origin/keyword-site-setting
 + bdcc24f96...92e545292 list-wrapper           -> origin/list-wrapper  (mise à jour forcée)
   e3636078c..5def32699  mock-chat-index-redesign -> origin/mock-chat-index-redesign
 * [nouvelle branche]          move_inflector         -> origin/move_inflector
 * [nouvelle branche]          oklab                  -> origin/oklab
 * [nouvelle branche]          poc/auto-after-before-plugin-outlets -> origin/poc/auto-after-before-plugin-outlets
 * [nouvelle branche]          poc/insert-before-after-wrapping-outlet -> origin/poc/insert-before-after-wrapping-outlet
 * [nouvelle branche]          pretty-text-please     -> origin/pretty-text-please
 * [nouvelle branche]          revert-maxmind         -> origin/revert-maxmind
   ef3f41543..223626d7a  stable                 -> origin/stable
 * [nouvelle branche]          support-load-more-btn  -> origin/support-load-more-btn
 * [nouvelle branche]          test-issue-temporary   -> origin/test-issue-temporary
   043b4a418..efcb5bb3d  tests-passed           -> origin/tests-passed
 * [nouvelle branche]          transform-hooks        -> origin/transform-hooks
 * [nouvelle branche]          transform-post-fn-api  -> origin/transform-post-fn-api
 * [nouvelle branche]          tweaks-2-fr            -> origin/tweaks-2-fr
 * [nouvelle branche]          use-sassc-embedded     -> origin/use-sassc-embedded
 * [nouvelle branche]          username_cache         -> origin/username_cache
 * [nouvelle branche]          ux-add-sorting-params-to-outlet -> origin/ux-add-sorting-params-to-outlet
 t [mise à jour tag]          beta                   -> beta
 t [mise à jour tag]          latest-release         -> latest-release
 * [nouveau tag]             v3.1.3                 -> v3.1.3
 * [nouveau tag]             v3.2.0.beta3           -> v3.2.0.beta3
I, [2023-12-06T16:07:31.685641 #1]  INFO -- :
I, [2023-12-06T16:07:31.686339 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Basculé vers une nouvelle branche 'tests-passed'
I, [2023-12-06T16:07:35.620323 #1]  INFO -- : La branche 'tests-passed' est configurée pour suivre la branche distante 'tests-passed' depuis 'origin'.

I, [2023-12-06T16:07:35.620991 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2023-12-06T16:07:35.636731 #1]  INFO -- :
I, [2023-12-06T16:07:35.637527 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-12-06T16:07:35.643552 #1]  INFO -- :
I, [2023-12-06T16:07:35.644234 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-12-06T16:07:35.650138 #1]  INFO -- :
I, [2023-12-06T16:07:35.650972 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-12-06T16:07:35.656320 #1]  INFO -- :
I, [2023-12-06T16:07:35.657036 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-12-06T16:07:35.662104 #1]  INFO -- :
I, [2023-12-06T16:07:35.662758 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-12-06T16:07:35.669054 #1]  INFO -- :
I, [2023-12-06T16:07:35.669975 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-12-06T16:07:35.676933 #1]  INFO -- :
I, [2023-12-06T16:07:35.677771 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.lo
g"
I, [2023-12-06T16:07:35.687445 #1]  INFO -- :
I, [2023-12-06T16:07:35.688203 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.lo
g /var/www/discourse/log"
I, [2023-12-06T16:07:35.697439 #1]  INFO -- :
I, [2023-12-06T16:07:35.698219 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-12-06T16:07:35.705472 #1]  INFO -- :
I, [2023-12-06T16:07:35.706224 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-12-06T16:07:35.714941 #1]  INFO -- :
I, [2023-12-06T16:07:35.715579 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-12-06T16:07:35.722744 #1]  INFO -- :
I, [2023-12-06T16:07:35.723466 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-12-06T16:07:35.730272 #1]  INFO -- :
I, [2023-12-06T16:07:35.730904 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-12-06T16:07:36.244295 #1]  INFO -- :
I, [2023-12-06T16:07:36.245006 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-12-06T16:07:36.248521 #1]  INFO -- :
I, [2023-12-06T16:07:36.249238 #1]  INFO -- : Remplacement de # redis par sv start redis || exit 1 dans /etc/service/unicorn/run
I, [2023-12-06T16:07:36.249835 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonage dans 'docker_manager'...
I, [2023-12-06T16:07:37.086735 #1]  INFO -- :
I, [2023-12-06T16:07:37.087632 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-12-06T16:07:37.095997 #1]  INFO -- :
I, [2023-12-06T16:07:37.097169 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-12-06T16:07:37.102877 #1]  INFO -- :
I, [2023-12-06T16:07:37.103777 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-12-06T16:07:37.109509 #1]  INFO -- :
I, [2023-12-06T16:07:37.110962 #1]  INFO -- : Remplacement de pid /run/nginx.pid; par daemon off; dans /etc/nginx/nginx.conf
I, [2023-12-06T16:07:37.111761 #1]  INFO -- : Remplacement de (?m-ix:upstream[^\}]+\}) par upstream discourse { server 127.0.0.1:3000; } dans /etc/nginx/conf.d/discourse.conf
I, [2023-12-06T16:07:37.112365 #1]  INFO -- : Remplacement de (?-mix:server_name.+$) par server_name _ ; dans /etc/nginx/conf.d/discourse.conf
I, [2023-12-06T16:07:37.112934 #1]  INFO -- : Remplacement de (?-mix:client_max_body_size.+$) par client_max_body_size $upload_size ; dans /etc/nginx/conf.d/discourse.conf
I, [2023-12-06T16:07:37.113518 #1]  INFO -- : Remplacement de (?-mix:worker_connections.+$) par worker_connections $nginx_worker_connections ; dans /etc/nginx/nginx.conf
I, [2023-12-06T16:07:37.113925 #1]  INFO -- : > echo "done configuring web"
I, [2023-12-06T16:07:37.116639 #1]  INFO -- : done configuring web

I, [2023-12-06T16:07:37.117373 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-12-06T16:07:37.381140 #1]  INFO -- :
I, [2023-12-06T16:07:37.381751 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-12-06T16:07:42.260626 #1]  INFO -- :
I, [2023-12-06T16:07:42.266374 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2023-12-06T16:07:42.275364 #1]  INFO -- :
I, [2023-12-06T16:07:42.276177 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning " > @glint/environment-ember-loose@1.1.0" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > @glint/environment-ember-template-imports@1.1.0" has unmet peer dependency "ember-template-imports@^3.0.0".
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/home/discourse/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/no
de_modules/wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping.
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency "xss@*".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse > @ember/legacy-built-in-components@0.5.0" has incorrect peer dependency "ember-source@>= 4.8".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-91e584d3-820f-4c50-a600-62c805fec825 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2023-12-06T16:10:11.898082 #1]  INFO -- : yarn install v1.22.19
[1/5] Validation de package.json...
[2/5] Résolution des packages...
[3/5] Téléchargement des packages...
[4/5] Liaison des dépendances...
[5/5] Construction des packages neufs...
$ yarn --cwd app/assets/javascripts $(node -e 'const argv = JSON.parse(process.env.npm_config_argv).original; const passthrough = [`--frozen-lockfile`, `-s`].filter(arg => argv.includes(arg)
); console.log(passthrough.join(` `));')
yarn install v1.22.19
[1/4] Résolution des packages...
[2/4] Téléchargement des packages...
[3/4] Liaison des dépendances...
[4/4] Construction des packages neufs...
$ ./run-patch-package
patch-package 8.0.0
Application des correctifs...
babel-plugin-debug-macros@0.3.4 ✔
content-tag@1.1.2 ✔
ember-cli@5.0.0 ✔
ember-this-fallback@0.4.0 (1 deprecation-name) ✔
ember-this-fallback@0.4.0 (2 themes) ✔
virtual-dom@2.1.1 ✔
Terminé en 72.34s.
Terminé en 135.83s.
yarn cache v1.22.19
success Cache vidé.
Terminé en 13.11s.

I, [2023-12-06T16:10:11.904393 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-12-06T16:10:12.394395 #1]  INFO -- :
I, [2023-12-06T16:10:12.395124 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-12-06T16:10:12.656177 #1]  INFO -- : Vous remplacez la valeur locale actuelle de without, qui est actuellement "test:development"

I, [2023-12-06T16:10:12.656984 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
Gem::Ext::BuildError: ERREUR: Échec de la construction de l'extension native.

dossier actuel :
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext
/usr/local/bin/ruby extconf.rb
  -- tar zxvfo msgpack-1.1.0.tar.gz
  -- env CFLAGS=nil LDFLAGS=nil CC=nil
-- ./configure --disable-dependency-tracking --disable-shared --with-pic
--prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/lib
*** extconf.rb a échoué ***
Impossible de créer le Makefile pour une raison quelconque, probablement manque de
bibliothèques et/ou en-têtes nécessaires. Vérifiez le fichier mkmf.log pour plus de détails. Vous pourriez
avoir besoin d'options de configuration.

Options de configuration fournies :
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
extconf.rb:6:in `sys': ./configure --disable-dependency-tracking
--disable-shared --with-pic
--prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext/dst/lib
a échoué, veuillez signaler à https://github.com/tmm1/rbtrace/issues (RuntimeError)
        from extconf.rb:42:in `block (2 levels) in <main>'
        from extconf.rb:34:in `chdir'
        from extconf.rb:34:in `block in <main>'
        from extconf.rb:30:in `chdir'
        from extconf.rb:30:in `<main>'

Pour voir pourquoi cette extension a échoué à la compilation, veuillez vérifier le fichier mkmf.log qui se trouve ici :

/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.0/mkmf.log

extconf a échoué, code de sortie 1

Les fichiers Gem resteront installés dans
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0 pour inspection.
Résultats enregistrés dans
/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.0/gem_make.out

  /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:120:in `run'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:28:in
`build'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:188:in
`build_extension'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:222:in `block in
build_extensions'
  /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:219:in `each'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:219:in
`build_extensions'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:844:in
`build_extensions'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/source/rubygems.rb:198:in
`install'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/gem_installer.rb:54:in
`install'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/parallel_installer.rb:156:in
`do_install'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/installer/parallel_installer.rb:147:in
`block in worker_pool'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:62:in
`apply_func'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:57:in
`block in process_queue'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:54:in
`loop'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:54:in
`process_queue'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.4.13/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'

Une erreur est survenue lors de l'installation de rbtrace (0.5.0), et Bundler ne peut pas continuer.

Dans Gemfile :
  rbtrace
I, [2023-12-06T16:10:45.706190 #1]  INFO -- : Récupération des métadonnées du gem depuis https://rubygems.org/.........
Récupération de rake 13.1.0
Installation de rake 13.1.0
Utilisation de concurrent-ruby 1.2.2
Récupération de racc 1.7.3
Utilisation de builder 3.2.4
Utilisation de minitest 5.20.0
Utilisation de erubi 1.12.0
Utilisation de mini_mime 1.1.5
Récupération de date 3.3.4
Utilisation de crass 1.0.6
Utilisation de rack 2.2.8
Récupération de public_suffix 5.0.4
Récupération de timeout 0.4.1
Installation de timeout 0.4.1
Installation de date 3.3.4 avec extensions natives
Installation de racc 1.7.3 avec extensions natives
Installation de public_suffix 5.0.4
Récupération de aws-eventstream 1.3.0
Utilisation de aws-partitions 1.583.0
Utilisation de jmespath 1.6.2
Récupération de base64 0.2.0
Installation de aws-eventstream 1.3.0
Utilisation de msgpack 1.7.2
Utilisation de bundler 2.4.13
Installation de base64 0.2.0
Utilisation de byebug 11.1.3
Utilisation de cbor 0.5.9.6
Récupération de cgi 0.4.1
Utilisation de chunky_png 1.4.0
Utilisation de coderay 1.1.3
Utilisation de colored2 4.0.0
Utilisation de connection_pool 2.4.1
Utilisation de openssl 3.2.0
Utilisation de cppjieba_rb 0.4.2
Récupération de google-protobuf 3.25.1 (x86_64-linux)
Installation de cgi 0.4.1 avec extensions natives
Installation de google-protobuf 3.25.1 (x86_64-linux)
Utilisation de diffy 3.4.2
Utilisation de digest 3.1.1
Utilisation de discourse-fonts 0.0.9
Utilisation de email_reply_trimmer 0.1.13
Récupération de excon 0.105.0
Installation de excon 0.105.0
Utilisation de execjs 2.9.1
Utilisation de exifr 1.4.0
Utilisation de faraday-net_http 3.0.2
Utilisation de ruby2_keywords 0.0.5
Utilisation de fast_blank 1.0.1
Utilisation de fast_xs 0.8.0
Utilisation de fastimage 2.2.7
Utilisation de ffi 1.16.3
Utilisation de fspath 3.1.2
Utilisation de gc_tracer 1.5.1
Utilisation de guess_html_encoding 0.0.11
Utilisation de hana 1.3.7
Utilisation de hashie 5.0.0
Utilisation de highline 2.1.0
Utilisation de htmlentities 4.3.4
Utilisation de http_accept_language 2.1.1
Utilisation de image_size 3.3.0
Utilisation de in_threads 1.6.0
Utilisation de progress 3.6.0
Récupération de json 2.7.1
Installation de json 2.7.1 avec extensions natives
Récupération de regexp_parser 2.8.3
Installation de regexp_parser 2.8.3
Récupération de unf_ext 0.0.9.1
Installation de unf_ext 0.0.9.1 avec extensions natives
Utilisation de jwt 2.7.1
Utilisation de kgio 2.11.4
Utilisation de libv8-node 18.16.0.0 (x86_64-linux)
Utilisation de method_source 1.0.0
Utilisation de thor 1.3.0
Utilisation de zeitwerk 2.6.12
Utilisation de logstash-event 1.2.02
Récupération de logster 2.13.1
Installation de logster 2.13.1
Utilisation de lru_redux 1.1.0
Utilisation de lz4-ruby 0.3.3
Utilisation de maxminddb 0.1.22
Utilisation de memory_profiler 1.0.1
Utilisation de redis 4.8.1
Utilisation de mini_sql 1.5.0
Utilisation de multi_json 1.15.0
Utilisation de multi_xml 0.6.0
Utilisation de mustache 1.1.1
Récupération de uri 0.13.0
Installation de uri 0.13.0
Récupération de nio4r 2.7.0
Installation de nio4r 2.7.0 avec extensions natives
Utilisation de version_gem 1.1.3
Utilisation de oj 3.16.1
Utilisation de optimist 3.1.0
Utilisation de pg 1.5.4
Utilisation de raindrops 0.20.1
Utilisation de rchardet 1.8.0
Utilisation de rexml 3.2.6
Utilisation de rinku 2.0.6
Utilisation de rotp 6.3.0
Utilisation de rqrcode_core 1.2.0
Utilisation de rubyzip 2.3.2
Utilisation de sshkey 3.0.0
Utilisation de stackprof 0.2.25
Utilisation de i18n 1.14.1
Utilisation de tzinfo 2.0.6
Utilisation de rack-test 2.1.0
Utilisation de request_store 1.5.1
Utilisation de message_bus 4.3.8
Utilisation de rack-mini-profiler 3.1.1
Utilisation de rack-protection 3.1.0
Utilisation de sprockets 3.7.2 depuis https://github.com/rails/sprockets (à 3.x@f4d3dae)
Récupération de net-protocol 0.2.2
Installation de net-protocol 0.2.2
Utilisation de addressable 2.8.5
Utilisation de aws-sigv4 1.5.0
Récupération de bootsnap 1.17.0
Installation de bootsnap 1.17.0 avec extensions natives
Utilisation de openssl-signature_algorithm 1.3.0
Récupération de sass-embedded 1.66.1 (x86_64-linux-gnu)
Installation de sass-embedded 1.66.1 (x86_64-linux-gnu)
Utilisation de uglifier 4.2.0
Récupération de faraday 2.7.12
Installation de faraday 2.7.12
Utilisation de mini_suffix 0.3.3
Utilisation de omniauth 1.9.2
Utilisation de image_optim 0.31.3
Récupération de nokogiri 1.15.5 (x86_64-linux)
Installation de nokogiri 1.15.5 (x86_64-linux)
Récupération de web-push 3.0.1
Installation de web-push 3.0.1
Utilisation de mini_racer 0.8.0
Utilisation de pry 0.14.2
Utilisation de logstash-logger 0.26.1
Utilisation de sidekiq 6.5.12
Utilisation de redis-namespace 1.11.0
Récupération de net-http 0.4.0
Utilisation de unf 0.1.4
Utilisation de oauth-tty 1.0.5
Utilisation de snaky_hash 2.0.1
Récupération de rbtrace 0.5.0
Installation de rbtrace 0.5.0 avec extensions natives
Installation de net-http 0.4.0
Utilisation de unicorn 6.1.0
Utilisation de rss 0.3.0
Utilisation de rqrcode 2.2.0
Utilisation de activesupport 7.0.7
Utilisation de tzinfo-data 1.2023.3
Utilisation de net-pop 0.1.2
Utilisation de net-smtp 0.4.0
Utilisation de css_parser 1.16.0
Utilisation de aws-sdk-core 3.130.2
Utilisation de cose 1.3.0
Récupération de dartsass-ruby 3.0.2
Installation de dartsass-ruby 3.0.2
Utilisation de faraday-retry 2.2.0
Utilisation de oauth2 1.4.11
Utilisation de rtlcss 0.2.1
Utilisation de pry-byebug 3.10.1
Utilisation de pry-rails 0.3.9
Récupération de loofah 2.22.0
Installation de loofah 2.22.0
Utilisation de ruby-readability 0.7.0
Utilisation de sanitize 6.1.0
Utilisation de simpleidn 0.2.1
Utilisation de mini_scheduler 0.16.0
Utilisation de oauth 1.1.0
Utilisation de rails-dom-testing 2.2.0
Utilisation de globalid 1.2.1
Utilisation de activemodel 7.0.7
Utilisation de aws-sdk-kms 1.56.0
Utilisation de aws-sdk-sns 1.53.0
Utilisation de omniauth-oauth2 1.7.3
Utilisation de rails-html-sanitizer 1.6.0
Récupération de json_schemer 2.1.1
Installation de json_schemer 2.1.1
Utilisation de omniauth-oauth 1.2.0
Utilisation de activejob 7.0.7
Utilisation de active_model_serializers 0.8.4
Utilisation de activerecord 7.0.7
Utilisation de actionview 7.0.7
Utilisation de aws-sdk-s3 1.114.0
Utilisation de omniauth-facebook 9.0.0
Utilisation de omniauth-github 1.4.0
Utilisation de omniauth-google-oauth2 0.8.2
Utilisation de omniauth-twitter 1.4.0
Utilisation de discourse-seed-fu 2.3.12
Utilisation de actionpack 7.0.7
Utilisation de actionview_precompiler 0.3.0
Utilisation de railties 7.0.7
Utilisation de sprockets-rails 3.4.2
Utilisation de lograge 0.14.0
Utilisation de rails_failover 2.0.1
Utilisation de rails_multisite 5.0.0
Utilisation de puma 6.4.0
Récupération de net-imap 0.4.7
Installation de net-imap 0.4.7
Utilisation de mail 2.8.1
Utilisation de actionmailer 7.0.7

I, [2023-12-06T16:10:45.708604 #1]  INFO -- : Terminaison des processus asynchrones
I, [2023-12-06T16:10:45.708734 #1]  INFO -- : Envoi de INT à 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 : 40
I, [2023-12-06T16:10:45.709069 #1]  INFO -- : Envoi de TERM à exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid : 109
2023-12-06 16:10:45.709 UTC [40] LOG:  demande d'arrêt rapide reçue
109:signal-handler (1701879045) SIGTERM reçu, planification de l'arrêt...
2023-12-06 16:10:45.713 UTC [40] LOG:  annulation de toute transaction active
2023-12-06 16:10:45.721 UTC [40] LOG:  travailleur d'arrière-plan "logical replication launcher" (PID 49) sorti avec le code de sortie 1
2023-12-06 16:10:45.722 UTC [44] LOG:  arrêt en cours
2023-12-06 16:10:45.746 UTC [40] LOG:  le système de base de données est arrêté
109:M 06 Dec 2023 16:10:45.749 # L'utilisateur a demandé l'arrêt...
109:M 06 Dec 2023 16:10:45.750 * Sauvegarde de la dernière instantanée RDB avant de quitter.
109:M 06 Dec 2023 16:10:45.855 * BD sauvegardée sur le disque
109:M 06 Dec 2023 16:10:45.856 # Redis est maintenant prêt à quitter, au revoir...


ÉCHEC
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' a échoué avec le retour #<Process::Status: pid 507 exit 5>
Lieu de l'échec : /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec a échoué avec les paramètres {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \"develo
pment test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}
L'initialisation a échoué avec le code de sortie 5
** ÉCHEC DE L'INITIALISATION ** veuillez faire défiler vers le haut et rechercher des messages d'erreur antérieurs, il pourrait y en avoir plus d'un.
./discourse-doctor peut aider à diagnostiquer le problème.
a3071aa235f86264227596c04c18b830cff475e4fa809d5a88ead626ab2cdf28

Pourriez-vous publier ce fichier journal ?

Je pense que ce fichier se trouve à l’intérieur du conteneur qui échoue à la compilation, donc ce sera un peu difficile à attraper, je pense. Je crois avoir vu quelqu’un d’autre avec une erreur similaire qui a disparu lorsqu’il a mis à niveau Docker (il était sur un système d’exploitation plus récent), donc je vais juste penser que c’est ça le problème.

Merci

Possiblement. Mais sur mon système, il y a une sélection de ce genre - cela pourrait valoir la peine d’y jeter un coup d’œil, au cas où il ne s’agirait pas seulement de fossiles.

ls -ltr /var/lib/docker/overlay2/*/*/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace*/mkmf.log

Eh bien. Je suis surpris.

Regardez !

root@www:~# find /var/lib/docker -name mkmf.log|grep rbtrac|xargs ls -tl
-rw-r--r-- 1 1000 1000 35035 Oct 23 19:45 /var/lib/docker/aufs/diff/53a65982150d745a518e8e8b3d1c4e5e21df4aeaf387d952d9018f688e676391/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.4.14/mkmf.log
-rw-r--r-- 1 1000 1000 35329 Apr  9  2023 /var/lib/docker/aufs/diff/f324a4557c610412bd944c93adb2b1cb93a3e368bbd10b4f3a7b0160d320be6c/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.4.14/mkmf.log
-rw-r--r-- 1 1000 1000 35329 Apr  9  2023 /var/lib/docker/aufs/mnt/de948aa2097c3527c79c437dbfae65d2c71bdde2843896306868d409ae4b0937/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.4.14/mkmf.log
-rw-r--r-- 1 1000 1000 35147 Dec 21  2022 /var/lib/docker/aufs/diff/484330416e5a8c7cda4005d144c20205d5410d62dd23a599b4e9b2d408510c13/var/www/discourse/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/rbtrace-0.4.14/mkmf.log

Il semble que quelque chose comme ceci soit à blâmer :

have_func: checking for rb_gc_add_event_hook() in ruby.h,node.h... -------------------- no

LD_LIBRARY_PATH=.:/usr/local/lib "gcc -o conftest -I/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.4.14/ext/dst/include -I/usr/local/include/ruby-3.2.0/x86_64-linux -I/usr/local/include/ruby-3.2.0/ruby/backward -I/usr/local/include/ruby-3.2.0 -I.    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef  -fPIC conftest.c  -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -lmsgpackc_ext  -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lmsgpackc_ext  -lm -lpthread  -lc"
conftest.c:4:10: fatal error: node.h: No such file or directory

et aussi

conftest.c: In function ‘t’:
conftest.c:16:57: error: ‘rb_postponed_job_register_one’ undeclared (first use in this function)
   16 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_postponed_job_register_one; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cela n’a pas de sens que cela puisse être dû à un ancien docker. Mais j’ai toujours peur de casser ce site sans raison.

ici est un lien qui expire dans 12 heures.

Hmm, il se pourrait que ce soit un leurre, car je vois les mêmes échecs et pourtant, apparemment, rien n’est cassé dans mon cas. Peut-être que ces journaux sont une sorte de fossile dans l’image ?

C’est possible. Quoi qu’il en soit, personne d’autre n’a ce problème, donc je pense que je ne vais pas m’en inquiéter et je vais juste dire à cette personne que s’ils veulent mettre à niveau discourse, ils devront mettre à jour la vm et l’os.

Merci pour votre aide.

J’ai juste essayé une reconstruction sur une installation Docker standard (avec Docker de Debian Bullseye, paquet apt docker.io) et elle a réussi, donc cela établit au moins que les installations auto-hébergées ne sont pas cassées, c’est-à-dire que launcher rebuild ne résulte pas de manière reproductible en installations échouées en raison d’un problème de dépendance rbtrace.

Je doute que la version de Docker soit un facteur ici ; rbtrace échoue à la compilation à l’intérieur du conteneur, et c’est probablement le résultat de dépendances manquantes ou obsolètes également à l’intérieur du conteneur.

Y a-t-il une chance que votre clone de discourse_docker ait échoué à faire git pull avant de commencer la reconstruction, et soit donc sur un ancien commit ? Cela ne coûte rien de faire un git pull manuel et de s’assurer qu’il est sur le dernier commit de la branche main.

C’est une possibilité. Le lanceur récent fait un git pull (et cela fait longtemps qu’il a commencé à faire un git pull). Je vais peut-être réessayer une fois.

C’est certainement un cas limite d’une sorte.

Cela pourrait aider quelqu’un car cela a fonctionné pour nous sans mettre à niveau Ubuntu 16.

  1. Exécutez la commande sudo apt update && sudo apt upgrade
  2. Exécutez ensuite le lanceur Discourse ./launcher rebuild app

L’erreur a disparu pour nous.

J’ai essayé une solution d’un autre forum. Dans le script launcher, j’ai remplacé :

image="discourse/base:2.0.20231218-0429"

par :

image="discourse/base:2.0.20231230-0022"

Cela récupère une image plus récente qui contient rbtrace-0.5.1, ce qui la fait fonctionner.

Je l’ai trouvé ici : Discourse Build Error: "An error occurred while installing rbtrace (0.5.1), and Bundler cannot continue." - #50 by Neo - Discourse System Administration - Unix Linux Community.

Je fonctionne sur Oracle Linux 7.7 - vieux, mais comparable à Ubuntu 18.04, je suppose.

Il serait vraiment intéressant de comprendre pourquoi la mise à niveau du système d’exploitation fonctionnerait également. J’ai toujours pensé que les conteneurs Docker étaient isolés du système d’exploitation, surtout dans ce cas, en ce qui concerne les gems Ruby. (Je ne suis ni un expert Docker ni Ruby.)