Échec de la mise à jour d'une ancienne installation

Je viens d’essayer de mettre à jour une installation plus ancienne (2.x) et ça échoue systématiquement.

Voici l’erreur que j’obtiens après avoir exécuté ./launcher rebuild app depuis /var/discourse

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' a échoué avec le code de retour #<Process::Status: pid 342 exit 5>
Emplacement de l'échec : /pups/lib/pups/exec_command.rb:112:in `spawn'
L'exécution a échoué avec les paramètres {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
a45e890ca3c9eacab4eb37560638252189690d4fa1a6fea78e6b33cf6f192236

Je ne suis pas sûr de ce qui se passe – à partir de la sortie de la console avant l’échec, je ne peux rien lire d’utile. J’ai seulement remarqué que Discourse pups est en état de HEAD détaché lors du checkout, mais je ne suis pas sûr que ce soit un problème…

Depuis https://github.com/discourse/pups
   17f04ec..e0ff889  master     -> origin/master
 * [nouvelle branche]      main       -> origin/main
 * [nouvelle étiquette]         v1.1.1     -> v1.1.1
 * [nouvelle étiquette]         v1.1.0     -> v1.1.0
Mise à jour de 17f04ec..e0ff889
Fast-forward
 .github/workflows/ci.yml     |  29 ++++++
 .github/workflows/lint.yml   |  27 +++++
 .rubocop.yml                 |   3 +
 Gemfile                      |   2 +
 Guardfile                    |   4 +-
 README.md                    |  21 ++++
 Rakefile                     |  14 +--
 bin/pups                     |   8 +-
 lib/pups.rb                  |  32 ++++--
 lib/pups/cli.rb              |  92 ++++++++++-------
 lib/pups/command.rb          |  25 +++--
 lib/pups/config.rb           | 240 +++++++++++++++++++++++--------------------
 lib/pups/docker.rb           |  69 +++++++++++++
 lib/pups/exec_command.rb     | 182 ++++++++++++++++----------------
 lib/pups/file_command.rb     |  60 +++++------
 lib/pups/merge_command.rb    |  94 ++++++++---------
 lib/pups/replace_command.rb  |  70 +++++++------
 lib/pups/runit.rb            |  47 +++++----
 lib/pups/version.rb          |   4 +-
 pups.gemspec                 |  37 ++++---
 test/cli_test.rb             | 102 +++++++++++++++---
 test/config_test.rb          | 215 ++++++++++++++++++++++++++++----------
 test/docker_test.rb          | 157 ++++++++++++++++++++++++++++
 test/exec_command_test.rb    |  62 ++++++-----
 test/file_command_test.rb    |  17 ++-
 test/merge_command_test.rb   |  64 ++++++------
 test/replace_command_test.rb |  86 ++++++++--------
 test/test_helper.rb          |   2 +
 28 fichiers modifiés, 1158 insertions(+), 607 suppressions(-)
 création du mode 100644 .github/workflows/ci.yml
 création du mode 100644 .github/workflows/lint.yml
 création du mode 100644 .rubocop.yml
 création du mode 100644 lib/pups/docker.rb
 création du mode 100644 test/docker_test.rb
Remarque : extraction de 'v1.0.3'.

Vous êtes en état de « HEAD détaché ». Vous pouvez vous promener, effectuer des modifications expérimentales et les valider, et vous pouvez annuler toutes les validations que vous effectuez dans cet état sans impacter les branches en effectuant une autre extraction.

Si vous souhaitez créer une nouvelle branche pour conserver les validations que vous créez, vous pouvez le faire (maintenant ou plus tard) en utilisant -b avec la commande checkout à nouveau. Exemple :

  git checkout -b <nom-de-la-nouvelle-branche>

