재구축 실패 - BOOTSTRAP 실패

이 포럼이 업데이트된 지 좀 된 것 같은데, git pull 후 재빌드하면 이런 메시지가 표시됩니다:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #<Process::Status: pid 502 exit 5>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"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 failed with exit code 5
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

Full output:

2.0.20231218-0429: Pulling from discourse/base
Digest: sha256:468f70b9bb4c6d0c6c2bbb3efc1a5e12d145eae57bdb6946b7fe5558beb52dc1
Status: Image is up to date for discourse/base:2.0.20231218-0429
docker.io/discourse/base:2.0.20231218-0429
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-12-22T05:08:37.278012 #1]  INFO -- : Reading from stdin
I, [2023-12-22T05:08:37.281481 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-12-22T05:08:37.307162 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2023-12-22T05:08:37.307385 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-12-22T05:08:37.309463 #1]  INFO -- : 
I, [2023-12-22T05:08:37.309725 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-12-22T05:08:37.311271 #1]  INFO -- : 
I, [2023-12-22T05:08:37.311378 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-12-22T05:08:37.312650 #1]  INFO -- : 
I, [2023-12-22T05:08:37.312753 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-12-22T05:08:37.314298 #1]  INFO -- : 
I, [2023-12-22T05:08:37.314429 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-12-22T05:08:37.315752 #1]  INFO -- : 
I, [2023-12-22T05:08:37.315876 #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/22 05:08:37 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-12-22T05:08:37.319328 #1]  INFO -- : 
I, [2023-12-22T05:08:37.319428 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-12-22T05:08:37.321411 #1]  INFO -- : 
I, [2023-12-22T05:08:37.321499 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-12-22T05:08:37.323413 #1]  INFO -- : 
I, [2023-12-22T05:08:37.323501 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-22T05:08:37.324999 #1]  INFO -- : 
I, [2023-12-22T05:08:37.325134 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-12-22T05:08:37.326603 #1]  INFO -- : 
I, [2023-12-22T05:08:37.329796 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2023-12-22T05:08:37.332807 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2023-12-22T05:08:37.335852 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2023-12-22T05:08:37.338874 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2023-12-22T05:08:37.339061 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-12-22T05:08:42.054512 #1]  INFO -- : 
I, [2023-12-22T05:08:42.054728 #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-22T05:08:42.057145 #1]  INFO -- : 
I, [2023-12-22T05:08:42.057222 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-12-22T05:08:42.083069 #1]  INFO -- : 
I, [2023-12-22T05:08:42.083263 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-12-22T05:08:42.085856 #1]  INFO -- : 
I, [2023-12-22T05:08:42.086020 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-12-22T05:08:42.090800 #1]  INFO -- : 
I, [2023-12-22T05:08:42.090927 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-12-22T05:08:42.093016 #1]  INFO -- : 
I, [2023-12-22T05:08:42.093274 #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-22T05:08:42.093955 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.094372 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.094778 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.095239 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.095631 #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-22T05:08:42.096023 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-12-22T05:08:42.099445 #1]  INFO -- : 
I, [2023-12-22T05:08:42.099790 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.100149 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-12-22T05:08:42.100622 #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-22T05:08:42.101045 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-12-22T05:08:42.101428 #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-22T05:08:42.101741 #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-22T05:08:42.102004 #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-22T05:08:42.104006 #1]  INFO -- : > sleep 5
2023-12-22 05:08:42.198 UTC [42] LOG:  starting PostgreSQL 13.13 (Debian 13.13-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-22 05:08:42.198 UTC [42] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-12-22 05:08:42.198 UTC [42] LOG:  listening on IPv6 address "::", port 5432
2023-12-22 05:08:42.207 UTC [42] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-22 05:08:42.218 UTC [45] LOG:  database system was shut down at 2023-12-22 05:06:01 UTC
2023-12-22 05:08:42.269 UTC [42] LOG:  database system is ready to accept connections
I, [2023-12-22T05:08:47.106408 #1]  INFO -- : 
I, [2023-12-22T05:08:47.106576 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-12-22 05:08:47.147 UTC [55] postgres@postgres ERROR:  database "discourse" already exists
2023-12-22 05:08:47.147 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2023-12-22T05:08:47.148162 #1]  INFO -- : 
I, [2023-12-22T05:08:47.148325 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-12-22 05:08:47.298 UTC [59] postgres@discourse ERROR:  role "discourse" already exists
2023-12-22 05:08:47.298 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2023-12-22T05:08:47.303244 #1]  INFO -- : 
I, [2023-12-22T05:08:47.303895 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-12-22T05:08:47.369029 #1]  INFO -- : GRANT

I, [2023-12-22T05:08:47.369202 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-12-22T05:08:47.405677 #1]  INFO -- : ALTER SCHEMA

I, [2023-12-22T05:08:47.405889 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-12-22T05:08:47.446288 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.446467 #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-22T05:08:47.483049 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.483227 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE:  extension "vector" already exists, skipping
I, [2023-12-22T05:08:47.520869 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.521070 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-12-22T05:08:47.558070 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.558241 #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-22T05:08:47.595347 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.595558 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE:  extension "vector" already exists, skipping
I, [2023-12-22T05:08:47.631831 #1]  INFO -- : CREATE EXTENSION

I, [2023-12-22T05:08:47.632018 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-12-22T05:08:47.633193 #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-22T05:08:47.751019 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-12-22T05:08:47.758567 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2023-12-22T05:08:47.758737 #1]  INFO -- : > echo postgres installed!
I, [2023-12-22T05:08:47.762674 #1]  INFO -- : postgres installed!

I, [2023-12-22T05:08:47.769427 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2023-12-22T05:08:47.775270 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2023-12-22T05:08:47.781182 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2023-12-22T05:08:47.781399 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.782104 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.782611 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-12-22T05:08:47.785928 #1]  INFO -- : 
I, [2023-12-22T05:08:47.786315 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.786883 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.787440 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.788017 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.788528 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-12-22T05:08:47.789008 #1]  INFO -- : > echo redis installed
I, [2023-12-22T05:08:47.791574 #1]  INFO -- : redis installed

I, [2023-12-22T05:08:47.791751 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-12-22T05:08:47.796186 #1]  INFO -- : logfile ""

I, [2023-12-22T05:08:47.796457 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-22T05:08:47.798054 #1]  INFO -- : > sleep 10
111:C 22 Dec 2023 05:08:47.806 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
111:C 22 Dec 2023 05:08:47.806 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=111, just started
111:C 22 Dec 2023 05:08:47.806 # Configuration loaded
111:M 22 Dec 2023 05:08:47.807 * monotonic clock: POSIX clock_gettime
111:M 22 Dec 2023 05:08:47.808 * Running mode=standalone, port=6379.
111:M 22 Dec 2023 05:08:47.808 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
111:M 22 Dec 2023 05:08:47.808 # Server initialized
111:M 22 Dec 2023 05:08:47.808 # 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.
111:M 22 Dec 2023 05:08:47.808 * Loading RDB produced by version 7.0.7
111:M 22 Dec 2023 05:08:47.808 * RDB age 167 seconds
111:M 22 Dec 2023 05:08:47.808 * RDB memory usage when created 14.97 Mb
111:M 22 Dec 2023 05:08:47.844 * Done loading RDB, keys loaded: 5831, keys expired: 20.
111:M 22 Dec 2023 05:08:47.844 * DB loaded from disk: 0.035 seconds
111:M 22 Dec 2023 05:08:47.844 * Ready to accept connections
I, [2023-12-22T05:08:57.800809 #1]  INFO -- : 
I, [2023-12-22T05:08:57.801346 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-12-22T05:08:57.810768 #1]  INFO -- : thpoff is installed!

I, [2023-12-22T05:08:57.811280 #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-22T05:08:57.891116 #1]  INFO -- : 
I, [2023-12-22T05:08:57.891326 #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-22T05:08:57.940738 #1]  INFO -- : 
I, [2023-12-22T05:08:57.940927 #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-22T05:08:57.991332 #1]  INFO -- : 
I, [2023-12-22T05:08:57.991527 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-12-22T05:08:57.993535 #1]  INFO -- : 
I, [2023-12-22T05:08:57.995477 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2023-12-22T05:08:57.998662 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2023-12-22T05:08:58.001978 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2023-12-22T05:08:58.005133 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2023-12-22T05:08:58.008321 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2023-12-22T05:08:58.011430 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2023-12-22T05:08:58.011548 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-12-22T05:08:58.011719 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-12-22T05:08:58.013090 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
138:C 22 Dec 2023 05:08:58.017 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
138:C 22 Dec 2023 05:08:58.017 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=138, just started
138:C 22 Dec 2023 05:08:58.017 # Configuration loaded
138:M 22 Dec 2023 05:08:58.017 * monotonic clock: POSIX clock_gettime
138:M 22 Dec 2023 05:08:58.017 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
138:M 22 Dec 2023 05:08:58.017 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (33715/33715), done.
I, [2023-12-22T05:09:00.540189 #1]  INFO -- : HEAD is now at 6ab1a19e9 DEV: Convert min_trust_level_to_allow_invite to groups (#24893)

I, [2023-12-22T05:09:00.540340 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-12-22T05:09:00.642416 #1]  INFO -- : 
I, [2023-12-22T05:09:00.642594 #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
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/0-drop-code
 - [deleted]             (none)     -> origin/dependabot/bundler/excon-0.108.0
 - [deleted]             (none)     -> origin/dependabot/bundler/hashdiff-1.1.0
 - [deleted]             (none)     -> origin/dependabot/bundler/parallel-1.24.0
 - [deleted]             (none)     -> origin/dependabot/bundler/rubocop-discourse-3.6.0
 - [deleted]             (none)     -> origin/dev/allow-chat-mentions-to-have-several-notifications
 - [deleted]             (none)     -> origin/dev/convert-min-trust-level-to-ignore-to-groups
 - [deleted]             (none)     -> origin/fix-modal-flash-minor
 - [deleted]             (none)     -> origin/global-notice-reactive
 - [deleted]             (none)     -> origin/table-builder-modal-modifier
 - [deleted]             (none)     -> origin/wip_categories
 - [deleted]             (none)     -> origin/wizard-split
   6ab1a19e9..d3625f228  main                 -> origin/main
 * [new branch]          0-extend-native      -> origin/0-extend-native
 * [new branch]          dependabot/bundler/faraday-2.8.1 -> origin/dependabot/bundler/faraday-2.8.1
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/glimmer/syntax-0.86.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/glimmer/syntax-0.86.0
 * [new branch]          dev/add-group-tl-auto-map-in-deprecations -> origin/dev/add-group-tl-auto-map-in-deprecations
 + 236458e7c...b0fb985bf dev/add-new-chat-metrics -> origin/dev/add-new-chat-metrics  (forced update)
 + 332564610...c89fecfc8 dev/convert-min-trust-level-to-create-tag-to-group -> origin/dev/convert-min-trust-level-to-create-tag-to-group  (forced update)
 * [new branch]          dev/convert-min-trust-to-allow-self-wiki-to-groups -> origin/dev/convert-min-trust-to-allow-self-wiki-to-groups
 * [new branch]          dev/convert-min-trust-to-send-email-messages-to-groups -> origin/dev/convert-min-trust-to-send-email-messages-to-groups
 + 7c338d0dc...1c8f343ff dev/rethink-mass-mentions-polymorphic -> origin/dev/rethink-mass-mentions-polymorphic  (forced update)
 * [new branch]          dev_no_preloaded_categories -> origin/dev_no_preloaded_categories
 * [new branch]          feature/paste-upload-on-first-upload-input-templates -> origin/feature/paste-upload-on-first-upload-input-templates
 * [new branch]          group_activity_posts_load_more -> origin/group_activity_posts_load_more
 * [new branch]          mobile-chat-redesign-header-updates -> origin/mobile-chat-redesign-header-updates
 * [new branch]          okay-proper-sm-fix   -> origin/okay-proper-sm-fix
 * [new branch]          pm-bubble-adjustment -> origin/pm-bubble-adjustment
   d7f7f79b6..69c095daf  stable               -> origin/stable
 * [new branch]          svg-ids              -> origin/svg-ids
   6ab1a19e9..d3625f228  tests-passed         -> origin/tests-passed
I, [2023-12-22T05:09:01.692449 #1]  INFO -- : 
I, [2023-12-22T05:09:01.692555 #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
'
Switched to a new branch 'tests-passed'
I, [2023-12-22T05:09:03.953576 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2023-12-22T05:09:03.953744 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2023-12-22T05:09:03.961776 #1]  INFO -- : 
I, [2023-12-22T05:09:03.961833 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-12-22T05:09:03.964586 #1]  INFO -- : 
I, [2023-12-22T05:09:03.964723 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-12-22T05:09:03.966979 #1]  INFO -- : 
I, [2023-12-22T05:09:03.967019 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-12-22T05:09:03.969109 #1]  INFO -- : 
I, [2023-12-22T05:09:03.969183 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-12-22T05:09:03.971238 #1]  INFO -- : 
I, [2023-12-22T05:09:03.971359 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-12-22T05:09:03.973173 #1]  INFO -- : 
I, [2023-12-22T05:09:03.973322 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-12-22T05:09:03.975472 #1]  INFO -- : 
I, [2023-12-22T05:09:03.975517 #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-22T05:09:03.978876 #1]  INFO -- : 
I, [2023-12-22T05:09:03.978969 #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-22T05:09:03.982494 #1]  INFO -- : 
I, [2023-12-22T05:09:03.982655 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-12-22T05:09:03.986479 #1]  INFO -- : 
I, [2023-12-22T05:09:03.986541 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-12-22T05:09:03.990088 #1]  INFO -- : 
I, [2023-12-22T05:09:03.990173 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-12-22T05:09:03.994222 #1]  INFO -- : 
I, [2023-12-22T05:09:03.994308 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-12-22T05:09:03.997951 #1]  INFO -- : 
I, [2023-12-22T05:09:03.998015 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-12-22T05:09:04.343687 #1]  INFO -- : 
I, [2023-12-22T05:09:04.343754 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-12-22T05:09:04.345501 #1]  INFO -- : 
I, [2023-12-22T05:09:04.345585 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-12-22T05:09:04.345981 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-12-22T05:09:05.467693 #1]  INFO -- : 
I, [2023-12-22T05:09:05.467867 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2023-12-22T05:09:06.107093 #1]  INFO -- : 
I, [2023-12-22T05:09:06.107478 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2023-12-22T05:09:06.760695 #1]  INFO -- : 
I, [2023-12-22T05:09:06.897384 #1]  INFO -- : 
Cloning into 'discourse-setup'...
I, [2023-12-22T05:09:07.012410 #1]  INFO -- : 
I, [2023-12-22T05:09:07.012665 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-12-22T05:09:07.015045 #1]  INFO -- : 
I, [2023-12-22T05:09:07.015152 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-12-22T05:09:07.016662 #1]  INFO -- : 
I, [2023-12-22T05:09:07.016728 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-12-22T05:09:07.018369 #1]  INFO -- : 
I, [2023-12-22T05:09:07.018500 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-12-22T05:09:07.022473 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-12-22T05:09:07.022686 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-12-22T05:09:07.022868 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-12-22T05:09:07.023045 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-12-22T05:09:07.023215 #1]  INFO -- : > echo "done configuring web"
I, [2023-12-22T05:09:07.024506 #1]  INFO -- : done configuring web

I, [2023-12-22T05:09:07.024713 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-12-22T05:09:07.169702 #1]  INFO -- : 
I, [2023-12-22T05:09:07.169855 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-12-22T05:09:08.273126 #1]  INFO -- : 
I, [2023-12-22T05:09:08.273460 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2023-12-22T05:09:08.275309 #1]  INFO -- : 
I, [2023-12-22T05:09:08.275360 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
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/node_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-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse > @ember/legacy-built-in-components@0.5.0" has incorrect peer dependency "ember-source@>= 4.8".
warning "workspace-aggregator-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-1f6f037a-c78a-4d1d-ab71-c37fae45074d > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2023-12-22T05:09:48.206439 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ 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] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ ./run-patch-package
patch-package 8.0.0
Applying patches...
babel-plugin-debug-macros@0.3.4 ✔
content-tag@1.2.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 ✔
Done in 36.46s.
Done in 36.94s.
yarn cache v1.22.19
success Cleared cache.
Done in 2.67s.

I, [2023-12-22T05:09:48.206835 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-12-22T05:09:48.330084 #1]  INFO -- : 
I, [2023-12-22T05:09:48.330188 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-12-22T05:09:48.456606 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

I, [2023-12-22T05:09:48.456818 #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.

current directory:
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/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.1/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--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.1/ext/dst/
--libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib
failed, please report to 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>'

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

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

extconf failed, exit code 1

Gem files will remain installed in
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1 for inspection.
Results logged to
/var/www/discourse/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.1/gem_make.out

  /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:125: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:193:in
`build_extension'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:227:in `block in
build_extensions'
  /usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in `each'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in
`build_extensions'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:852: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'

rbtrace (0.5.1) 설치 중 오류가 발생하여 Bundler를 계속할 수 없습니다.

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

I, [2023-12-22T05:09:50.952826 #1]  INFO -- : 비동기 프로세스 종료 중
I, [2023-12-22T05:09:50.952888 #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 pid: 42에 INT 전송
I, [2023-12-22T05:09:50.952921 #1]  INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111에 TERM 전송
2023-12-22 05:09:50.952 UTC [42] LOG:  빠른 종료 요청 수신
111:signal-handler (1703221790) SIGTERM 수신, 종료 예정...
111:M 22 Dec 2023 05:09:50.981 # 사용자가 종료를 요청했습니다...
111:M 22 Dec 2023 05:09:50.981 * 종료하기 전에 최종 RDB 스냅샷을 저장합니다.
2023-12-22 05:09:51.360 UTC [42] LOG:  활성 트랜잭션 중단 중
2023-12-22 05:09:51.361 UTC [42] LOG:  백그라운드 워커 "logical replication launcher" (PID 51)가 종료 코드 1로 종료됨
2023-12-22 05:09:51.362 UTC [46] LOG:  종료 중
111:M 22 Dec 2023 05:09:51.714 * DB가 디스크에 저장되었습니다
111:M 22 Dec 2023 05:09:51.714 # Redis가 이제 종료 준비가 되었습니다. 안녕...
2023-12-22 05:09:52.503 UTC [42] LOG:  데이터베이스 시스템이 종료되었습니다

오류는 다음과 같은 것 같습니다:

I, [2023-12-22T05:08:47.106408 #1]  INFO -- : 
I, [2023-12-22T05:08:47.106576 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-12-22 05:08:47.147 UTC [55] postgres@postgres ERROR:  데이터베이스 "discourse"가 이미 존재합니다
2023-12-22 05:08:47.147 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: 오류: 데이터베이스 생성 실패: ERROR:  데이터베이스 "discourse"가 이미 존재합니다
I, [2023-12-22T05:08:47.148162 #1]  INFO -- : 
I, [2023-12-22T05:08:47.148325 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-12-22 05:08:47.298 UTC [59] postgres@discourse ERROR:  역할 "discourse"가 이미 존재합니다
2023-12-22 05:08:47.298 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERROR:  역할 "discourse"가 이미 존재합니다

무엇을 놓치고 있는 걸까요?

PG12 업데이트에서도 비슷한 일이 있었던 것 같은데, 지금은 정확하지 않지만, 서버에 여러 컨테이너를 실행하고 있기 때문에 ./launcher stop app1/2/3 (서버의 다른 모든 앱)을 실행해야 업그레이드가 제대로 된 유일한 방법이었다고 기억합니다 - 하지만 지금은 확실하지 않습니다.

업그레이드 토픽에 게시한 것 같은데, 모든 답변이 자동 삭제되었습니다 - 관리자분께서 당시에도 그랬는지 확인해 주시려면 제 답변을 살펴봐 주실 수 있을까요? (다시 다른 모든 컨테이너를 중지해 보았지만, 안타깝게도 여전히 작동하지 않습니다).

아니요, 그것은 완전히 정상입니다!

여기가 실제 문제입니다:

이 동일한 문제에 대한 다른 주제에서:

고맙습니다. 그 부분을 확인했고, Discourse가 Docker를 통해 환경을 제어하므로 오래된 Docker 설치로 인해 문제가 발생하는 것이 이해가 잘 안 되었습니다. (Discourse가 업데이트를 시도하기 전에 Docker 버전을 확인하는 기능이 가능할까요?)

그래서 Docker를 업그레이드하면 해결될까요? 아니면 Jay가 했던 것처럼 새 서버로 이전하는 것이 더 나을까요? 사실 저는 사이트들을 새 서버로 이전할 계획이었지만, 보통 먼저 기존 서버에서 포럼 업데이트를 진행하곤 합니다..

그건 제이가 잘 알 거예요. 저도 그 결과가 어떻게 됐는지 확실하지 않으니까요.

@pfaffman님, 혹시 의견이 있으신가요?

혹은 Discourse 팀에서 이 문제를 가장 잘 접근하는 방법에 대해 의견을 주실 수 있을까요?

마지막으로 고친 건 깨진 인덱스 문제였어요.

새해 1일까지는 대부분 휴가 중입니다. 1일 이후에도 당장 여유 시간이 생길 것 같지는 않아요.

긴급한 상황이 있고 예산이 있다면 #marketplace에 게시하거나 저에게 직접 연락해 주세요.

제이, 고마워. 포럼은 정상 작동 중이야(./launcher start app로 실행 가능)니까 당장은 급하지 않아.

기억이 흐릿하지만 전에 인덱스가 깨진 적이 있었던 것 같아서 과거 스레드들을 다시 한번 살펴볼 거야 (물론 관련 오류 메시지로 인해 그 문제가 드러났던 걸로 기억해). 또한 @sam이 같은 문제가 다시 발생하지 않도록 검사 기능을 추가할 거라고 말했던 것 같아 (하지만 내가 잘못 기억하고 있을 수도 있어).

인덱스가 깨진 걸 어떻게 발견했어? 스키마를 다시 인덱싱해 보다가 발견한 건가?

Docker 버전, OS 버전, 커널 버전을 공유해 주실 수 있을까요?

이런 유형의 실패 사례가 꽤 많이 보고되고 있지만, 제 드롭렛에서는 재현하지 못했습니다.

Docker 버전은 20.10.3 빌드 48d30b5이며, 서버는 CentOS 7을 실행 중입니다. CentOS 7은 내년 6월까지 EOL(지원 종료)이 아니지만, 커널 버전(3.10.0-862.11.6.el7.x86_64)은 이 스레드에 따르면 확인(checks)을 통과하지 못하는 버전입니다. 다만 해당 스레드에서 언급된 대로 해당 체크를 주석 처리하면 이전에 문제없이 잘 작동했습니다(같은 서버의 다른 포럼에서 3.2.0.beta4-dev (cdbe0f74e8)까지도). 문제가 있는 이 포럼은 현재 3.1.0.beta2를 사용 중입니다(3.2.0.beta4-dev를 사용하는 다른 포럼들은 아직 업그레이드를 시도하지 않았습니다).

실제로 커널이 새로운 서버로 이동을 고려하는 이유 중 하나이기도 해서, 이 포럼을 현재 상태(3.1.0.beta2) 그대로 백업하여 새로운 Discourse 설치 환경에 복원해서 작동하는지 확인해 볼까요? 그리고 만약 도움이 된다면, 다시旧的 서버로 돌아가 Docker나 커널을 업그레이드하여 그때 업그레이드가 성공하는지 확인해 보는 것도 좋을까요?

수정:

한 가지 발견한 점은 admin/upgrade 패널에 접속했을 때 버전 새로고침에 매우 오랜 시간이 걸렸고, docker 업그레이드를 클릭하려 했을 때 하얀 화면만 표시되었다는 것입니다(그때 ./launcher rebuild를 시도했습니다).

이 서버에 또 다른 오래된 discourse 포럼이 있는데, 여기서도 같은 일이 일어나고 있습니다. 이 스크린샷이 도움이 될 수 있을 것 같습니다 - 일부 docker 파일을 찾지 못하고 있습니다:

수정 2:

같은 서버의 더 최신 버전 포럼에서 동일한 작업(/upgrade > upgrade docker)을 수행할 때 같은 에러가 발생하지 않습니다 (브라우저 개발자 도구의 sources 탭에서 Failed to register Service Worker: TypeError: NetworkError: Load failed만 표시됩니다).

그래서 제가 추측하기로는 오래된 버전이기 때문인 것 같습니다(하지만 보통 오래된 버전이라면 최신 릴리스에 도달할 때까지 다음 최신 버전으로 순서대로 업그레이드하는 줄 알았거든요 : /)

아, 알겠습니다. 최신 LTS Ubuntu나 더 최신 환경에서 이를 재현할 수 있다면 알려주세요.

포럼을 다른 서버로 가져오기를 통해 성공적으로 이전했기 때문에, 원하시면 기존 서버의 커널을 업그레이드하고 나중에 다시 빌드를 시도해 볼 수 있습니다. 하지만 저는 그것이 문제가 아니라고 생각하며, 문제는 여러 컨테이너와 관련이 있는 것 같습니다. 두 컨테이너는 정기적으로 업데이트되었지만, 나머지 두 컨테이너는 업데이트되지 않았는데(빌드 재시도 실패는 업데이트되지 않은 두 개의 오래된 컨테이너에서 발생했기 때문입니다).

어떤 오류였나요? 아마 전체 로그를 공유해야 할 것입니다.

UX에서 업그레이드를 하는 것 대신 재구축을 해야 합니다.

전체 출력full output을 말씀하시는 건가요, 아니면 로그 파일의 내용을 말씀하시는 건가요? (그렇다면 어떤 로그 파일인가요?)

새 서버에서 컨테이너를 구축할 수 있었나요?

새로운 Discourse를 설치한 후, 제이(Jay)의 백업을 가져왔습니다(보통 이렇게 Discourse 포럼을 새 서버로 이전합니다).

그러니까 새 서버를 사용하라는 거예요?

네, 그렇게 했습니다 - 퇴역시키기 전에 DC 팀이 이런 일이 왜 발생했는지 조사하고 싶어할 경우를 대비해, @Falco가 구 서버에서 어떤 테스트를 수행하길 원하는지 궁금해서요.

그 서버는 매우 오래된 커널 버전을 실행하고 있으므로 유지할 필요는 없지만, 제안을 해주셔서 감사합니다!