Discourse v2.8.13 升级到 v2.8.14 失败

你好,
我正在预生产环境中测试升级到 Discourse 版本 2.8.14。

但是 rebuild 命令总是失败。

./launcher rebuild app

x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
2.0.20221221-0050: Pulling from discourse/base
Digest: sha256:7ac6489e34a0f40f32457bffaa331940a98447b46451a6a1279a79868ee5420b
Status: Image is up to date for discourse/base:2.0.20221221-0050
docker.io/discourse/base:2.0.20221221-0050
/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-01-18T11:18:11.920439 #1]  INFO -- : Reading from stdin
I, [2023-01-18T11:18:11.929809 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2023-01-18T11:18:11.935298 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2023-01-18T11:18:11.939278 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2023-01-18T11:18:11.939444 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.939960 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.941140 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-01-18T11:18:11.943098 #1]  INFO -- :
I, [2023-01-18T11:18:11.943358 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.943761 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.944922 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.945895 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.946656 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-01-18T11:18:11.947614 #1]  INFO -- : > echo redis installed
I, [2023-01-18T11:18:11.950991 #1]  INFO -- : redis installed

I, [2023-01-18T11:18:11.951195 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-01-18T11:18:11.954969 #1]  INFO -- : logfile ""

I, [2023-01-18T11:18:11.955086 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-18T11:18:11.956391 #1]  INFO -- : > sleep 10
18:C 18 Jan 2023 11:18:11.961 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:C 18 Jan 2023 11:18:11.961 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=18, just started
18:C 18 Jan 2023 11:18:11.961 # Configuration loaded
18:M 18 Jan 2023 11:18:11.961 * monotonic clock: POSIX clock_gettime
18:M 18 Jan 2023 11:18:11.962 * Running mode=standalone, port=6379.
18:M 18 Jan 2023 11:18:11.962 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
18:M 18 Jan 2023 11:18:11.962 # Server initialized
18:M 18 Jan 2023 11:18:11.962 # 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.
18:M 18 Jan 2023 11:18:11.962 * Loading RDB produced by version 7.0.7
18:M 18 Jan 2023 11:18:11.962 * RDB age 103 seconds
18:M 18 Jan 2023 11:18:11.962 * RDB memory usage when created 3.91 Mb
18:M 18 Jan 2023 11:18:11.969 * Done loading RDB, keys loaded: 1308, keys expired: 0.
18:M 18 Jan 2023 11:18:11.969 * DB loaded from disk: 0.007 seconds
18:M 18 Jan 2023 11:18:11.969 * Ready to accept connections
I, [2023-01-18T11:18:21.958625 #1]  INFO -- :
I, [2023-01-18T11:18:21.958993 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-01-18T11:18:21.963915 #1]  INFO -- : thpoff is installed!

I, [2023-01-18T11:18:21.964068 #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-01-18T11:18:22.027891 #1]  INFO -- :
I, [2023-01-18T11:18:22.028141 #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-01-18T11:18:22.114503 #1]  INFO -- :
I, [2023-01-18T11:18:22.114714 #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-01-18T11:18:22.176337 #1]  INFO -- :
I, [2023-01-18T11:18:22.176805 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-01-18T11:18:22.180033 #1]  INFO -- :
I, [2023-01-18T11:18:22.183187 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2023-01-18T11:18:22.187920 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2023-01-18T11:18:22.193369 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2023-01-18T11:18:22.201334 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2023-01-18T11:18:22.205651 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2023-01-18T11:18:22.211288 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2023-01-18T11:18:22.211394 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-18T11:18:22.213123 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
45:C 18 Jan 2023 11:18:22.217 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
45:C 18 Jan 2023 11:18:22.217 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=45, just started
45:C 18 Jan 2023 11:18:22.217 # Configuration loaded
45:M 18 Jan 2023 11:18:22.218 * monotonic clock: POSIX clock_gettime
45:M 18 Jan 2023 11:18:22.218 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
45:M 18 Jan 2023 11:18:22.218 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (32637/32637), done.
I, [2023-01-18T11:18:24.148050 #1]  INFO -- : HEAD is now at e775ed1c DEV: Properly include spec examples (#19532)

I, [2023-01-18T11:18:24.148211 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2023-01-18T11:18:24.247576 #1]  INFO -- :
I, [2023-01-18T11:18:24.247954 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2023-01-18T11:18:24.253033 #1]  INFO -- :
I, [2023-01-18T11:18:24.253276 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin df6d323bd187746e254538c81ed29181efc2abe3
I, [2023-01-18T11:18:24.257952 #1]  INFO -- :
I, [2023-01-18T11:18:24.258065 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin df6d323bd187746e254538c81ed29181efc2abe3
From https://github.com/discourse/discourse
 * branch              df6d323bd187746e254538c81ed29181efc2abe3 -> FETCH_HEAD
I, [2023-01-18T11:18:28.596388 #1]  INFO -- :
I, [2023-01-18T11:18:28.596526 #1]  INFO -- : > cd /var/www/discourse && git checkout df6d323bd187746e254538c81ed29181efc2abe3
Note: switching to 'df6d323bd187746e254538c81ed29181efc2abe3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at df6d323b Version bump to v2.8.14 (#19755)
I, [2023-01-18T11:18:29.324667 #1]  INFO -- :
I, [2023-01-18T11:18:29.324810 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-01-18T11:18:29.329146 #1]  INFO -- :
I, [2023-01-18T11:18:29.329240 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-01-18T11:18:29.331975 #1]  INFO -- :
I, [2023-01-18T11:18:29.332054 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-01-18T11:18:29.334617 #1]  INFO -- :
I, [2023-01-18T11:18:29.334694 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-01-18T11:18:29.337361 #1]  INFO -- :
I, [2023-01-18T11:18:29.337437 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-01-18T11:18:29.339653 #1]  INFO -- :
I, [2023-01-18T11:18:29.339743 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-01-18T11:18:29.342106 #1]  INFO -- :
I, [2023-01-18T11:18:29.342186 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-01-18T11:18:29.345650 #1]  INFO -- :
I, [2023-01-18T11:18:29.345730 #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-01-18T11:18:29.349292 #1]  INFO -- :
I, [2023-01-18T11:18:29.349372 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-01-18T11:18:29.352971 #1]  INFO -- :
I, [2023-01-18T11:18:29.353049 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-01-18T11:18:29.358592 #1]  INFO -- :
I, [2023-01-18T11:18:29.358652 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-01-18T11:18:29.363552 #1]  INFO -- :
I, [2023-01-18T11:18:29.363646 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-01-18T11:18:29.366699 #1]  INFO -- :
I, [2023-01-18T11:18:29.366777 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-01-18T11:18:33.708398 #1]  INFO -- :
I, [2023-01-18T11:18:33.708756 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-01-18T11:18:33.715004 #1]  INFO -- :
I, [2023-01-18T11:18:33.715422 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-01-18T11:18:33.716174 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-01-18T11:18:33.719419 #1]  INFO -- :
I, [2023-01-18T11:18:33.719666 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-01-18T11:18:33.722278 #1]  INFO -- :
I, [2023-01-18T11:18:33.722514 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-01-18T11:18:33.727597 #1]  INFO -- :
I, [2023-01-18T11:18:33.728065 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-01-18T11:18:33.728726 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-01-18T11:18:33.729351 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-01-18T11:18:33.730009 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-01-18T11:18:33.730628 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-01-18T11:18:33.731145 #1]  INFO -- : > echo "done configuring web"
I, [2023-01-18T11:18:33.733596 #1]  INFO -- : done configuring web

I, [2023-01-18T11:18:33.734116 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-01-18T11:18:34.406959 #1]  INFO -- : Successfully installed bundler-2.3.22
1 gem installed

I, [2023-01-18T11:18:34.407093 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-01-18T11:18:55.018256 #1]  INFO -- :
I, [2023-01-18T11:18:55.018583 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'
warning Resolution field "lodash@4.17.21" is incompatible with requested version "lodash@4.17.15"
warning " > @mixer/parallel-prettier@2.0.1" has unmet peer dependency "prettier@^2.0.0".
I, [2023-01-18T11:19:28.037591 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ yarn --cwd app/assets/javascripts/discourse
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 17.10s.
Done in 30.36s.
yarn cache v1.22.19
success Cleared cache.
Done in 2.33s.

我的更新中出现了错误

```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

请帮我修复它。.
1: msgpack (1.4.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/msgpack-1.4.2.gemspec
使用 r2 0.2.7
1: r2 (0.2.7) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/r2-0.2.7.gemspec
使用 raindrops 0.20.0
1: raindrops (0.20.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/raindrops-0.20.0.gemspec
使用 rchardet 1.8.0
1: rchardet (1.8.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rchardet-1.8.0.gemspec
使用 rexml 3.2.5
1: rexml (3.2.5) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rexml-3.2.5.gemspec
使用 rinku 2.0.6
1: rinku (2.0.6) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rinku-2.0.6.gemspec
获取 rotp 6.2.0
安装 rotp 6.2.0
1: rotp (6.2.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rotp-6.2.0.gemspec
使用 rqrcode_core 1.2.0
1: rqrcode_core (1.2.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rqrcode_core-1.2.0.gemspec
获取 rtlit 0.0.5
安装 rtlit 0.0.5
1: rtlit (0.0.5) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rtlit-0.0.5.gemspec
使用 rubyzip 2.3.2
1: rubyzip (2.3.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rubyzip-2.3.2.gemspec
获取 tilt 2.0.10
安装 tilt 2.0.10
1: tilt (2.0.10) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/tilt-2.0.10.gemspec
使用 sshkey 2.0.0
1: sshkey (2.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sshkey-2.0.0.gemspec
获取 stackprof 0.2.17
0: cppjieba_rb (0.3.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/cppjieba_rb-0.3.3.gemspec
获取 unf_ext 0.0.8
安装 stackprof 0.2.17(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
安装 unf_ext 0.0.8(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
0: unf_ext (0.0.8) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/unf_ext-0.0.8.gemspec
获取 xorcist 1.1.2
安装 xorcist 1.1.2(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
1: stackprof (0.2.17) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/stackprof-0.2.17.gemspec
获取 nokogiri 1.13.4 (x86_64-linux)
安装 nokogiri 1.13.4 (x86_64-linux)
0: xorcist (1.1.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/xorcist-1.1.2.gemspec
使用 mail 2.8.0.edge,来自 https://github.com/discourse/mail.git(位于 main@5b700fc)
0: mail (2.8.0.edge) from /var/www/discourse/vendor/bundle/ruby/3.1.0/bundler/gems/mail-5b700fc95ee6/mail.gemspec
获取 aws-sigv4 1.4.0
安装 aws-sigv4 1.4.0
0: aws-sigv4 (1.4.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/aws-sigv4-1.4.0.gemspec
获取 addressable 2.8.0
安装 addressable 2.8.0
0: addressable (2.8.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/addressable-2.8.0.gemspec
获取 i18n 1.8.11
1: nokogiri (1.13.4) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/nokogiri-1.13.4-x86_64-linux.gemspec
获取 tzinfo 2.0.4
安装 i18n 1.8.11
0: i18n (1.8.11) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/i18n-1.8.11.gemspec
使用 uglifier 4.2.0
0: uglifier (4.2.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/uglifier-4.2.0.gemspec
使用 rack-test 2.0.2
0: rack-test (2.0.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rack-test-2.0.2.gemspec
使用 sprockets 3.7.2
0: sprockets (3.7.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sprockets-3.7.2.gemspec
获取 request_store 1.5.0
安装 tzinfo 2.0.4
1: tzinfo (2.0.4) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/tzinfo-2.0.4.gemspec
获取 message_bus 4.0.0
安装 request_store 1.5.0
0: request_store (1.5.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/request_store-1.5.0.gemspec
获取 rack-mini-profiler 2.3.3
安装 message_bus 4.0.0
1: message_bus (4.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/message_bus-4.0.0.gemspec
获取 rack-protection 2.1.0
安装 rack-mini-profiler 2.3.3
安装 rack-protection 2.1.0
0: rack-mini-profiler (2.3.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rack-mini-profiler-2.3.3.gemspec
获取 openssl 2.2.1
1: rack-protection (2.1.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rack-protection-2.1.0.gemspec
获取 pry 0.13.1
安装 openssl 2.2.1(带原生扩展)
安装 pry 0.13.1
正在构建原生扩展。这可能需要一些时间…
1: pry (0.13.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/pry-0.13.1.gemspec
获取 barber 0.12.2
安装 barber 0.12.2
1: barber (0.12.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/barber-0.12.2.gemspec
获取 ember-data-source 3.0.2
安装 ember-data-source 3.0.2
1: ember-data-source (3.0.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/ember-data-source-3.0.2.gemspec
使用 ecma-re-validator 0.4.0
1: ecma-re-validator (0.4.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/ecma-re-validator-0.4.0.gemspec
获取 faraday-multipart 1.0.3
安装 faraday-multipart 1.0.3
1: faraday-multipart (1.0.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/faraday-multipart-1.0.3.gemspec
使用 mini_suffix 0.3.3
1: mini_suffix (0.3.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/mini_suffix-0.3.3.gemspec
使用 sassc 2.0.1
1: sassc (2.0.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sassc-2.0.1.gemspec
获取 omniauth 1.9.1
安装 omniauth 1.9.1
1: omniauth (1.9.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-1.9.1.gemspec
获取 image_optim 0.31.1
安装 image_optim 0.31.1
Rails 图像资产优化已提取至 image_optim_rails gem
如果您不打算使用该 gem,可以安全地移除 config.assets.image_optim = false
1: image_optim (0.31.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/image_optim-0.31.1.gemspec
获取 mini_racer 0.6.1
安装 mini_racer 0.6.1(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
2: pg (1.2.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/pg-1.2.3.gemspec
使用 logstash-logger 0.26.1
2: logstash-logger (0.26.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/logstash-logger-0.26.1.gemspec
使用 webpush 1.1.0
2: webpush (1.1.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/webpush-1.1.0.gemspec
获取 sidekiq 6.3.1
安装 sidekiq 6.3.1
2: sidekiq (6.3.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sidekiq-6.3.1.gemspec
获取 redis-namespace 1.8.1
安装 redis-namespace 1.8.1
2: redis-namespace (1.8.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/redis-namespace-1.8.1.gemspec
获取 net-http 0.2.2
安装 net-http 0.2.2
2: net-http (0.2.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/net-http-0.2.2.gemspec
获取 puma 5.5.2
安装 puma 5.5.2(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
1: mini_racer (0.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/mini_racer-0.6.1.gemspec
获取 bootsnap 1.9.4
安装 bootsnap 1.9.4(带原生扩展)
正在构建原生扩展。这可能需要一些时间…
1: bootsnap (1.9.4) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/bootsnap-1.9.4.gemspec
使用 rbtrace 0.4.14
1: rbtrace (0.4.14) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rbtrace-0.4.14.gemspec
使用 unicorn 6.1.0
1: unicorn (6.1.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/unicorn-6.1.0.gemspec
使用 rss 0.2.9
1: rss (0.2.9) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rss-0.2.9.gemspec
获取 rqrcode 2.1.0
安装 rqrcode 2.1.0
1: rqrcode (2.1.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rqrcode-2.1.0.gemspec
使用 unf 0.1.4
1: unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/unf-0.1.4.gemspec
获取 aws-sdk-core 3.121.2
安装 aws-sdk-core 3.121.2
1: aws-sdk-core (3.121.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/aws-sdk-core-3.121.2.gemspec
获取 css_parser 1.11.0
安装 css_parser 1.11.0
1: css_parser (1.11.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/css_parser-1.11.0.gemspec
获取 loofah 2.13.0
安装 loofah 2.13.0
1: loofah (2.13.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/loofah-2.13.0.gemspec
使用 ruby-readability 0.7.0
1: ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/ruby-readability-0.7.0.gemspec
使用 sanitize 6.0.0
1: sanitize (6.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sanitize-6.0.0.gemspec
获取 activesupport 6.1.6.1
安装 activesupport 6.1.6.1
1: activesupport (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/activesupport-6.1.6.1.gemspec
获取 pry-byebug 3.9.0
安装 pry-byebug 3.9.0
1: pry-byebug (3.9.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/pry-byebug-3.9.0.gemspec
使用 pry-rails 0.3.9
1: pry-rails (0.3.9) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/pry-rails-0.3.9.gemspec
获取 ember-handlebars-template 0.8.0
安装 ember-handlebars-template 0.8.0
1: ember-handlebars-template (0.8.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/ember-handlebars-template-0.8.0.gemspec
获取 json_schemer 0.2.18
安装 json_schemer 0.2.18
1: json_schemer (0.2.18) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/json_schemer-0.2.18.gemspec
获取 faraday 1.9.3
安装 faraday 1.9.3
1: faraday (1.9.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/faraday-1.9.3.gemspec
使用 omniauth-oauth 1.2.0
1: omniauth-oauth (1.2.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-oauth-1.2.0.gemspec
获取 mini_scheduler 0.13.0
安装 mini_scheduler 0.13.0
1: mini_scheduler (0.13.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/mini_scheduler-0.13.0.gemspec
获取 aws-sdk-kms 1.44.0
安装 aws-sdk-kms 1.44.0
1: aws-sdk-kms (1.44.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/aws-sdk-kms-1.44.0.gemspec
获取 aws-sdk-sns 1.46.0
安装 aws-sdk-sns 1.46.0
1: aws-sdk-sns (1.46.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/aws-sdk-sns-1.46.0.gemspec
获取 rails-html-sanitizer 1.4.3
安装 rails-html-sanitizer 1.4.3
1: rails-html-sanitizer (1.4.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rails-html-sanitizer-1.4.3.gemspec
使用 rails-dom-testing 2.0.3
1: rails-dom-testing (2.0.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rails-dom-testing-2.0.3.gemspec
使用 globalid 1.0.0
1: globalid (1.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/globalid-1.0.0.gemspec
获取 activemodel 6.1.6.1
安装 activemodel 6.1.6.1
1: activemodel (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/activemodel-6.1.6.1.gemspec
获取 oauth2 1.4.7
安装 oauth2 1.4.7
1: oauth2 (1.4.7) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/oauth2-1.4.7.gemspec
使用 omniauth-twitter 1.4.0
1: omniauth-twitter (1.4.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-twitter-1.4.0.gemspec
获取 aws-sdk-s3 1.96.1
安装 aws-sdk-s3 1.96.1
1: aws-sdk-s3 (1.96.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/aws-sdk-s3-1.96.1.gemspec
获取 actionview 6.1.6.1
安装 actionview 6.1.6.1
1: actionview (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/actionview-6.1.6.1.gemspec
获取 activejob 6.1.6.1
安装 activejob 6.1.6.1
1: activejob (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/activejob-6.1.6.1.gemspec
使用 active_model_serializers 0.8.4
1: active_model_serializers (0.8.4) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/active_model_serializers-0.8.4.gemspec
获取 activerecord 6.1.6.1
安装 activerecord 6.1.6.1
1: activerecord (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/activerecord-6.1.6.1.gemspec
获取 omniauth-oauth2 1.7.2
安装 omniauth-oauth2 1.7.2
1: omniauth-oauth2 (1.7.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-oauth2-1.7.2.gemspec
获取 actionpack 6.1.6.1
安装 actionpack 6.1.6.1
1: actionpack (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/actionpack-6.1.6.1.gemspec
使用 actionview_precompiler 0.2.3
1: actionview_precompiler (0.2.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/actionview_precompiler-0.2.3.gemspec
获取 seed-fu 2.3.9
安装 seed-fu 2.3.9
1: seed-fu (2.3.9) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/seed-fu-2.3.9.gemspec
使用 omniauth-facebook 9.0.0
1: omniauth-facebook (9.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-facebook-9.0.0.gemspec
使用 omniauth-github 1.4.0
1: omniauth-github (1.4.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-github-1.4.0.gemspec
使用 omniauth-google-oauth2 0.8.2
1: omniauth-google-oauth2 (0.8.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/omniauth-google-oauth2-0.8.2.gemspec
获取 actionmailer 6.1.6.1
安装 actionmailer 6.1.6.1
1: actionmailer (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/actionmailer-6.1.6.1.gemspec
获取 railties 6.1.6.1
安装 railties 6.1.6.1
1: railties (6.1.6.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/railties-6.1.6.1.gemspec
使用 sprockets-rails 3.4.2
1: sprockets-rails (3.4.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sprockets-rails-3.4.2.gemspec
获取 jquery-rails 4.4.0
安装 jquery-rails 4.4.0
2: puma (5.5.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/puma-5.5.2.gemspec
获取 lograge 0.11.2
1: jquery-rails (4.4.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/jquery-rails-4.4.0.gemspec
获取 rails_failover 0.7.3
安装 lograge 0.11.2
安装 rails_failover 0.7.3
2: lograge (0.11.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/lograge-0.11.2.gemspec
获取 rails_multisite 4.0.0
1: rails_failover (0.7.3) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rails_failover-0.7.3.gemspec
使用 sassc-rails 2.1.2
1: sassc-rails (2.1.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/sassc-rails-2.1.2.gemspec
获取 discourse-ember-rails 0.18.6
安装 rails_multisite 4.0.0
安装 discourse-ember-rails 0.18.6
2: rails_multisite (4.0.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/rails_multisite-4.0.0.gemspec
1: discourse-ember-rails (0.18.6) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/discourse-ember-rails-0.18.6.gemspec
3: oj (3.13.2) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/oj-3.13.2.gemspec
0: openssl (2.2.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/openssl-2.2.1.gemspec
获取 openssl-signature_algorithm 1.1.1
安装 openssl-signature_algorithm 1.1.1
2: openssl-signature_algorithm (1.1.1) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/openssl-signature_algorithm-1.1.1.gemspec
获取 cose 1.2.0
安装 cose 1.2.0
1: cose (1.2.0) from /var/www/discourse/vendor/bundle/ruby/3.1.0/specifications/cose-1.2.0.gemspec
Bundle 完成!128 个 Gemfile 依赖项,178 个 gem 现已安装。
未安装 ‘test’ 和 ‘development’ 组中的 gem。
Bundled gem 安装至 ./vendor/bundle
来自 image_optim 的安装后消息:
Rails 图像资产优化已提取至 image_optim_rails gem
如果您不打算使用该 gem,可以安全地移除 config.assets.image_optim = false

I, [2023-01-18T11:20:08.795503 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all’
I, [2023-01-18T11:20:10.866531 #1] INFO – :
I, [2023-01-18T11:20:10.866729 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
rake 中止!
LoadError: 无法加载此类文件 – net/pop
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:93:in register' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /var/www/discourse/lib/validators/pop3_polling_enabled_setting_validator.rb:3:in
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:88:in register' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:424:in block in require_or_load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:39:in block in load_interlock' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:14:in block in loading’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/share_lock.rb:151:in exclusive' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:13:in loading’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:39:in load_interlock' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:402:in require_or_load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:558:in load_missing_constant' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:213:in const_missing’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:274:in const_get' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:274:in constantize’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/string/inflections.rb:74:in constantize' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/object/try.rb:15:in public_send’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/object/try.rb:15:in try' /var/www/discourse/lib/site_settings/type_supervisor.rb:114:in load_setting’
/var/www/discourse/lib/site_setting_extension.rb:170:in block in setting' /var/www/discourse/lib/site_setting_extension.rb:127:in synchronize’
/var/www/discourse/lib/site_setting_extension.rb:127:in setting' /var/www/discourse/app/models/site_setting.rb:12:in block in load_settings’
/var/www/discourse/lib/site_settings/yaml_loader.rb:22:in block (2 levels) in load' /var/www/discourse/lib/site_settings/yaml_loader.rb:13:in each’
/var/www/discourse/lib/site_settings/yaml_loader.rb:13:in block in load' /var/www/discourse/lib/site_settings/yaml_loader.rb:12:in each_key’
/var/www/discourse/lib/site_settings/yaml_loader.rb:12:in load' /var/www/discourse/app/models/site_setting.rb:11:in load_settings’
/var/www/discourse/app/models/site_setting.rb:16:in <class:SiteSetting>' /var/www/discourse/app/models/site_setting.rb:3:in
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:88:in register' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:424:in block in require_or_load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:39:in block in load_interlock' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:14:in block in loading’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/share_lock.rb:151:in exclusive' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:13:in loading’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:39:in load_interlock' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:402:in require_or_load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:558:in load_missing_constant' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:213:in const_missing’
/var/www/discourse/config/initializers/004-message_bus.rb:122:in <main>' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in load' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:326:in block in load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:326:in load’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/engine.rb:681:in block in load_config_initializer' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:205:in instrument’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/engine.rb:680:in load_config_initializer' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/engine.rb:634:in block (2 levels) in class:Engine
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/engine.rb:633:in each' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/engine.rb:633:in block in class:Engine
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in instance_exec' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in run’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in block in run_initializers' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:50:in each’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:50:in tsort_each_child' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in run_initializers’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/application.rb:391:in initialize!' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in public_send’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in method_missing' /var/www/discourse/config/environment.rb:7:in
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:88:in register' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in require’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/application.rb:367:in require_environment!’
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6.1/lib/rails/application.rb:533:in block in run_tasks_blocks' /var/www/discourse/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>’
/usr/local/bin/bundle:25:in load' /usr/local/bin/bundle:25:in
Tasks: TOP => db:migrate => db:load_config => environment
(运行任务时添加 --trace 以查看完整跟踪)
I, [2023-01-18T11:20:12.608443 #1] INFO – :
I, [2023-01-18T11:20:12.608716 #1] INFO – : 终止异步进程
I, [2023-01-18T11:20:12.608751 #1] INFO – : 向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf 发送 TERM,pid: 18
18:signal-handler (1674040812) 收到 SIGTERM,计划关闭…
18:M 18 Jan 2023 11:20:12.679 # 用户请求关闭…
18:M 18 Jan 2023 11:20:12.679 * 退出前保存最终的 RDB 快照。
18:M 18 Jan 2023 11:20:12.699 * 数据库已保存到磁盘
18:M 18 Jan 2023 11:20:12.699 # Redis 现已准备退出,再见…

失败

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ 失败,返回 #<Process::Status: pid 1708 exit 1>
失败位置:/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn’
exec 失败,参数为 {“cd”=>“$home”, “hook”=>“db_migrate”, “cmd”=>[“su discourse -c ‘bundle exec rake db:migrate’”]}
bootstrap 失败,退出代码 1
** 引导失败 ** 请向上滚动并查找更早的错误消息,可能不止一个。
./discourse-doctor 可能有助于诊断问题。
59c311db4c225fcfa1107d6c9ec0baef05d68d5f07bee3bb0257b3be2c06c688

我起初以为是 Redis 的问题,但根据本论坛其他主题中的信息,这条错误消息似乎总是会出现。

45:M 18 Jan 2023 11:18:22.218 # 警告:无法创建服务器 TCP 监听套接字 *:6379:bind:地址已在使用中
45:M 18 Jan 2023 11:18:22.218 # 在端口 6379 (TCP) 上监听失败,正在中止。

所以我看到的唯一其他错误是:

I, [2023-01-18T11:20:10.866729 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
rake 中止!
LoadError: 无法加载此类文件 – net/pop

我尝试从 app.yml 文件中移除所有插件,但错误仍然相同。

如果您能就其他可能出错的地方提供任何提示,我将不胜感激。

谢谢,
Jan

您不能使用旧的、不受支持的(< 3.0)稳定版本,因为它们不支持 Ruby 3.1。

如果您确实想这样做,则需要将 discourse_docker 固定到提交 1de36f6,但这风险自负。

谢谢。这解决了我的问题。