Discourse offline dopo un aggiornamento fallito "bootstrap failed with exit code 5"

Ciao a tutti,

Il mio Discourse è attualmente offline :cry: :pensive:

Si è bloccato dopo aver tentato di aggiornare stamattina da/a v3.2.0.beta3 +468:

Nella riga di comando, il messaggio di errore è:

E il log completo della console:

root@greyarro:~# cd /var/discourse/
root@greyarro:/var/discourse# git pull
Already up to date.
root@greyarro:/var/discourse# ./launcher rebuild app
x86_64 arch detected.
WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
2.0.20231023-1945: Pulling from discourse/base
Digest: sha256:2b0eb484d20888cc2daadb690dcfa73522105650c1420212e99345a36a424d77
Status: Image is up to date for 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-11T06:36:42.453494 #1]  INFO -- : Reading from stdin
I, [2023-12-11T06:36:42.461560 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-12-11T06:36:42.523575 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2023-12-11T06:36:42.524082 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-12-11T06:36:42.529018 #1]  INFO -- : 
I, [2023-12-11T06:36:42.529478 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-12-11T06:36:42.534085 #1]  INFO -- : 
I, [2023-12-11T06:36:42.534610 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-12-11T06:36:42.538665 #1]  INFO -- : 
I, [2023-12-11T06:36:42.539119 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-12-11T06:36:42.542429 #1]  INFO -- : 
I, [2023-12-11T06:36:42.542918 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-12-11T06:36:42.545917 #1]  INFO -- : 
I, [2023-12-11T06:36:42.546272 #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/11 06:36:42 socat[17] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-12-11T06:36:42.557289 #1]  INFO -- : 
I, [2023-12-11T06:36:42.557926 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-12-11T06:36:42.562906 #1]  INFO -- : 
I, [2023-12-11T06:36:42.563405 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-12-11T06:36:42.568125 #1]  INFO -- : 
I, [2023-12-11T06:36:42.568537 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-11T06:36:42.571897 #1]  INFO -- : 
I, [2023-12-11T06:36:42.572328 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-11T06:36:42.575429 #1]  INFO -- : 
I, [2023-12-11T06:36:42.583069 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2023-12-11T06:36:42.591097 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2023-12-11T06:36:42.599557 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2023-12-11T06:36:42.607693 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2023-12-11T06:36:42.608293 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-12-11T06:36:43.061308 #1]  INFO -- : 
I, [2023-12-11T06:36:43.061769 #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-11T06:36:43.066134 #1]  INFO -- : 
I, [2023-12-11T06:36:43.066571 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-12-11T06:36:43.105049 #1]  INFO -- : 
I, [2023-12-11T06:36:43.105891 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-12-11T06:36:43.111420 #1]  INFO -- : 
I, [2023-12-11T06:36:43.112072 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-12-11T06:36:43.122177 #1]  INFO -- : 
I, [2023-12-11T06:36:43.122713 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-12-11T06:36:43.126702 #1]  INFO -- : 
I, [2023-12-11T06:36:43.127981 #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-12-11T06:36:43.128927 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.129583 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.130214 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.130899 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.131457 #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-12-11T06:36:43.132096 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-12-11T06:36:43.137173 #1]  INFO -- : 
I, [2023-12-11T06:36:43.137747 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.138339 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-11T06:36:43.139065 #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-12-11T06:36:43.140177 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-11T06:36:43.140923 #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-12-11T06:36:43.141403 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-11T06:36:43.141961 #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-12-11T06:36:43.144661 #1]  INFO -- : > sleep 5
2023-12-11 06:36:43.213 UTC [40] LOG:  starting PostgreSQL 13.12 (Debian 13.12-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-12-11 06:36:43.213 UTC [40] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-12-11 06:36:43.213 UTC [40] LOG:  listening on IPv6 address "::", port 5432
2023-12-11 06:36:43.217 UTC [40] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-11 06:36:43.223 UTC [43] LOG:  database system was shut down at 2023-12-11 06:33:31 UTC
2023-12-11 06:36:43.236 UTC [40] LOG:  database system is ready to accept connections
I, [2023-12-11T06:36:48.151212 #1]  INFO -- : 
I, [2023-12-11T06:36:48.151469 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-12-11 06:36:48.241 UTC [53] postgres@postgres ERROR:  database "discourse" already exists
2023-12-11 06:36:48.241 UTC [53] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2023-12-11T06:36:48.244084 #1]  INFO -- : 
I, [2023-12-11T06:36:48.244295 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-12-11 06:36:48.310 UTC [57] postgres@discourse ERROR:  role "discourse" already exists
2023-12-11 06:36:48.310 UTC [57] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2023-12-11T06:36:48.313540 #1]  INFO -- : 
I, [2023-12-11T06:36:48.313932 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-12-11T06:36:48.372120 #1]  INFO -- : GRANT

I, [2023-12-11T06:36:48.372374 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-12-11T06:36:48.428450 #1]  INFO -- : ALTER SCHEMA

I, [2023-12-11T06:36:48.428697 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-12-11T06:36:48.509937 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.510198 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-12-11T06:36:48.575901 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.576560 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE:  extension "vector" already exists, skipping
I, [2023-12-11T06:36:48.634184 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.634407 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-12-11T06:36:48.691197 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.691402 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-12-11T06:36:48.747583 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.747801 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE:  extension "vector" already exists, skipping
I, [2023-12-11T06:36:48.805422 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-11T06:36:48.805817 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-12-11T06:36:48.808688 #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-11T06:36:48.891679 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-12-11T06:36:48.896830 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2023-12-11T06:36:48.896998 #1]  INFO -- : > echo postgres installed!
I, [2023-12-11T06:36:48.899962 #1]  INFO -- : postgres installed!

I, [2023-12-11T06:36:48.907627 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2023-12-11T06:36:48.914411 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2023-12-11T06:36:48.920982 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2023-12-11T06:36:48.922023 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.922829 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.923923 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-12-11T06:36:48.928742 #1]  INFO -- : 
I, [2023-12-11T06:36:48.929799 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.930627 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.931845 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.933205 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.934373 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-12-11T06:36:48.935362 #1]  INFO -- : > echo redis installed
I, [2023-12-11T06:36:48.939050 #1]  INFO -- : redis installed

I, [2023-12-11T06:36:48.939481 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-12-11T06:36:48.947715 #1]  INFO -- : logfile ""

I, [2023-12-11T06:36:48.948224 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-11T06:36:48.950934 #1]  INFO -- : > sleep 10
109:C 11 Dec 2023 06:36:48.962 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
109:C 11 Dec 2023 06:36:48.962 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=109, just started
109:C 11 Dec 2023 06:36:48.962 # Configuration loaded
109:M 11 Dec 2023 06:36:48.963 * monotonic clock: POSIX clock_gettime
109:M 11 Dec 2023 06:36:48.964 * Running mode=standalone, port=6379.
109:M 11 Dec 2023 06:36:48.964 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
109:M 11 Dec 2023 06:36:48.964 # Server initialized
109:M 11 Dec 2023 06:36:48.964 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
109:M 11 Dec 2023 06:36:48.965 * Loading RDB produced by version 7.0.7
109:M 11 Dec 2023 06:36:48.965 * RDB age 196 seconds
109:M 11 Dec 2023 06:36:48.965 * RDB memory usage when created 238.89 Mb
109:M 11 Dec 2023 06:36:49.836 * Done loading RDB, keys loaded: 78979, keys expired: 55.
109:M 11 Dec 2023 06:36:49.836 * DB loaded from disk: 0.871 seconds
109:M 11 Dec 2023 06:36:49.836 * Ready to accept connections
I, [2023-12-11T06:36:58.954574 #1]  INFO -- : 
I, [2023-12-11T06:36:58.955135 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-12-11T06:36:58.960865 #1]  INFO -- : thpoff is installed!

I, [2023-12-11T06:36:58.961207 #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-11T06:36:59.059159 #1]  INFO -- : 
I, [2023-12-11T06:36:59.059736 #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-11T06:36:59.148371 #1]  INFO -- : 
I, [2023-12-11T06:36:59.149030 #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-11T06:36:59.236730 #1]  INFO -- : 
I, [2023-12-11T06:36:59.237387 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-12-11T06:36:59.242323 #1]  INFO -- : 
I, [2023-12-11T06:36:59.247436 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2023-12-11T06:36:59.254458 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2023-12-11T06:36:59.261375 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2023-12-11T06:36:59.268779 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2023-12-11T06:36:59.276427 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2023-12-11T06:36:59.283178 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2023-12-11T06:36:59.283492 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-12-11T06:36:59.284057 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-11T06:36:59.287039 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
137:C 11 Dec 2023 06:36:59.295 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
137:C 11 Dec 2023 06:36:59.295 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=137, just started
137:C 11 Dec 2023 06:36:59.295 # Configuration loaded
137:M 11 Dec 2023 06:36:59.295 * monotonic clock: POSIX clock_gettime
137:M 11 Dec 2023 06:36:59.295 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
137:M 11 Dec 2023 06:36:59.295 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (33858/33858), done.
I, [2023-12-11T06:37:03.209327 #1]  INFO -- : HEAD is now at 043b4a418 FIX: replaces data-tooltip usage by <DTooltip /> (#24062)

I, [2023-12-11T06:37:03.209496 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-12-11T06:37:03.416955 #1]  INFO -- : 
I, [2023-12-11T06:37:03.417150 #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
'
Da https://github.com/discourse/discourse
 - [eliminata]             (nessuna)     -> origin/0-flake-key
 - [eliminata]             (nessuna)     -> origin/0-grant-badge-fix
 - [eliminata]             (nessuna)     -> origin/0-obscuring
 - [eliminata]             (nessuna)     -> origin/0-router-lint
 - [eliminata]             (nessuna)     -> origin/0-router-service
 - [eliminata]             (nessuna)     -> origin/a-smokes-test
 - [eliminata]             (nessuna)     -> origin/autoimport-cleanup
 - [eliminata]             (nessuna)     -> origin/category-bullet-only
 - [eliminata]             (nessuna)     -> origin/dependabot/bundler/syntax_tree-6.2.0
 - [eliminata]             (nessuna)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.4.0
 - [eliminata]             (nessuna)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.8.0
 - [eliminata]             (nessuna)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.6.0
 - [eliminata]             (nessuna)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.5.2
 - [eliminata]             (nessuna)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.4.2
 - [eliminata]             (nessuna)     -> origin/dev-upgrade-reject-reason-reviewable-modal
 - [eliminata]             (nessuna)     -> origin/dev/ability-to-collect-stats-without-public-exposing
 - [eliminata]             (nessuna)     -> origin/dev/minio-s3-system-specs
 - [eliminata]             (nessuna)     -> origin/dev/re-enable-minio-specs
 - [eliminata]             (nessuna)     -> origin/dev/switch-over-category-settings
 - [eliminata]             (nessuna)     -> origin/dev/switch-over-more-category-settings
 - [eliminata]             (nessuna)     -> origin/discovery-named-outlets
 - [eliminata]             (nessuna)     -> origin/feature/theme-settings-migration
 - [eliminata]             (nessuna)     -> origin/fix/account-for-empty-string-site-settings
 - [eliminata]             (nessuna)     -> origin/footnote-plugin
 - [eliminata]             (nessuna)     -> origin/metadata-update
 - [eliminata]             (nessuna)     -> origin/modal-ux
 - [eliminata]             (nessuna)     -> origin/neil-2
 - [eliminata]             (nessuna)     -> origin/perf_cache_async_search
 - [eliminata]             (nessuna)     -> origin/redo-post-focus-setting
 - [eliminata]             (nessuna)     -> origin/spoiler-plugin
 - [eliminata]             (nessuna)     -> origin/support-search-customizationz
   043b4a418..4949d85c1  main                  -> origin/main
 * [nuovo branch]          0-class-attribute     -> origin/0-class-attribute
 * [nuovo branch]          0-for-attributes      -> origin/0-for-attributes
 * [nuovo branch]          0-i18n-case           -> origin/0-i18n-case
 * [nuovo branch]          add-custom-emoji-sanitization-clean -> origin/add-custom-emoji-sanitization-clean
 * [nuovo branch]          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  (aggiornamento forzato)
 * [nuovo branch]          api-topic-title-decorator -> origin/api-topic-title-decorator
 * [nuovo branch]          array-custom-field-order -> origin/array-custom-field-order
 * [nuovo branch]          boosted-searches      -> origin/boosted-searches
 * [nuovo branch]          bulk-button-class     -> origin/bulk-button-class
 * [nuovo branch]          category_definition   -> origin/category_definition
 * [nuovo branch]          chat-github-onebox    -> origin/chat-github-onebox
 * [nuovo branch]          chat-reaction-emoji-alignment -> origin/chat-reaction-emoji-alignment
 * [nuovo branch]          chat/direct-messages  -> origin/chat/direct-messages
 * [nuovo branch]          confirm-session-only-after-5-mins -> origin/confirm-session-only-after-5-mins
 * [nuovo branch]          custom-field-store-cleanup -> origin/custom-field-store-cleanup
 * [nuovo branch]          delete-backups-based-on-time-window -> origin/delete-backups-based-on-time-window
 * [nuovo branch]          dependabot/github_actions/actions/labeler-5 -> origin/dependabot/github_actions/actions/labeler-5
 * [nuovo branch]          dependabot/github_actions/actions/stale-9 -> origin/dependabot/github_actions/actions/stale-9
 * [nuovo branch]          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
 * [nuovo branch]          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
 * [nuovo branch]          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
 * [nuovo branch]          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
 * [nuovo branch]          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
 * [nuovo branch]          desktop-notification-handlers -> origin/desktop-notification-handlers
 * [nuovo branch]          dev/add-a-reference-column-to-notifications -> origin/dev/add-a-reference-column-to-notifications
 + ee95e6359...a2b413786 dev/add-new-chat-metrics -> origin/dev/add-new-chat-metrics  (aggiornamento forzato)
 * [nuovo branch]          dev/drop-notification_id-column-on-chat-mentions -> origin/dev/drop-notification_id-column-on-chat-mentions
 * [nuovo branch]          dev/dry-up-user-status-serializers -> origin/dev/dry-up-user-status-serializers
 * [nuovo branch]          dev/flaky-chat-details-collapser-spec -> origin/dev/flaky-chat-details-collapser-spec
 * [nuovo branch]          dev/no-need-to-include-user-status-twice -> origin/dev/no-need-to-include-user-status-twice
 * [nuovo branch]          dev/remove-legacy-hamburger-menu -> origin/dev/remove-legacy-hamburger-menu
 * [nuovo branch]          dev/rethink-mass-mentions -> origin/dev/rethink-mass-mentions
 * [nuovo branch]          dev/rethink-mass-mentions-polymorphic -> origin/dev/rethink-mass-mentions-polymorphic
 * [nuovo branch]          dev/revert-guardian-devex -> origin/dev/revert-guardian-devex
 + 54940ca5c...3eacfe150 dev_paginate_categories_json -> origin/dev_paginate_categories_json  (aggiornamento forzato)
 * [nuovo branch]          dev_watched_words     -> origin/dev_watched_words
 + 46fe4511f...a9d0e7069 ember-4               -> origin/ember-4  (aggiornamento forzato)
 * [nuovo branch]          ember-5-plugins       -> origin/ember-5-plugins
 * [nuovo branch]          extract_stripper      -> origin/extract_stripper
 * [nuovo branch]          feature/admin-sidebar-v0 -> origin/feature/admin-sidebar-v0
   9a6c6fd5b..8780daeee  feature/bookmark-menu-and-modal-redesign -> origin/feature/bookmark-menu-and-modal-redesign
 * [nuovo branch]          feature/migrations-schema-generator -> origin/feature/migrations-schema-generator
 * [nuovo branch]          feature_watched_words_validation -> origin/feature_watched_words_validation
 * [nuovo branch]          file-size-restriction -> origin/file-size-restriction
   43df37774..4393dd37e  filtered-events       -> origin/filtered-events
 * [nuovo branch]          fix/count-mass-mentions-correctly -> origin/fix/count-mass-mentions-correctly
 * [nuovo branch]          full-page             -> origin/full-page
   ce7fb6906..31e32f8a1  generic-import-latest -> origin/generic-import-latest
 * [nuovo branch]          generic-import-latest-snowflake -> origin/generic-import-latest-snowflake
 * [nuovo branch]          generic-import-update -> origin/generic-import-update
 * [nuovo branch]          image-assets          -> origin/image-assets
 * [nuovo branch]          independent-theme-compiler -> origin/independent-theme-compiler
 * [nuovo branch]          input-text-field-component -> origin/input-text-field-component
 * [nuovo branch]          issue/fix-guardian-init-basic-user -> origin/issue/fix-guardian-init-basic-user
 * [nuovo branch]          keyword-site-setting  -> origin/keyword-site-setting
 + bdcc24f96...92e545292 list-wrapper          -> origin/list-wrapper  (aggiornamento forzato)
   e3636078c..5def32699  mock-chat-index-redesign -> origin/mock-chat-index-redesign
 * [nuovo branch]          move_inflector        -> origin/move_inflector
 * [nuovo branch]          multi-invite          -> origin/multi-invite
 * [nuovo branch]          noti-glimmer          -> origin/noti-glimmer
 * [nuovo branch]          oklab                 -> origin/oklab
 * [nuovo branch]          poc/auto-after-before-plugin-outlets -> origin/poc/auto-after-before-plugin-outlets
 * [nuovo branch]          poc/insert-before-after-wrapping-outlet -> origin/poc/insert-before-after-wrapping-outlet
 * [nuovo branch]          pretty-text-please    -> origin/pretty-text-please
 * [nuovo branch]          reload-page-user-prefs-2fa -> origin/reload-page-user-prefs-2fa
 * [nuovo branch]          revert-maxmind        -> origin/revert-maxmind
   ef3f41543..223626d7a  stable                -> origin/stable
 * [nuovo branch]          support-load-more-btn -> origin/support-load-more-btn
 * [nuovo branch]          test-issue-temporary  -> origin/test-issue-temporary
   043b4a418..4949d85c1  tests-passed          -> origin/tests-passed
 * [nuovo branch]          tmp/reimplement-all-and-here-mentions -> origin/tmp/reimplement-all-and-here-mentions
 * [nuovo branch]          tobiaseigen-patch-3   -> origin/tobiaseigen-patch-3
 * [nuovo branch]          transform-hooks       -> origin/transform-hooks
 * [nuovo branch]          transform-post-fn-api -> origin/transform-post-fn-api
 * [nuovo branch]          tweaks-2-fr           -> origin/tweaks-2-fr
 * [nuovo branch]          username_cache        -> origin/username_cache
 * [nuovo branch]          ux-add-sorting-params-to-outlet -> origin/ux-add-sorting-params-to-outlet
 t [aggiornamento tag]          beta                  -> beta
 t [aggiornamento tag]          latest-release        -> latest-release
 * [nuovo tag]             v3.1.3                -> v3.1.3
 * [nuovo tag]             v3.2.0.beta3          -> v3.2.0.beta3
I, [2023-12-11T06:37:05.107220 #1]  INFO -- : 
I, [2023-12-11T06:37:05.107337 #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
'
Passato a un nuovo branch 'tests-passed'
I, [2023-12-11T06:37:10.039336 #1]  INFO -- : Branch 'tests-passed' configurato per tracciare il branch remoto 'tests-passed' da 'origin'.

I, [2023-12-11T06:37:10.039485 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2023-12-11T06:37:10.055796 #1]  INFO -- : 
I, [2023-12-11T06:37:10.055932 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-12-11T06:37:10.062383 #1]  INFO -- : 
I, [2023-12-11T06:37:10.062911 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-12-11T06:37:10.068906 #1]  INFO -- : 
I, [2023-12-11T06:37:10.069051 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-12-11T06:37:10.075337 #1]  INFO -- : 
I, [2023-12-11T06:37:10.075478 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-12-11T06:37:10.081087 #1]  INFO -- : 
I, [2023-12-11T06:37:10.081222 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-12-11T06:37:10.087004 #1]  INFO -- : 
I, [2023-12-11T06:37:10.087139 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-12-11T06:37:10.093140 #1]  INFO -- : 
I, [2023-12-11T06:37:10.093305 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-12-11T06:37:10.100413 #1]  INFO -- : 
I, [2023-12-11T06:37:10.100570 #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-12-11T06:37:10.108011 #1]  INFO -- : 
I, [2023-12-11T06:37:10.108130 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-12-11T06:37:10.116596 #1]  INFO -- : 
I, [2023-12-11T06:37:10.116726 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-12-11T06:37:10.124273 #1]  INFO -- : 
I, [2023-12-11T06:37:10.124421 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-12-11T06:37:10.134061 #1]  INFO -- : 
I, [2023-12-11T06:37:10.134228 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-12-11T06:37:10.141458 #1]  INFO -- : 
I, [2023-12-11T06:37:10.141602 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-12-11T06:37:10.163707 #1]  INFO -- : 
I, [2023-12-11T06:37:10.163854 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-12-11T06:37:10.169471 #1]  INFO -- : 
I, [2023-12-11T06:37:10.170368 #1]  INFO -- : Sostituzione di # redis con sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-12-11T06:37:10.171519 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonazione in 'docker_manager'...
I, [2023-12-11T06:37:11.142485 #1]  INFO -- : 
I, [2023-12-11T06:37:11.142680 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Clonazione in 'discourse-solved'...
I, [2023-12-11T06:37:11.877496 #1]  INFO -- : 
I, [2023-12-11T06:37:11.878167 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-locations.git
Clonazione in 'discourse-locations'...
I, [2023-12-11T06:37:12.713978 #1]  INFO -- : 
I, [2023-12-11T06:37:12.714105 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Clonazione in 'discourse-data-explorer'...
I, [2023-12-11T06:37:13.532864 #1]  INFO -- : 
I, [2023-12-11T06:37:13.533001 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Clonazione in 'discourse-adplugin'...
I, [2023-12-11T06:37:14.305555 #1]  INFO -- : 
I, [2023-12-11T06:37:14.305817 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-reactions.git
Clonazione in 'discourse-reactions'...
I, [2023-12-11T06:37:15.045125 #1]  INFO -- : 
I, [2023-12-11T06:37:15.045247 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-templates.git
Clonazione in 'discourse-templates'...
I, [2023-12-11T06:37:15.809915 #1]  INFO -- : 
I, [2023-12-11T06:37:15.810046 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-affiliate.git
Clonazione in 'discourse-affiliate'...
I, [2023-12-11T06:37:16.433061 #1]  INFO -- : 
I, [2023-12-11T06:37:16.434123 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-12-11T06:37:16.442090 #1]  INFO -- : 
I, [2023-12-11T06:37:16.442586 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-12-11T06:37:16.446759 #1]  INFO -- : 
I, [2023-12-11T06:37:16.447263 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-12-11T06:37:16.451474 #1]  INFO -- : 
I, [2023-12-11T06:37:16.452405 #1]  INFO -- : Sostituzione di pid /run/nginx.pid; con daemon off; in /etc/nginx/nginx.conf
I, [2023-12-11T06:37:16.453144 #1]  INFO -- : Sostituzione di (?m-ix:upstream[^\}]+\}) con upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-12-11T06:37:16.453873 #1]  INFO -- : Sostituzione di (?-mix:server_name.+$) con server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-12-11T06:37:16.454418 #1]  INFO -- : Sostituzione di (?-mix:client_max_body_size.+$) con client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-12-11T06:37:16.454991 #1]  INFO -- : Sostituzione di (?-mix:worker_connections.+$) con worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-12-11T06:37:16.455481 #1]  INFO -- : > echo "configurazione web completata"
I, [2023-12-11T06:37:16.459601 #1]  INFO -- : configurazione web completata

I, [2023-12-11T06:37:16.460326 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-12-11T06:37:16.836806 #1]  INFO -- : 
I, [2023-12-11T06:37:16.836974 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-12-11T06:37:19.438303 #1]  INFO -- : 
I, [2023-12-11T06:37:19.438984 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2023-12-11T06:37:19.442692 #1]  INFO -- : 
I, [2023-12-11T06:37:19.442789 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning " > @glint/environment-ember-loose@1.1.0" ha una dipendenza peer non soddisfatta "@glimmer/component@^1.1.2".
warning " > @glint/environment-ember-template-imports@1.1.0" ha una dipendenza peer non soddisfatta "ember-template-imports@^3.0.0".
warning Il campo di risoluzione "unset-value@2.0.1" è incompatibile con la versione richiesta "unset-value@^1.0.0"
warning Il pattern ["wrap-ansi@^7.0.0"] sta cercando di essere estratto nella stessa destinazione "/home/discourse/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs" del pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. Questo potrebbe causare un comportamento non deterministico, saltando.
warning " > discourse-markdown-it@1.0.0" ha una dipendenza peer non soddisfatta "xss@*".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse > @ember/legacy-built-in-components@0.5.0" ha una dipendenza peer errata "ember-source@>= 4.8".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse > @uppy/aws-s3@3.0.6" ha una dipendenza peer errata "@uppy/core@^3.1.2".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse > @uppy/aws-s3-multipart@3.1.3" ha una dipendenza peer errata "@uppy/core@^3.1.2".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse > @uppy/xhr-upload@3.1.1" ha una dipendenza peer errata "@uppy/core@^3.1.2".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse-plugins > ember-this-fallback@0.4.0" ha una dipendenza peer non soddisfatta "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-4a0ff1cd-82ba-483f-8207-6b2c0f0b31fb > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" ha una dipendenza peer errata "@uppy/core@^3.2.1".
I, [2023-12-11T06:39:22.730680 #1]  INFO -- : yarn install v1.22.19
[1/5] Convalida di package.json...
[2/5] Risoluzione dei pacchetti...
[3/5] Recupero dei pacchetti...
[4/5] Collegamento delle dipendenze...
[5/5] Costruzione di nuovi pacchetti...
$ 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] Risoluzione dei pacchetti...
[2/4] Recupero dei pacchetti...
[3/4] Collegamento delle dipendenze...
[4/4] Costruzione di nuovi pacchetti...
$ ./run-patch-package
patch-package 8.0.0
Applicazione delle patch...
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 ✔
Completato in 64.07s.
Completato in 115.18s.
yarn cache v1.22.19
success Cache cancellata.
Completato in 7.53s.

I, [2023-12-11T06:39:22.731495 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-12-11T06:39:23.103216 #1]  INFO -- : 
I, [2023-12-11T06:39:23.103337 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-12-11T06:39:23.331037 #1]  INFO -- : Si sta sostituendo il valore locale corrente di without, che è attualmente "test:development"

I, [2023-12-11T06:39:23.331186 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
Gem::Ext::BuildError: ERRORE: Impossibile compilare l'estensione nativa del gem.

directory corrente:
/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 fallito ***
Impossibile creare il Makefile per qualche motivo, probabilmente mancanza di
librerie e/o header necessari. Controllare il file mkmf.log per maggiori dettagli. Potrebbe
essere necessario fornire opzioni di configurazione.

Opzioni di configurazione fornite:
	--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
fallito, si prega di segnalare a 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>'

Per vedere perché questa estensione non è stata compilata, controlla il file mkmf.log che si trova qui:

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

extconf fallito, codice di uscita 1

I file del gem rimarranno installati in
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0 per ispezione.
Risultati registrati in
/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/Si è verificato un errore durante l'installazione di rbtrace (0.5.0) e Bundler non può continuare.

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

I, [2023-12-11T06:40:09.132711 #1]  INFO -- : Terminazione processi asincroni
I, [2023-12-11T06:40:09.133069 #1]  INFO -- : Invio 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: 40
2023-12-11 06:40:09.133 UTC [40] LOG:  ricevuta richiesta di arresto rapido
I, [2023-12-11T06:40:09.133831 #1]  INFO -- : Invio TERM a exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 109
109:signal-handler (1702276809) Ricevuto SIGTERM, pianificazione arresto...
2023-12-11 06:40:09.138 UTC [40] LOG:  interruzione transazioni attive
2023-12-11 06:40:09.144 UTC [40] LOG:  worker di background "logical replication launcher" (PID 49) terminato con codice di uscita 1
2023-12-11 06:40:09.146 UTC [44] LOG:  arresto in corso
2023-12-11 06:40:09.168 UTC [40] LOG:  sistema database arrestato
109:M 11 Dec 2023 06:40:09.173 # Arresto richiesto dall'utente...
109:M 11 Dec 2023 06:40:09.173 * Salvataggio snapshot RDB finale prima dell'uscita.
109:M 11 Dec 2023 06:40:10.723 * DB salvato su disco
109:M 11 Dec 2023 06:40:10.723 # Redis è ora pronto per uscire, arrivederci...


FALLITO
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' fallito con ritorno #<Process::Status: pid 585 exit 5>
Posizione del fallimento: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec fallito con i parametri {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \"development test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}
bootstrap fallito con codice di uscita 5
** BOOTSTRAP FALLITO ** scorri verso l'alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
9d6071df716185b1c31a8703028a03d6fb0198216704c41506a69b09c67d4519
root@greyarro:/var/discourse# 

Ho eseguito ./discourse-doctor, che sembrava fare molte cose spaventose che non ho capito, ma purtroppo non ha fatto alcuna differenza ed è terminato con quello che sembra essere lo stesso messaggio:

FALLITO

--------------------

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' fallito con ritorno #<Process::Status: pid 585 exit 5>

Posizione del fallimento: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'

exec fallito con i parametri {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \"development test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}

bootstrap fallito con codice di uscita 5

** BOOTSTRAP FALLITO ** scorri verso l'alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.

./discourse-doctor può aiutare a diagnosticare il problema.

9f72d4c67a46bda65d95233149ac8f661bdae02e70ae9a265666920d71de14e2

==================== FINE LOG RICOSTRUZIONE ====================

Ricostruzione app fallita.

Qualcuno può chiarire il problema o aiutarmi a rimettere online il servizio??

Gem::Ext::BuildError: ERRORE: Impossibile creare l'estensione nativa della gemma.

directory corrente:
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.0/ext

È un’installazione standard?

Per quanto posso ricordare @RGJ - ma sono passati circa sei anni da quando l’ho creato per la prima volta, ma non ricordo di aver fatto nulla di insolito allora.

Aggiorno sempre all’ultima versione circa una volta alla settimana, usando la riga di comando, questa è la prima volta che non riesco ad aggiornare in tutti questi anni.

Non ho alcuna familiarità con Ruby, cosa ti suggerisce quel messaggio? :thinking:

Il messaggio suggerisce che qualcosa è obsoleto o non standard, ma sta recuperando l’ultima immagine, quindi non ha senso.

Potrebbe trattarsi di un problema con il sistema operativo obsoleto? :thinking:

Attualmente in esecuzione su:

NAME="Ubuntu"

VERSION="18.04.6 LTS (Bionic Beaver)"

ID=ubuntu

ID_LIKE=debian

PRETTY_NAME="Ubuntu 18.04.6 LTS"

VERSION_ID="18.04"

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

VERSION_CODENAME=bionic

UBUNTU_CODENAME=bionic

Ora dovrò presumere il peggio, che il mio Discourse sia morto.

Ho una copia del mio ultimo app.yml e ho appena scaricato il backup del database di ieri sera da S3.

Penso che farò do-release-upgrade il mio Ubuntu da 18.04.6 LTS all’ultima versione, poi immagino che farò un’installazione pulita seguendo la guida su discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub

Una volta installato, potrò caricare il mio backup del database da 1,5 GB tramite il pannello di amministrazione? :thinking:

Uso S3 per gli upload da anni, quindi spero che tutto il contenuto utente caricato sia ancora accessibile da lì.

Ci sono delle insidie? C’è qualcosa che non sarà nel database? Qualsiasi impostazione? Qualsiasi file o altro contenuto?

:flushed:

Ho eseguito uno snapshot (Digital Ocean) del server nel suo stato attuale, l’aggiornamento della release è ora in corso.

Per curiosità, stavo aggiornando da https://github.com/discourse/discourse/compare/aadc104817bb0306856b4718f5c50fb481e77c16…4949d85c15be99abb3515e659ef674d58cc2c4c4 e vedrai che ero solo 128x commit / 11x giorni indietro rispetto all’ultima versione.

C’è un modo per scaricare di nuovo quella versione precedente e ricostruire usando quella? Solo per rimettere in funzione la nostra community? :thinking:

Hai provato a eseguire ./launcher start app per cercare di ripristinare quello pre-ricostruzione?

Ahimè, nel mio cieco panico per il fallimento di stamattina, ho rimosso tutti i container che non erano in esecuzione :pensieroso:

Penso che finché avrai le informazioni del tuo app.yml e il tuo backup recente, sarai di nuovo operativo in men che non si dica su un nuovo droplet. :+1:

Whoa!!

Penso di essermi regalato una via di fuga :scream:

Mentre aspettavo l’aggiornamento della distro, mi sembra di aver attivato in modo piuttosto intelligente i backup di Digital Ocean :scream:

È ora di vedere se sono validi :grimacing:

Ok, allora Piano B…

Ripristina il backup dello snapshot di Digital Ocean della scorsa settimana del 04-12-2023

Carica il mio backup del database di ieri sera (11-12-2023 alle 2 del mattino)

Penso che questo ci riporterà più o meno a dove eravamo alle 6 di stamattina, quando tutto è andato a rotoli.

Non ho mai fatto un ripristino di un database prima.

Supponendo che il backup/ripristino di D.O. funzioni e mi riporti a lunedì scorso, posso semplicemente caricare il file backup.tar.gz da 1,5 GB direttamente tramite i menu di backup dell’amministratore? Devo estrarlo prima o altro?

Dovrei mettere il sito in modalità di sola lettura o fare qualcos’altro, mentre lo faccio?

Server attivo! (dallo snapshot di lunedì scorso)

A quanto pare voi persone molto intelligenti di Discourse avete integrato un pulsante “Ripristina” direttamente nel menu di amministrazione, quindi non ho nemmeno bisogno di caricare il backup :bowing_man:

:crossed_fingers:

:sob:

Probabilmente perché ho messo il sito in modalità di sola lettura prima di provare il ripristino.

Disattivazione della modalità di sola lettura e nuovo tentativo di ripristino…

No, neanche quello ha funzionato.

Registro errori:

Ho appena fermato di nuovo l’app.

Se guardo il mio sidekiq ha più di 12.000 job al suo interno.

Sembra che stia cercando di inviare di nuovo gli annunci email programmati della settimana scorsa :man_facepalming:

C’è un’azione da riga di comando che posso intraprendere per eliminarli tutti? Immagino che questi elementi in coda stiano bloccando il ripristino.

Quello che farei è avviare un nuovo droplet e seguire Spostare un sito Discourse su un altro VPS con rsync.
Ma immagino che tu non abbia più il tuo /var/discourse a meno che tu non abbia fatto un altro backup prima di ripristinare quello che hai trovato?

Quindi avvia un nuovo droplet, copia il tuo app.yml e ripristina il backup di ieri da S3. Questo è quello che devi fare.

Inoltre, qual è la tua versione di docker? Ho avuto un rebuild fallito con un errore simile a questo (troverò quell’argomento quando sarò al mio laptop).

Ho uno snapshot completo del server di 7 giorni fa, che ho ripristinato e il mio Discourse è ora di nuovo funzionante, ma con un database obsoleto di 7 giorni.

Ora sto cercando di ripristinare il database dal backup di ieri sera che si trova su S3.

Mentre quello cade, avvia un nuovo droplet. (che è quello che vuoi anche se verrà ripristinato)

Grazie Jay :slight_smile:

Ho terminato manualmente tutti i processi di sidekiq e sembra che il ripristino del database sia ora in esecuzione:

:crossed_fingers:

Se anche questo fallisce, staccherò la spina e seguirò il tuo percorso rsync, grazie :blush:

Vuoi un nuovo sistema operativo. Non mi fido degli aggiornamenti. Se vuoi usare l’hardware più recente, dovrai creare una nuova droplet.

Non posso dire di esserne un fan neanch’io :slight_smile:

Il backup settimanale di Digital Ocean di 7 giorni fa, che ho ripristinato, ha anche riportato indietro il sistema operativo Ubuntu 18.04, quindi sono di nuovo pre-aggiornamento.

Il ripristino del database sembra essere andato a buon fine.

Sto solo facendo un altro snapshot fresco ora, per sicurezza.

Se tutto questo funziona e ci rimette online, potrò quindi considerare di fare una mossa rsync all’ultimo sistema operativo, ma a mio piacimento piuttosto che in un panico affrettato :see_no_evil: