升级到 2.7.0.beta8

按照网站的建议,我开始通过命令行进行升级。然而,升级失败了,从输出结果中我看不出哪里出了问题。我遗漏了什么?

vagrant@ubuntu-bionic:/var/discourse$ git remote -v
origin	https://github.com/discourse/discourse_docker.git (fetch)
origin	https://github.com/discourse/discourse_docker.git (push)
vagrant@ubuntu-bionic:/var/discourse$ git log
commit faa7b961bbd3f7426927a8188770e190c4d2e77a (HEAD -> master, origin/master, origin/HEAD)
Author: Penar Musaraj <pmusaraj@gmail.com>
Date:   Tue Apr 27 14:32:58 2021 -0400

    Bump base image (#538)
[...]
vagrant@ubuntu-bionic:/var/discourse$ ./launcher rebuild discourse
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 60 discourse
discourse
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
Already up to date.
Note: checking out 'v1.0.3'.

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 performing another checkout.

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

  git checkout -b <new-branch-name>

HEAD is now at d1db030 cut a new version
I, [2021-05-05T09:27:15.322661 #1]  INFO -- : Loading --stdin
I, [2021-05-05T09:27:15.328861 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-05-05T09:27:15.376986 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2021-05-05T09:27:15.377197 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2021-05-05T09:27:15.382972 #1]  INFO -- : 
I, [2021-05-05T09:27:15.383698 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-05-05T09:27:15.387281 #1]  INFO -- : 
I, [2021-05-05T09:27:15.387483 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2021-05-05T09:27:15.390636 #1]  INFO -- : 
I, [2021-05-05T09:27:15.390825 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2021-05-05T09:27:15.393607 #1]  INFO -- : 
I, [2021-05-05T09:27:15.393806 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-05-05T09:27:15.398015 #1]  INFO -- : 
I, [2021-05-05T09:27:15.398250 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/05/05 09:27:15 socat[28] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-05-05T09:27:15.409268 #1]  INFO -- : 
I, [2021-05-05T09:27:15.409441 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-05-05T09:27:15.412970 #1]  INFO -- : 
I, [2021-05-05T09:27:15.413079 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-05-05T09:27:15.415978 #1]  INFO -- : 
I, [2021-05-05T09:27:15.416097 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-05-05T09:27:15.418635 #1]  INFO -- : 
I, [2021-05-05T09:27:15.418892 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-05-05T09:27:15.421441 #1]  INFO -- : 
I, [2021-05-05T09:27:15.427205 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2021-05-05T09:27:15.431831 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2021-05-05T09:27:15.436501 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2021-05-05T09:27:15.441744 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2021-05-05T09:27:15.441980 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-05-05T09:27:16.062372 #1]  INFO -- : 
I, [2021-05-05T09:27:16.062541 #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, [2021-05-05T09:27:16.065792 #1]  INFO -- : 
I, [2021-05-05T09:27:16.065856 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-05-05T09:27:16.084682 #1]  INFO -- : 
I, [2021-05-05T09:27:16.084855 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-05-05T09:27:16.086822 #1]  INFO -- : 
I, [2021-05-05T09:27:16.086995 #1]  INFO -- : > /root/upgrade_postgres
I, [2021-05-05T09:27:16.093081 #1]  INFO -- : 
I, [2021-05-05T09:27:16.093275 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2021-05-05T09:27:16.096348 #1]  INFO -- : 
I, [2021-05-05T09:27:16.097894 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.098434 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.098725 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.099015 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.099298 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.099575 #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, [2021-05-05T09:27:16.099827 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-05-05T09:27:16.104204 #1]  INFO -- : 
I, [2021-05-05T09:27:16.104504 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.104798 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-05-05T09:27:16.105097 #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, [2021-05-05T09:27:16.105627 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-05-05T09:27:16.105898 #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, [2021-05-05T09:27:16.106322 #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, [2021-05-05T09:27:16.108258 #1]  INFO -- : > sleep 5
2021-05-05 09:27:16.172 UTC [51] LOG:  starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-05-05 09:27:16.173 UTC [51] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-05-05 09:27:16.173 UTC [51] LOG:  listening on IPv6 address "::", port 5432
2021-05-05 09:27:16.174 UTC [51] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-05-05 09:27:16.177 UTC [54] LOG:  database system was shut down at 2021-05-05 09:27:08 UTC
2021-05-05 09:27:16.182 UTC [51] LOG:  database system is ready to accept connections
I, [2021-05-05T09:27:21.111566 #1]  INFO -- : 
I, [2021-05-05T09:27:21.112084 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2021-05-05 09:27:21.185 UTC [64] postgres@postgres ERROR:  database "discourse" already exists
2021-05-05 09:27:21.185 UTC [64] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2021-05-05T09:27:21.187474 #1]  INFO -- : 
I, [2021-05-05T09:27:21.187773 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-05-05 09:27:21.246 UTC [75] postgres@discourse ERROR:  role "discourse" already exists
2021-05-05 09:27:21.246 UTC [75] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2021-05-05T09:27:21.248052 #1]  INFO -- : 
I, [2021-05-05T09:27:21.248402 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-05-05T09:27:21.296635 #1]  INFO -- : GRANT

I, [2021-05-05T09:27:21.296961 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-05-05T09:27:21.345782 #1]  INFO -- : ALTER SCHEMA

I, [2021-05-05T09:27:21.346034 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-05-05T09:27:21.403805 #1]  INFO -- : CREATE EXTENSION

I, [2021-05-05T09:27:21.404157 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-05-05T09:27:21.455272 #1]  INFO -- : CREATE EXTENSION

I, [2021-05-05T09:27:21.455541 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-05-05T09:27:21.504750 #1]  INFO -- : CREATE EXTENSION

I, [2021-05-05T09:27:21.504997 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-05-05T09:27:21.553251 #1]  INFO -- : CREATE EXTENSION

I, [2021-05-05T09:27:21.553531 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2021-05-05T09:27:21.555529 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2021-05-05T09:27:21.621568 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2021-05-05T09:27:21.624854 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2021-05-05T09:27:21.624982 #1]  INFO -- : > echo postgres installed!
I, [2021-05-05T09:27:21.626817 #1]  INFO -- : postgres installed!

I, [2021-05-05T09:27:21.631252 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2021-05-05T09:27:21.635453 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2021-05-05T09:27:21.639963 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2021-05-05T09:27:21.640632 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.641055 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.641316 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-05-05T09:27:21.643921 #1]  INFO -- : 
I, [2021-05-05T09:27:21.644338 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.644811 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.645249 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.645791 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.646204 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-05-05T09:27:21.646601 #1]  INFO -- : > echo redis installed
I, [2021-05-05T09:27:21.648537 #1]  INFO -- : redis installed

I, [2021-05-05T09:27:21.648727 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-05-05T09:27:21.653859 #1]  INFO -- : logfile ""

I, [2021-05-05T09:27:21.654149 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-05-05T09:27:21.656375 #1]  INFO -- : > sleep 10
168:C 05 May 2021 09:27:21.664 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
168:C 05 May 2021 09:27:21.665 # Redis version=6.2.1, bits=64, commit=00000000, modified=0, pid=168, just started
168:C 05 May 2021 09:27:21.665 # Configuration loaded
168:M 05 May 2021 09:27:21.665 * monotonic clock: POSIX clock_gettime
168:M 05 May 2021 09:27:21.666 * Running mode=standalone, port=6379.
168:M 05 May 2021 09:27:21.666 # Server initialized
168:M 05 May 2021 09:27:21.666 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. 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.
168:M 05 May 2021 09:27:21.667 * Loading RDB produced by version 6.0.9
168:M 05 May 2021 09:27:21.667 * RDB age 14 seconds
168:M 05 May 2021 09:27:21.667 * RDB memory usage when created 4.35 Mb
168:M 05 May 2021 09:27:21.675 * DB loaded from disk: 0.009 seconds
168:M 05 May 2021 09:27:21.675 * Ready to accept connections
I, [2021-05-05T09:27:31.667195 #1]  INFO -- : 
I, [2021-05-05T09:27:31.668291 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-05-05T09:27:31.673159 #1]  INFO -- : thpoff is installed!

I, [2021-05-05T09:27:31.673337 #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, [2021-05-05T09:27:31.726166 #1]  INFO -- : 
I, [2021-05-05T09:27:31.726496 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2021-05-05T09:27:31.778731 #1]  INFO -- : 
I, [2021-05-05T09:27:31.778968 #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, [2021-05-05T09:27:31.833995 #1]  INFO -- : 
I, [2021-05-05T09:27:31.834201 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2021-05-05T09:27:32.102594 #1]  INFO -- : 
I, [2021-05-05T09:27:32.103055 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-05-05T09:27:32.105807 #1]  INFO -- : 
I, [2021-05-05T09:27:32.107685 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2021-05-05T09:27:32.111701 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2021-05-05T09:27:32.115897 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2021-05-05T09:27:32.121267 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2021-05-05T09:27:32.125493 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2021-05-05T09:27:32.129541 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2021-05-05T09:27:32.129711 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-05-05T09:27:32.130041 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-05-05T09:27:32.132091 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
196:C 05 May 2021 09:27:32.135 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
196:C 05 May 2021 09:27:32.135 # Redis version=6.2.1, bits=64, commit=00000000, modified=0, pid=196, just started
196:C 05 May 2021 09:27:32.135 # Configuration loaded
196:M 05 May 2021 09:27:32.136 * monotonic clock: POSIX clock_gettime
196:M 05 May 2021 09:27:32.136 # Could not create server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (28599/28599), done.
I, [2021-05-05T09:27:34.425015 #1]  INFO -- : HEAD is now at c54609bf UX: Full height composer on mobile Android (#12709)

I, [2021-05-05T09:27:34.425196 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-05-05T09:27:34.498744 #1]  INFO -- : 
I, [2021-05-05T09:27:34.498914 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2021-05-05T09:27:34.502461 #1]  INFO -- : 
I, [2021-05-05T09:27:34.502520 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-05-05T09:27:34.504852 #1]  INFO -- : 
I, [2021-05-05T09:27:34.504973 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
 * branch              tests-passed -> FETCH_HEAD
 * [new branch]        tests-passed -> origin/tests-passed
I, [2021-05-05T09:27:36.637177 #1]  INFO -- : 
I, [2021-05-05T09:27:36.637376 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-05-05T09:27:37.062187 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2021-05-05T09:27:37.062469 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-05-05T09:27:37.066615 #1]  INFO -- : 
I, [2021-05-05T09:27:37.066780 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-05-05T09:27:37.070104 #1]  INFO -- : 
I, [2021-05-05T09:27:37.070212 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-05-05T09:27:37.074122 #1]  INFO -- : 
I, [2021-05-05T09:27:37.074348 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-05-05T09:27:37.078043 #1]  INFO -- : 
I, [2021-05-05T09:27:37.078150 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-05-05T09:27:37.082146 #1]  INFO -- : 
I, [2021-05-05T09:27:37.082262 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2021-05-05T09:27:37.086411 #1]  INFO -- : 
I, [2021-05-05T09:27:37.086588 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-05-05T09:27:37.093241 #1]  INFO -- : 
I, [2021-05-05T09:27:37.093362 #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, [2021-05-05T09:27:37.097394 #1]  INFO -- : 
I, [2021-05-05T09:27:37.097559 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2021-05-05T09:27:37.102087 #1]  INFO -- : 
I, [2021-05-05T09:27:37.102228 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-05-05T09:27:37.106406 #1]  INFO -- : 
I, [2021-05-05T09:27:37.106498 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2021-05-05T09:27:37.110914 #1]  INFO -- : 
I, [2021-05-05T09:27:37.111006 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-05-05T09:27:37.114776 #1]  INFO -- : 
I, [2021-05-05T09:27:37.114861 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-05-05T09:27:37.125487 #1]  INFO -- : 
I, [2021-05-05T09:27:37.125592 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-05-05T09:27:37.130783 #1]  INFO -- : 
I, [2021-05-05T09:27:37.131047 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-05-05T09:27:37.131950 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-05-05T09:27:39.871363 #1]  INFO -- : 
I, [2021-05-05T09:27:39.871558 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2021-05-05T09:27:40.309977 #1]  INFO -- : 
I, [2021-05-05T09:27:40.310156 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2021-05-05T09:27:40.765793 #1]  INFO -- : 
I, [2021-05-05T09:27:40.765933 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-voting
Cloning into 'discourse-voting'...
I, [2021-05-05T09:27:41.253614 #1]  INFO -- : 
I, [2021-05-05T09:27:41.253838 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-checklist
Cloning into 'discourse-checklist'...
I, [2021-05-05T09:27:41.770637 #1]  INFO -- : 
I, [2021-05-05T09:27:41.770783 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-chat-integration.git
Cloning into 'discourse-chat-integration'...
I, [2021-05-05T09:27:42.306697 #1]  INFO -- : 
I, [2021-05-05T09:27:42.306861 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-policy
Cloning into 'discourse-policy'...
I, [2021-05-05T09:27:42.926224 #1]  INFO -- : 
I, [2021-05-05T09:27:42.926402 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-calendar
Cloning into 'discourse-calendar'...
I, [2021-05-05T09:27:44.099829 #1]  INFO -- : 
I, [2021-05-05T09:27:44.099996 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign
Cloning into 'discourse-assign'...
I, [2021-05-05T09:27:44.671402 #1]  INFO -- : 
I, [2021-05-05T09:27:44.671544 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-footnote
Cloning into 'discourse-footnote'...
I, [2021-05-05T09:27:45.111099 #1]  INFO -- : 
I, [2021-05-05T09:27:45.111316 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-graphviz
Cloning into 'discourse-graphviz'...
I, [2021-05-05T09:27:45.997697 #1]  INFO -- : 
I, [2021-05-05T09:27:45.997886 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/angusmcleod/discourse-question-answer
Cloning into 'discourse-question-answer'...
I, [2021-05-05T09:27:46.496827 #1]  INFO -- : 
I, [2021-05-05T09:27:46.496983 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/gdpelican/babble.git
Cloning into 'babble'...
I, [2021-05-05T09:27:47.072713 #1]  INFO -- : 
I, [2021-05-05T09:27:47.072871 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/angusmcleod/discourse-quick-messages
Cloning into 'discourse-quick-messages'...
I, [2021-05-05T09:27:47.531569 #1]  INFO -- : 
I, [2021-05-05T09:27:47.531724 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/angusmcleod/discourse-topic-previews
Cloning into 'discourse-topic-previews'...
I, [2021-05-05T09:27:48.071499 #1]  INFO -- : 
I, [2021-05-05T09:27:48.071698 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/angusmcleod/discourse-events
Cloning into 'discourse-events'...
I, [2021-05-05T09:27:49.026666 #1]  INFO -- : 
I, [2021-05-05T09:27:49.026816 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/gdpelican/retort
Cloning into 'retort'...
I, [2021-05-05T09:27:49.482470 #1]  INFO -- : 
I, [2021-05-05T09:27:49.482658 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-whos-online
Cloning into 'discourse-whos-online'...
I, [2021-05-05T09:27:50.013296 #1]  INFO -- : 
I, [2021-05-05T09:27:50.013620 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-05-05T09:27:50.018814 #1]  INFO -- : 
I, [2021-05-05T09:27:50.019100 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-05-05T09:27:50.022724 #1]  INFO -- : 
I, [2021-05-05T09:27:50.022978 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2021-05-05T09:27:50.026733 #1]  INFO -- : 
I, [2021-05-05T09:27:50.027316 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-05-05T09:27:50.027642 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-05-05T09:27:50.027919 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-05-05T09:27:50.028227 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-05-05T09:27:50.028458 #1]  INFO -- : > echo "done configuring web"
I, [2021-05-05T09:27:50.030831 #1]  INFO -- : done configuring web

I, [2021-05-05T09:27:50.031060 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-05-05T09:27:50.660552 #1]  INFO -- : Successfully installed bundler-2.2.7
1 gem installed

我的更新中出现了错误

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

请帮我修复它。.
正在安装 libv8-node 15.14.0.1 (x86_64-linux)
3: stackprof (0.2.17) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/stackprof-0.2.17.gemspec
2: bootsnap (1.7.5) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/bootsnap-1.7.5.gemspec
使用 pry 0.13.1
使用 ecma-re-validator 0.3.0
2: pry (0.13.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec
3: ecma-re-validator (0.3.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ecma-re-validator-0.3.0.gemspec
使用 discourse_image_optim 0.26.2
3: discourse_image_optim (0.26.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse_image_optim-0.26.2.gemspec
使用 openssl-signature_algorithm 1.1.1
2: openssl-signature_algorithm (1.1.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/openssl-signature_algorithm-1.1.1.gemspec
使用 mini_suffix 0.3.2
2: mini_suffix (0.3.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_suffix-0.3.2.gemspec
使用 sassc 2.0.1
2: sassc (2.0.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-2.0.1.gemspec
使用 omniauth 1.9.1
2: omniauth (1.9.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-1.9.1.gemspec
使用 logstash-logger 0.26.1
3: logstash-logger (0.26.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logstash-logger-0.26.1.gemspec
使用 sidekiq 6.2.1
3: sidekiq (6.2.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sidekiq-6.2.1.gemspec
使用 redis-namespace 1.8.1
3: redis-namespace (1.8.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/redis-namespace-1.8.1.gemspec
使用 puma 5.2.2
3: puma (5.2.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/puma-5.2.2.gemspec
使用 rbtrace 0.4.14
3: rbtrace (0.4.14) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rbtrace-0.4.14.gemspec
使用 webpush 1.1.0
正在获取 faraday 1.4.1
3: webpush (1.1.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/webpush-1.1.0.gemspec
使用 unicorn 6.0.0
3: unicorn (6.0.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unicorn-6.0.0.gemspec
使用 rqrcode 1.2.0
3: rqrcode (1.2.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rqrcode-1.2.0.gemspec
使用 unf 0.1.4
3: unf (0.1.4) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf-0.1.4.gemspec
正在获取 activesupport 6.1.3.1
正在安装 faraday 1.4.1
正在安装 activesupport 6.1.3.1
2: faraday (1.4.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-1.4.1.gemspec
使用 loofah 2.9.1
2: loofah (2.9.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/loofah-2.9.1.gemspec
使用 nokogumbo 2.0.5
2: nokogumbo (2.0.5) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nokogumbo-2.0.5.gemspec
使用 ruby-readability 0.7.0
2: ruby-readability (0.7.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ruby-readability-0.7.0.gemspec
使用 css_parser 1.9.0
2: css_parser (1.9.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/css_parser-1.9.0.gemspec
使用 aws-sdk-core 3.112.1
2: aws-sdk-core (3.112.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-core-3.112.1.gemspec
使用 ember-handlebars-template 0.8.0
2: ember-handlebars-template (0.8.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-handlebars-template-0.8.0.gemspec
使用 json_schemer 0.2.18
2: json_schemer (0.2.18) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/json_schemer-0.2.18.gemspec
使用 cose 1.2.0
2: cose (1.2.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cose-1.2.0.gemspec
使用 omniauth-oauth 1.2.0
2: omniauth-oauth (1.2.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth-1.2.0.gemspec
使用 pry-byebug 3.9.0
2: pry-byebug (3.9.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec
使用 pry-rails 0.3.9
2: pry-rails (0.3.9) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-rails-0.3.9.gemspec
使用 mini_scheduler 0.13.0
2: mini_scheduler (0.13.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_scheduler-0.13.0.gemspec
使用 rails-html-sanitizer 1.3.0
2: rails-html-sanitizer (1.3.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-html-sanitizer-1.3.0.gemspec
使用 aws-sdk-kms 1.42.0
2: aws-sdk-kms (1.42.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-kms-1.42.0.gemspec
使用 aws-sdk-sns 1.38.0
2: aws-sdk-sns (1.38.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-sns-1.38.0.gemspec
使用 oauth2 1.4.7
2: oauth2 (1.4.7) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oauth2-1.4.7.gemspec
使用 omniauth-twitter 1.4.0
2: omniauth-twitter (1.4.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-twitter-1.4.0.gemspec
使用 sanitize 5.2.3
2: sanitize (5.2.3) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sanitize-5.2.3.gemspec
使用 aws-sdk-s3 1.90.0
2: aws-sdk-s3 (1.90.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-s3-1.90.0.gemspec
使用 omniauth-oauth2 1.7.1
2: omniauth-oauth2 (1.7.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth2-1.7.1.gemspec
使用 onebox 2.2.14
2: onebox (2.2.14) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/onebox-2.2.14.gemspec
使用 omniauth-facebook 8.0.0
2: omniauth-facebook (8.0.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-facebook-8.0.0.gemspec
使用 omniauth-github 1.4.0
2: omniauth-github (1.4.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-github-1.4.0.gemspec
使用 omniauth-google-oauth2 0.8.2
2: omniauth-google-oauth2 (0.8.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-google-oauth2-0.8.2.gemspec
3: activesupport (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activesupport-6.1.3.1.gemspec
使用 rails-dom-testing 2.0.3
使用 globalid 0.4.2
2: globalid (0.4.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/globalid-0.4.2.gemspec
3: rails-dom-testing (2.0.3) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-dom-testing-2.0.3.gemspec
正在获取 activejob 6.1.3.1
正在获取 activemodel 6.1.3.1
正在安装 activejob 6.1.3.1
正在安装 activemodel 6.1.3.1
3: activejob (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activejob-6.1.3.1.gemspec
正在获取 actionview 6.1.3.1
正在安装 actionview 6.1.3.1
2: activemodel (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activemodel-6.1.3.1.gemspec
使用 active_model_serializers 0.8.4
2: active_model_serializers (0.8.4) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/active_model_serializers-0.8.4.gemspec
正在获取 activerecord 6.1.3.1
正在安装 activerecord 6.1.3.1
3: actionview (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview-6.1.3.1.gemspec
正在获取 actionpack 6.1.3.1
正在安装 actionpack 6.1.3.1
3: actionpack (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionpack-6.1.3.1.gemspec
使用 actionview_precompiler 0.2.3
3: actionview_precompiler (0.2.3) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview_precompiler-0.2.3.gemspec
正在获取 actionmailer 6.1.3.1
正在安装 actionmailer 6.1.3.1
3: actionmailer (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionmailer-6.1.3.1.gemspec
2: activerecord (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activerecord-6.1.3.1.gemspec
正在获取 railties 6.1.3.1
使用 sprockets-rails 3.2.2
3: sprockets-rails (3.2.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-rails-3.2.2.gemspec
使用 seed-fu 2.3.9
3: seed-fu (2.3.9) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/seed-fu-2.3.9.gemspec
正在安装 railties 6.1.3.1
2: railties (6.1.3.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/railties-6.1.3.1.gemspec
使用 jquery-rails 4.4.0
使用 lograge 0.11.2
3: lograge (0.11.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lograge-0.11.2.gemspec
正在获取 rails_failover 0.7.3
2: jquery-rails (4.4.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jquery-rails-4.4.0.gemspec
正在获取 rails_multisite 3.0.0
正在安装 rails_multisite 3.0.0
正在安装 rails_failover 0.7.3
3: rails_failover (0.7.3) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_failover-0.7.3.gemspec
使用 sassc-rails 2.1.2
2: rails_multisite (3.0.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_multisite-3.0.0.gemspec
3: sassc-rails (2.1.2) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-rails-2.1.2.gemspec
使用 discourse-ember-rails 0.18.6
3: discourse-ember-rails (0.18.6) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-ember-rails-0.18.6.gemspec
1: libv8-node (15.14.0.1) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/libv8-node-15.14.0.1-x86_64-linux.gemspec
使用 mini_racer 0.4.0
3: mini_racer (0.4.0) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_racer-0.4.0.gemspec
0: oj (3.11.5) 来自 /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oj-3.11.5.gemspec
捆绑完成!125 个 Gemfile 依赖项,168 个 gems 已安装。
test 和 development 组中的 gems 未安装。
捆绑的 gems 已安装到 ./vendor/bundle

I, [2021-05-05T09:28:13.767289 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake plugin:pull_compatible_all’
I, [2021-05-05T09:28:35.330086 #1] INFO – : gem install holidays -v 8.4.1 -i /var/www/discourse/plugins/discourse-calendar/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
成功安装 holidays-8.4.1
1 gem 已安装
gem install rrule -v 0.4.2 -i /var/www/discourse/plugins/discourse-calendar/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
成功安装 rrule-0.4.2
1 gem 已安装
gem install icalendar -v 2.4.1 -i /var/www/discourse/plugins/discourse-events/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
注意!iCalendar 2.0 与 1.x 不向后兼容。请参阅 README 了解新语法

注意!icalendar 2.2.0 默认切换为非严格解析。如果您依赖严格解析,请参阅 README 了解如何启用它。

ActiveSupport 是 TimeWithZone 支持所必需的,但一般用途不需要。
成功安装 icalendar-2.4.1
1 gem 已安装
discourse-question-answer 已是最新兼容版本
discourse-policy 已是最新兼容版本
discourse-solved 已是最新兼容版本
discourse-voting 已是最新兼容版本
discourse-quick-messages 已是最新兼容版本
retort 已是最新兼容版本
docker_manager 已是最新兼容版本
discourse-whos-online 已是最新兼容版本
discourse-spoiler-alert 已是最新兼容版本
discourse-graphviz 已是最新兼容版本
discourse-footnote 已是最新兼容版本
discourse-topic-previews 已是最新兼容版本
discourse-checklist 已是最新兼容版本
discourse-chat-integration 已是最新兼容版本
discourse-events 已是最新兼容版本
babble 已是最新兼容版本
discourse-calendar 已是最新兼容版本
discourse-assign 已是最新兼容版本

I, [2021-05-05T09:28:35.330421 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
I, [2021-05-05T09:28:44.129538 #1] INFO – : == 20210429154319 RemoveNilCustomFieldsFromAssign: migrating ==================
– execute(“DELETE FROM topic_custom_fields\nWHERE name = ‘assigned_to_id’ AND value IS NULL\n”)
→ 0.0039s
– execute(“DELETE FROM topic_custom_fields\nWHERE name = ‘assigned_by_id’ AND value IS NULL\n”)
→ 0.0002s
== 20210429154319 RemoveNilCustomFieldsFromAssign: migrated (0.0077s) =========

I, [2021-05-05T09:28:44.129905 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’
I, [2021-05-05T09:28:53.378069 #1] INFO – : 正在更新 Sam’s Simple Theme…
正在更新 Hamburger Theme Selector…
正在更新 Minima…
正在更新 Discourse-classic (ultracompact)…
更新 Discourse-classic (ultracompact) 出错:克隆 git 仓库时出错,访问被拒绝或仓库未找到

I, [2021-05-05T09:28:53.378497 #1] INFO – : 终止异步进程
I, [2021-05-05T09:28:53.378554 #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: 51 发送 INT
I, [2021-05-05T09:28:53.378620 #1] INFO – : 向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 168 发送 TERM
168:signal-handler (1620206933) 收到 SIGTERM,计划关闭…
2021-05-05 09:28:53.378 UTC [51] LOG: 收到快速关闭请求
2021-05-05 09:28:53.380 UTC [51] LOG: 中止任何活动事务
2021-05-05 09:28:53.382 UTC [51] LOG: 后台工作进程 “logical replication launcher” (PID 60) 退出,退出码 1
2021-05-05 09:28:53.383 UTC [55] LOG: 正在关闭
168:M 05 May 2021 09:28:53.401 # 用户请求关闭…
168:M 05 May 2021 09:28:53.401 * 退出前保存最终 RDB 快照。
2021-05-05 09:28:53.412 UTC [51] LOG: 数据库系统已关闭
168:M 05 May 2021 09:28:53.416 * 数据库已保存到磁盘
168:M 05 May 2021 09:28:53.416 # Redis 现在准备退出,再见…

失败

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’ 失败,返回 #<Process::Status: pid 898 exit 1>
失败位置:/pups/lib/pups/exec_command.rb:112:in `spawn’
exec 失败,参数为 {“cd”=>“$home”, “hook”=>“assets_precompile”, “cmd”=>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]}
e97144452e3a1b0ebbb290e22515fa8d40fc2b03cb467e97ee3421c52f6b56fe
** 引导失败 ** 请向上滚动并查看早期错误消息,可能不止一个。
./discourse-doctor 可能有助于诊断问题。

也许这个错误与 Discourse Classic Theme 有关?我在你的日志中看到了以下内容:

Error updating Discourse-classic (ultracompact): Error cloning git repository, access is denied or repository is not found

你可以尝试将其停用(或移除),然后再试一次更新。

是的,这是一个本地主题。但由于我尚未运行该站点,该如何禁用该主题呢?

另一方面:主题构建失败为何会阻止 Discourse 整体构建?:thinking:

找不到此插件。

这不是插件,这是一个主题。是的,那个是 Discourse-classic 的本地(修改后)副本。

但无论如何,我该如何跳过这个错误并重新构建我的 Discourse 站点?

过去我曾使用这个本地主题进行过一些升级。

啊,我确实有过这个疑问。

我想你可能需要在升级前取消勾选“升级时检查更新”的标记,或者禁用该主题?如果是这样,这可能是一个 bug;或许系统应该自动禁用缺失的主题。

你可以运行以下命令来启动旧容器:

 ./launcher start app

谢谢,这有效。另外,无法理解为什么在构建新容器时需要停止旧容器。

因为数据库位于该容器内。您可以切换到双容器安装方案,这样在构建新容器时可以保持当前容器运行(但有一些注意事项)。

啊,我明白了。为我们提供蓝绿部署的方式将是一个很好的补充。但在我的实例中,几小时的停机时间是可以接受的。