HEAD is now at d1db030 cut a new version
I, [2023-09-28T09:39:36.603615 #1]  INFO -- : Loading --stdin
I, [2023-09-28T09:39:36.609265 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-09-28T09:39:36.628742 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2023-09-28T09:39:36.628889 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-09-28T09:39:36.630616 #1]  INFO -- :
I, [2023-09-28T09:39:36.630802 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-09-28T09:39:36.632251 #1]  INFO -- :
I, [2023-09-28T09:39:36.632456 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-09-28T09:39:36.633785 #1]  INFO -- :
I, [2023-09-28T09:39:36.633939 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-09-28T09:39:36.635357 #1]  INFO -- :
I, [2023-09-28T09:39:36.635532 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-09-28T09:39:36.636876 #1]  INFO -- :
I, [2023-09-28T09:39:36.637062 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/09/28 09:39:36 socat[34] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-09-28T09:39:36.640079 #1]  INFO -- :
I, [2023-09-28T09:39:36.640264 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-09-28T09:39:36.642015 #1]  INFO -- :
I, [2023-09-28T09:39:36.642188 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-09-28T09:39:36.644064 #1]  INFO -- :
I, [2023-09-28T09:39:36.644302 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-09-28T09:39:36.645856 #1]  INFO -- :
I, [2023-09-28T09:39:36.646027 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-09-28T09:39:36.647377 #1]  INFO -- :
I, [2023-09-28T09:39:36.650402 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2023-09-28T09:39:36.653295 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2023-09-28T09:39:36.656244 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2023-09-28T09:39:36.659105 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2023-09-28T09:39:36.659342 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-09-28T09:39:36.682629 #1]  INFO -- :
I, [2023-09-28T09:39:36.682821 #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-09-28T09:39:36.684085 #1]  INFO -- :
I, [2023-09-28T09:39:36.684120 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-09-28T09:39:36.690845 #1]  INFO -- :
I, [2023-09-28T09:39:36.690968 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-09-28T09:39:36.692360 #1]  INFO -- :
I, [2023-09-28T09:39:36.692515 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-09-28T09:39:36.695320 #1]  INFO -- :
I, [2023-09-28T09:39:36.695500 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-09-28T09:39:36.697030 #1]  INFO -- :
I, [2023-09-28T09:39:36.697251 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.697575 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.697811 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.698155 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.698424 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.698628 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.698810 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-09-28T09:39:36.700655 #1]  INFO -- :
I, [2023-09-28T09:39:36.700884 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.701154 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.701414 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2023-09-28T09:39:36.701867 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-09-28T09:39:36.702107 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-09-28T09:39:36.702353 #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-09-28T09:39:36.703337 #1]  INFO -- : > sleep 5
2023-09-28 09:39:36.721 UTC [57] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-09-28 09:39:36.721 UTC [57] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-09-28 09:39:36.721 UTC [57] LOG:  listening on IPv6 address "::", port 5432
2023-09-28 09:39:36.721 UTC [57] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-09-28 09:39:36.724 UTC [60] LOG:  database system was shut down at 2023-09-28 09:37:57 UTC
2023-09-28 09:39:36.727 UTC [57] LOG:  database system is ready to accept connections
I, [2023-09-28T09:39:41.705337 #1]  INFO -- :
I, [2023-09-28T09:39:41.705995 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-09-28 09:39:41.746 UTC [70] postgres@postgres ERROR:  database "discourse" already exists
2023-09-28 09:39:41.746 UTC [70] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2023-09-28T09:39:41.747818 #1]  INFO -- :
I, [2023-09-28T09:39:41.748083 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-09-28 09:39:41.793 UTC [81] postgres@discourse ERROR:  role "discourse" already exists
2023-09-28 09:39:41.793 UTC [81] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2023-09-28T09:39:41.794615 #1]  INFO -- :
I, [2023-09-28T09:39:41.795029 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-09-28T09:39:41.837257 #1]  INFO -- : GRANT

I, [2023-09-28T09:39:41.837575 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-09-28T09:39:41.878462 #1]  INFO -- : ALTER SCHEMA

I, [2023-09-28T09:39:41.878752 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-09-28T09:39:41.923950 #1]  INFO -- : CREATE EXTENSION

I, [2023-09-28T09:39:41.924086 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-09-28T09:39:41.963552 #1]  INFO -- : CREATE EXTENSION

I, [2023-09-28T09:39:41.963739 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-09-28T09:39:42.002085 #1]  INFO -- : CREATE EXTENSION

I, [2023-09-28T09:39:42.002354 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-09-28T09:39:42.039564 #1]  INFO -- : CREATE EXTENSION

I, [2023-09-28T09:39:42.039758 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-09-28T09:39:42.040909 #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-09-28T09:39:42.082922 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-09-28T09:39:42.084748 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2023-09-28T09:39:42.084893 #1]  INFO -- : > echo postgres installed!
I, [2023-09-28T09:39:42.086225 #1]  INFO -- : postgres installed!

I, [2023-09-28T09:39:42.089278 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2023-09-28T09:39:42.092286 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2023-09-28T09:39:42.095204 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2023-09-28T09:39:42.095426 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.095817 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.096154 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-09-28T09:39:42.097847 #1]  INFO -- :
I, [2023-09-28T09:39:42.098101 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.098405 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.098704 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.099031 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.099319 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-09-28T09:39:42.099608 #1]  INFO -- : > echo redis installed
I, [2023-09-28T09:39:42.100924 #1]  INFO -- : redis installed

I, [2023-09-28T09:39:42.101105 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-09-28T09:39:42.103392 #1]  INFO -- : logfile ""

I, [2023-09-28T09:39:42.103613 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-09-28T09:39:42.104770 #1]  INFO -- : > sleep 10
174:C 28 Sep 2023 09:39:42.108 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
174:C 28 Sep 2023 09:39:42.108 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=174, just started
174:C 28 Sep 2023 09:39:42.108 # Configuration loaded
174:M 28 Sep 2023 09:39:42.108 * monotonic clock: POSIX clock_gettime
174:M 28 Sep 2023 09:39:42.108 * Running mode=standalone, port=6379.
174:M 28 Sep 2023 09:39:42.109 # Server initialized
174:M 28 Sep 2023 09:39:42.109 * Loading RDB produced by version 6.2.3
174:M 28 Sep 2023 09:39:42.109 * RDB age 105 seconds
174:M 28 Sep 2023 09:39:42.109 * RDB memory usage when created 6.98 Mb
174:M 28 Sep 2023 09:39:42.125 * DB loaded from disk: 0.017 seconds
174:M 28 Sep 2023 09:39:42.125 * Ready to accept connections
I, [2023-09-28T09:39:52.106786 #1]  INFO -- :
I, [2023-09-28T09:39:52.107382 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-09-28T09:39:52.110463 #1]  INFO -- : thpoff is installed!

I, [2023-09-28T09:39:52.110542 #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-09-28T09:39:52.161031 #1]  INFO -- :
I, [2023-09-28T09:39:52.161459 #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-09-28T09:39:52.213396 #1]  INFO -- :
I, [2023-09-28T09:39:52.214054 #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-09-28T09:39:52.264341 #1]  INFO -- :
I, [2023-09-28T09:39:52.264892 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2023-09-28T09:39:52.277850 #1]  INFO -- :
I, [2023-09-28T09:39:52.278275 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-09-28T09:39:52.279859 #1]  INFO -- :
I, [2023-09-28T09:39:52.282271 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2023-09-28T09:39:52.285697 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2023-09-28T09:39:52.289212 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2023-09-28T09:39:52.292716 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2023-09-28T09:39:52.295975 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2023-09-28T09:39:52.298977 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2023-09-28T09:39:52.299172 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-09-28T09:39:52.299441 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-09-28T09:39:52.300874 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
203:C 28 Sep 2023 09:39:52.303 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
203:C 28 Sep 2023 09:39:52.303 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=203, just started
203:C 28 Sep 2023 09:39:52.303 # Configuration loaded
203:M 28 Sep 2023 09:39:52.304 * monotonic clock: POSIX clock_gettime
203:M 28 Sep 2023 09:39:52.304 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
203:M 28 Sep 2023 09:39:52.304 # Failed listening on port 6379 (TCP), aborting.
Checking out files: 100% (28860/28860), done.
I, [2023-09-28T09:39:54.039281 #1]  INFO -- : HEAD is now at 74f71503 FEATURE: Automatically timed delete stub topics after entire topic is merged into another topic (#13187)

I, [2023-09-28T09:39:54.039397 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2023-09-28T09:39:54.111898 #1]  INFO -- :
I, [2023-09-28T09:39:54.112276 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2023-09-28T09:39:54.115673 #1]  INFO -- :
I, [2023-09-28T09:39:54.115791 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2023-09-28T09:39:54.118945 #1]  INFO -- :
I, [2023-09-28T09:39:54.119119 #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, [2023-09-28T09:40:00.082773 #1]  INFO -- :
I, [2023-09-28T09:40:00.082951 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2023-09-28T09:40:01.785673 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2023-09-28T09:40:01.785935 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-09-28T09:40:01.789744 #1]  INFO -- :
I, [2023-09-28T09:40:01.789989 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-09-28T09:40:01.793545 #1]  INFO -- :
I, [2023-09-28T09:40:01.793778 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-09-28T09:40:01.796773 #1]  INFO -- :
I, [2023-09-28T09:40:01.796867 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-09-28T09:40:01.799502 #1]  INFO -- :
I, [2023-09-28T09:40:01.799688 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-09-28T09:40:01.802589 #1]  INFO -- :
I, [2023-09-28T09:40:01.803005 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-09-28T09:40:01.806942 #1]  INFO -- :
I, [2023-09-28T09:40:01.807350 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-09-28T09:40:01.811415 #1]  INFO -- :
I, [2023-09-28T09:40:01.811566 #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, [2023-09-28T09:40:01.815420 #1]  INFO -- :
I, [2023-09-28T09:40:01.815611 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-09-28T09:40:01.820020 #1]  INFO -- :
I, [2023-09-28T09:40:01.820253 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-09-28T09:40:01.824338 #1]  INFO -- :
I, [2023-09-28T09:40:01.824415 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-09-28T09:40:01.828553 #1]  INFO -- :
I, [2023-09-28T09:40:01.828772 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-09-28T09:40:01.832840 #1]  INFO -- :
I, [2023-09-28T09:40:01.832920 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-09-28T09:40:01.990503 #1]  INFO -- :
I, [2023-09-28T09:40:01.990787 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-09-28T09:40:01.994754 #1]  INFO -- :
I, [2023-09-28T09:40:01.995409 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-09-28T09:40:01.997782 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-09-28T09:40:02.890693 #1]  INFO -- :
I, [2023-09-28T09:40:02.891257 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-09-28T09:40:02.895372 #1]  INFO -- :
I, [2023-09-28T09:40:02.895662 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-09-28T09:40:02.899394 #1]  INFO -- :
I, [2023-09-28T09:40:02.899681 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-09-28T09:40:02.902948 #1]  INFO -- :
I, [2023-09-28T09:40:02.903210 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-09-28T09:40:02.903500 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-09-28T09:40:02.903756 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-09-28T09:40:02.904020 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-09-28T09:40:02.904240 #1]  INFO -- : > echo "done configuring web"
I, [2023-09-28T09:40:02.907706 #1]  INFO -- : done configuring web

I, [2023-09-28T09:40:02.908118 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-09-28T09:40:03.400618 #1]  INFO -- : Successfully installed bundler-2.4.13
1 gem installed

I, [2023-09-28T09:40:03.401153 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-09-28T09:40:03.987835 #1]  INFO -- :
I, [2023-09-28T09:40:03.988415 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'test development'`, and stop using this flag
Bundler::PathError: The path `/var/www/discourse/vendor/bundle/ruby/2.7.0/bundler/gems/sprockets-f4d3dae71ef2` does not exist.
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/source/path.rb:209:in `load_spec_files'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/source/git.rb:206:in `load_spec_files'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/source/path.rb:107:in `local_specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/source/git.rb:172:in `specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/lazy_specification.rb:82:in `materialize_for_installation'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:205:in `map!'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:205:in `specs_for_dependency'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:34:in `block in for'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:22:in `loop'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:22:in `for'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:85:in `materialize'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/definition.rb:209:in `missing_specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/definition.rb:213:in `missing_specs?'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:255:in `resolve_if_needed'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:82:in `block in run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:12:in `block in lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in `open'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in `lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:71:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:23:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli/install.rb:62:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:261:in `block in install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/settings.rb:131:in `temporary'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:260:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:34:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:28:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:45:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:33:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'
Bundler::InstallError: colored2-4.0.0 requires ruby version >= 3.1, which is incompatible with the current version, 2.7.2
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:233:in `block in ensure_specs_are_compatible!'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:165:in `each'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:165:in `each'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:231:in `ensure_specs_are_compatible!'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:83:in `block in run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:12:in `block in lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in `open'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in `lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:71:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:23:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli/install.rb:62:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:261:in `block in install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/settings.rb:131:in `temporary'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:260:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:34:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:28:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:45:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:33:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'
I, [2023-09-28T09:40:10.049549 #1]  INFO -- : Exécution de `bundle install --deployment --jobs 4 --retry 3 --verbose --without "test" "development"` avec bundler 2.4.13
Gelée, utilisation de la résolution depuis le fichier de verrouillage
La définition manque de dépendances, échec de la résolution et de la matérialisation locale (https://github.com/rails/sprockets (at 3.x@f4d3dae) n'est pas encore vérifié)

Peut-être essayer de mettre à niveau votre installation de ruby ?

Avez-vous arrêté la mise à niveau pendant qu’elle était encore en cours ?

Ceci provient du processus de build. Je n’ai pas (et je pense que je n’ai pas besoin d’) aucune installation ruby locale, n’est-ce pas ?

non, elle a été terminée en raison d’un problème, semble-t-il.

Pas sûr. Tout ce dont je suis certain, c’est qu’à un moment donné, une version de ruby semble être obsolète.