你好,
我的 Discourse 突然无法重新构建。我在过去三年里一直进行常规更新,从未遇到过问题,但最近一次尝试却无法完成。我没有对设置进行任何管理更改,也没有引入新主题。换句话说,自上次升级以来没有任何变化。
错误:
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 3945 exit 1>
完整日志:
./launcher rebuild discourse
确保 launcher 为最新版本
获取 origin
launcher 已是最新版本
停止旧容器
+ /usr/bin/docker stop -t 60 discourse
discourse
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
来自 https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [新标签] v1.1.1 -> v1.1.1
* [新标签] v1.1.0 -> v1.1.0
更新 17f04ec..e0ff889
快进
.github/workflows/ci.yml | 29 ++++++
.github/workflows/lint.yml | 27 +++++
.rubocop.yml | 3 +
Gemfile | 2 +
Guardfile | 4 +-
README.md | 21 ++++
Rakefile | 14 +--
bin/pups | 8 +-
lib/pups.rb | 32 ++++--
lib/pups/cli.rb | 92 ++++++++++-------
lib/pups/command.rb | 25 +++--
lib/pups/config.rb | 240 +++++++++++++++++++++++--------------------
lib/pups/docker.rb | 69 +++++++++++++
lib/pups/exec_command.rb | 182 ++++++++++++++++----------------
lib/pups/file_command.rb | 60 +++++------
lib/pups/merge_command.rb | 94 ++++++++---------
lib/pups/replace_command.rb | 70 +++++++------
lib/pups/runit.rb | 47 +++++----
lib/pups/version.rb | 4 +-
pups.gemspec | 37 ++++---
test/cli_test.rb | 102 +++++++++++++++---
test/config_test.rb | 215 ++++++++++++++++++++++++++++----------
test/docker_test.rb | 157 ++++++++++++++++++++++++++++
test/exec_command_test.rb | 62 ++++++-----
test/file_command_test.rb | 17 ++-
test/merge_command_test.rb | 64 ++++++------
test/replace_command_test.rb | 86 ++++++++--------
test/test_helper.rb | 2 +
28 files changed, 1158 insertions(+), 607 deletions(-)
create mode 100644 .github/workflows/ci.yml
create mode 100644 .github/workflows/lint.yml
create mode 100644 .rubocop.yml
create mode 100644 lib/pups/docker.rb
create mode 100644 test/docker_test.rb
注意:正在检出 'v1.0.3'。
你处于‘分离 HEAD’状态。你可以四处查看,进行实验性
更改并提交,并且你可以通过执行另一次检出来丢弃在此
状态下进行的任何提交,而不会影响任何分支。
如果你想创建一个新分支来保留你创建的提交,你可以
现在或稍后使用 -b 再次执行 checkout 命令。例如:
git checkout -b <新分支名称>
HEAD 现在位于 d1db030 发布了一个新版本
I, [2021-08-06T20:55:29.975137 #1] INFO -- : Loading --stdin
I, [2021-08-06T20:55:29.978798 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2021-08-06T20:55:30.008331 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2021-08-06T20:55:30.008485 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2021-08-06T20:55:30.010760 #1] INFO -- :
I, [2021-08-06T20:55:30.010879 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-08-06T20:55:30.012708 #1] INFO -- :
I, [2021-08-06T20:55:30.012838 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2021-08-06T20:55:30.014027 #1] INFO -- :
I, [2021-08-06T20:55:30.014118 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2021-08-06T20:55:30.016426 #1] INFO -- :
I, [2021-08-06T20:55:30.016551 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-08-06T20:55:30.018251 #1] INFO -- :
I, [2021-08-06T20:55:30.018391 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/08/06 20:55:30 socat[34] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-08-06T20:55:30.020876 #1] INFO -- :
I, [2021-08-06T20:55:30.020942 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-08-06T20:55:30.023429 #1] INFO -- :
I, [2021-08-06T20:55:30.023514 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-08-06T20:55:30.025854 #1] INFO -- :
I, [2021-08-06T20:55:30.025923 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-08-06T20:55:30.027727 #1] INFO -- :
I, [2021-08-06T20:55:30.027842 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-08-06T20:55:30.029544 #1] INFO -- :
I, [2021-08-06T20:55:30.035415 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2021-08-06T20:55:30.039019 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2021-08-06T20:55:30.042824 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2021-08-06T20:55:30.046287 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2021-08-06T20:55:30.046444 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-08-06T20:55:33.132539 #1] INFO -- :
I, [2021-08-06T20:55:33.132680 #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-08-06T20:55:33.134858 #1] INFO -- :
I, [2021-08-06T20:55:33.134929 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-08-06T20:55:33.146303 #1] INFO -- :
I, [2021-08-06T20:55:33.146391 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-08-06T20:55:33.148096 #1] INFO -- :
I, [2021-08-06T20:55:33.148200 #1] INFO -- : > /root/upgrade_postgres
I, [2021-08-06T20:55:33.151392 #1] INFO -- :
I, [2021-08-06T20:55:33.151469 #1] INFO -- : > rm /root/upgrade_postgres
I, [2021-08-06T20:55:33.152931 #1] INFO -- :
I, [2021-08-06T20:55:33.153090 #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-08-06T20:55:33.153445 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153608 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153763 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153911 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.154056 #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-08-06T20:55:33.154194 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-08-06T20:55:33.155685 #1] INFO -- :
I, [2021-08-06T20:55:33.155839 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.156037 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.156212 #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-08-06T20:55:33.156384 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-08-06T20:55:33.156543 #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-08-06T20:55:33.156693 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-08-06T20:55:33.156821 #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-08-06T20:55:33.157605 #1] INFO -- : > sleep 5
2021-08-06 20:55:33.189 UTC [57] LOG: starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-08-06 20:55:33.189 UTC [57] LOG: listening on IPv4 address "0.0.0.0", port 5432
2021-08-06 20:55:33.189 UTC [57] LOG: listening on IPv6 address "::", port 5432
2021-08-06 20:55:33.197 UTC [57] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-08-06 20:55:33.207 UTC [60] LOG: database system was shut down at 2021-08-06 20:54:23 UTC
2021-08-06 20:55:33.220 UTC [57] LOG: database system is ready to accept connections
I, [2021-08-06T20:55:38.159279 #1] INFO -- :
I, [2021-08-06T20:55:38.159499 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2021-08-06 20:55:38.191 UTC [70] postgres@postgres ERROR: database "discourse" already exists
2021-08-06 20:55:38.191 UTC [70] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2021-08-06T20:55:38.192499 #1] INFO -- :
I, [2021-08-06T20:55:38.192655 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-08-06 20:55:38.229 UTC [81] postgres@discourse ERROR: role "discourse" already exists
2021-08-06 20:55:38.229 UTC [81] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2021-08-06T20:55:38.230113 #1] INFO -- :
I, [2021-08-06T20:55:38.230240 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-08-06T20:55:38.264816 #1] INFO -- : GRANT
I, [2021-08-06T20:55:38.264954 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-08-06T20:55:38.300671 #1] INFO -- : ALTER SCHEMA
I, [2021-08-06T20:55:38.300800 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2021-08-06T20:55:38.338165 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.338299 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2021-08-06T20:55:38.373916 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.374048 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2021-08-06T20:55:38.411727 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.411860 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2021-08-06T20:55:38.447989 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.448182 #1] INFO -- : > sudo -u postgres psql discourse
I, [2021-08-06T20:55:38.450095 #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-08-06T20:55:38.491795 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2021-08-06T20:55:38.493826 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2021-08-06T20:55:38.493898 #1] INFO -- : > echo postgres installed!
I, [2021-08-06T20:55:38.494947 #1] INFO -- : postgres installed!
I, [2021-08-06T20:55:38.498073 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2021-08-06T20:55:38.501701 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2021-08-06T20:55:38.505031 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2021-08-06T20:55:38.505155 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.505503 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.506380 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-08-06T20:55:38.508241 #1] INFO -- :
I, [2021-08-06T20:55:38.508462 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.508754 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.508994 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511494 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511692 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511889 #1] INFO -- : > echo redis installed
I, [2021-08-06T20:55:38.513410 #1] INFO -- : redis installed
I, [2021-08-06T20:55:38.513516 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-08-06T20:55:38.515983 #1] INFO -- : logfile ""
I, [2021-08-06T20:55:38.516072 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-08-06T20:55:38.518035 #1] INFO -- : > sleep 10
174:C 06 Aug 2021 20:55:38.520 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
174:C 06 Aug 2021 20:55:38.520 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=174, just started
174:C 06 Aug 2021 20:55:38.520 # Configuration loaded
174:M 06 Aug 2021 20:55:38.520 * monotonic clock: POSIX clock_gettime
174:M 06 Aug 2021 20:55:38.521 * Running mode=standalone, port=6379.
174:M 06 Aug 2021 20:55:38.521 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
174:M 06 Aug 2021 20:55:38.521 # Server initialized
174:M 06 Aug 2021 20:55:38.521 # 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.
174:M 06 Aug 2021 20:55:38.521 * Loading RDB produced by version 6.2.3
174:M 06 Aug 2021 20:55:38.521 * RDB age 75 seconds
174:M 06 Aug 2021 20:55:38.521 * RDB memory usage when created 5.00 Mb
174:M 06 Aug 2021 20:55:38.529 * DB loaded from disk: 0.008 seconds
174:M 06 Aug 2021 20:55:38.529 * Ready to accept connections
I, [2021-08-06T20:55:48.519778 #1] INFO -- :
I, [2021-08-06T20:55:48.520057 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-08-06T20:55:48.523431 #1] INFO -- : thpoff is installed!
I, [2021-08-06T20:55:48.523576 #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-08-06T20:55:48.573512 #1] INFO -- :
I, [2021-08-06T20:55:48.573664 #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-08-06T20:55:48.625016 #1] INFO -- :
I, [2021-08-06T20:55:48.625183 #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-08-06T20:55:48.673708 #1] INFO -- :
I, [2021-08-06T20:55:48.673858 #1] INFO -- : > chown -R discourse /home/discourse
I, [2021-08-06T20:55:50.187443 #1] INFO -- :
I, [2021-08-06T20:55:50.187715 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-08-06T20:55:50.190315 #1] INFO -- :
I, [2021-08-06T20:55:50.192649 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2021-08-06T20:55:50.196279 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2021-08-06T20:55:50.200029 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2021-08-06T20:55:50.203299 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2021-08-06T20:55:50.206916 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2021-08-06T20:55:50.210465 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2021-08-06T20:55:50.210557 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-08-06T20:55:50.210743 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-08-06T20:55:50.212426 #1] INFO -- : > cd /var/www/discourse && git reset --hard
202:C 06 Aug 2021 20:55:50.214 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
202:C 06 Aug 2021 20:55:50.214 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=202, just started
202:C 06 Aug 2021 20:55:50.214 # Configuration loaded
202:M 06 Aug 2021 20:55:50.214 * monotonic clock: POSIX clock_gettime
202:M 06 Aug 2021 20:55:50.214 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
202:M 06 Aug 2021 20:55:50.214 # Failed listening on port 6379 (TCP), aborting.
Checking out files: 100% (28860/28860), done.
I, [2021-08-06T20:55:51.872305 #1] INFO -- : HEAD is now at 74f71503 FEATURE: Automatically timed delete stub topics after entire topic is merged into another topic (#13187)
I, [2021-08-06T20:55:51.872402 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-08-06T20:55:51.958388 #1] INFO -- :
I, [2021-08-06T20:55:51.958493 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2021-08-06T20:55:51.960768 #1] INFO -- :
I, [2021-08-06T20:55:51.960820 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-08-06T20:55:51.965935 #1] INFO -- :
I, [2021-08-06T20:55:51.966003 #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-08-06T20:55:54.476291 #1] INFO -- :
I, [2021-08-06T20:55:54.476389 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-08-06T20:55:55.350856 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2021-08-06T20:55:55.350965 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-08-06T20:55:55.354244 #1] INFO -- :
I, [2021-08-06T20:55:55.354326 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-08-06T20:55:55.356693 #1] INFO -- :
I, [2021-08-06T20:55:55.356748 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-08-06T20:55:55.359270 #1] INFO -- :
I, [2021-08-06T20:55:55.359354 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-08-06T20:55:55.361644 #1] INFO -- :
I, [2021-08-06T20:55:55.361707 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-08-06T20:55:55.363277 #1] INFO -- :
I, [2021-08-06T20:55:55.363319 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2021-08-06T20:55:55.365505 #1] INFO -- :
I, [2021-08-06T20:55:55.365568 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-08-06T20:55:55.368090 #1] INFO -- :
I, [2021-08-06T20:55:55.368151 #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-08-06T20:55:55.371120 #1] INFO -- :
I, [2021-08-06T20:55:55.371179 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2021-08-06T20:55:55.374060 #1] INFO -- :
I, [2021-08-06T20:55:55.374111 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-08-06T20:55:55.377133 #1] INFO -- :
I, [2021-08-06T20:55:55.377205 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2021-08-06T20:55:55.380123 #1] INFO -- :
I, [2021-08-06T20:55:55.380185 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-08-06T20:55:55.383105 #1] INFO -- :
I, [2021-08-06T20:55:55.383169 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-08-06T20:55:55.391208 #1] INFO -- :
I, [2021-08-06T20:55:55.391282 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-08-06T20:55:55.393641 #1] INFO -- :
I, [2021-08-06T20:55:55.393753 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-08-06T20:55:55.394026 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-08-06T20:55:56.240429 #1] INFO -- :
I, [2021-08-06T20:55:56.240543 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-voting.git
Cloning into 'discourse-voting'...
I, [2021-08-06T20:55:56.774041 #1] INFO -- :
I, [2021-08-06T20:55:56.774147 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidmh/discourse-giphy.git
Cloning into 'discourse-giphy'...
I, [2021-08-06T20:55:57.855222 #1] INFO -- :
I, [2021-08-06T20:55:57.855328 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-telegram-notifications
Cloning into 'discourse-telegram-notifications'...
I, [2021-08-06T20:55:58.284365 #1] INFO -- :
I, [2021-08-06T20:55:58.284615 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.287516 #1] INFO -- :
I, [2021-08-06T20:55:58.287618 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-08-06T20:55:58.289302 #1] INFO -- :
I, [2021-08-06T20:55:58.289392 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2021-08-06T20:55:58.291290 #1] INFO -- :
I, [2021-08-06T20:55:58.291439 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-08-06T20:55:58.291656 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.291818 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.291946 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.292066 #1] INFO -- : > echo "done configuring web"
I, [2021-08-06T20:55:58.293474 #1] INFO -- : done configuring web
I, [2021-08-06T20:55:58.293625 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-08-06T20:55:58.899514 #1] INFO -- : Successfully installed bundler-2.2.19
1 gem installed
我的更新中出现了错误
```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
请帮我修复它。我的更新中出现了错误
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
请帮我修复它。
Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See GitHub - rubyzip/rubyzip: Official Rubyzip repository · GitHub for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
3: rubyzip (2.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rubyzip-2.3.2.gemspec
Using tilt 2.0.10
3: tilt (2.0.10) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/tilt-2.0.10.gemspec
Using sshkey 2.0.0
3: sshkey (2.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sshkey-2.0.0.gemspec
Using stackprof 0.2.17
3: stackprof (0.2.17) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/stackprof-0.2.17.gemspec
Using unf_ext 0.0.7.7
3: unf_ext (0.0.7.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf_ext-0.0.7.7.gemspec
Using xorcist 1.1.2
3: xorcist (1.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/xorcist-1.1.2.gemspec
Fetching nokogiri 1.12.2 (x86_64-linux)
Building native extensions. This could take a while…
Installing nokogiri 1.12.2 (x86_64-linux)
3: nokogiri (1.12.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nokogiri-1.12.2-x86_64-linux.gemspec
Using rack-test 1.1.0
3: rack-test (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-test-1.1.0.gemspec
Using request_store 1.5.0
3: request_store (1.5.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/request_store-1.5.0.gemspec
Fetching message_bus 3.3.6
Installing message_bus 3.3.6
3: message_bus (3.3.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/message_bus-3.3.6.gemspec
Using rack-mini-profiler 2.3.2
3: rack-mini-profiler (2.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-mini-profiler-2.3.2.gemspec
Using rack-protection 2.1.0
3: rack-protection (2.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-protection-2.1.0.gemspec
Using mail 2.8.0.edge from GitHub - discourse/mail: A Really Ruby Mail Library · GitHub (at master@5b700fc)
3: mail (2.8.0.edge) from /var/www/discourse/vendor/bundle/ruby/2.7.0/bundler/gems/mail-5b700fc95ee6/mail.gemspec
Fetching addressable 2.8.0
Installing addressable 2.8.0
3: addressable (2.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/addressable-2.8.0.gemspec
Using aws-sigv4 1.2.3
3: aws-sigv4 (1.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sigv4-1.2.3.gemspec
Using ember-data-source 3.0.2
3: ember-data-source (3.0.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-data-source-3.0.2.gemspec
Using barber 0.12.2
3: barber (0.12.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/barber-0.12.2.gemspec
Using uglifier 4.2.0
3: uglifier (4.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/uglifier-4.2.0.gemspec
Fetching bootsnap 1.7.7
Installing bootsnap 1.7.7 with native extensions
Building native extensions. This could take a while…
3: bootsnap (1.7.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/bootsnap-1.7.7.gemspec
Using openssl-signature_algorithm 1.1.1
3: openssl-signature_algorithm (1.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/openssl-signature_algorithm-1.1.1.gemspec
Using pry 0.13.1
3: pry (0.13.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec
Using ecma-re-validator 0.3.0
3: ecma-re-validator (0.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ecma-re-validator-0.3.0.gemspec
Fetching faraday 1.6.0
Installing faraday 1.6.0
3: faraday (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-1.6.0.gemspec
Using omniauth 1.9.1
3: omniauth (1.9.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-1.9.1.gemspec
Using webpush 1.1.0
3: webpush (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/webpush-1.1.0.gemspec
Using mini_racer 0.4.0
3: mini_racer (0.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_racer-0.4.0.gemspec
Using logstash-logger 0.26.1
3: logstash-logger (0.26.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logstash-logger-0.26.1.gemspec
Using i18n 1.8.10
3: i18n (1.8.10) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/i18n-1.8.10.gemspec
Using tzinfo 2.0.4
3: tzinfo (2.0.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/tzinfo-2.0.4.gemspec
Using sprockets 3.7.2
3: sprockets (3.7.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-3.7.2.gemspec
Using image_optim 0.30.0
3: image_optim (0.30.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/image_optim-0.30.0.gemspec
Using sidekiq 6.2.1
3: sidekiq (6.2.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sidekiq-6.2.1.gemspec
Using redis-namespace 1.8.1
3: redis-namespace (1.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/redis-namespace-1.8.1.gemspec
Using unicorn 6.0.0
3: unicorn (6.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unicorn-6.0.0.gemspec
Using rqrcode 2.0.0
3: rqrcode (2.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rqrcode-2.0.0.gemspec
Using unf 0.1.4
3: unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf-0.1.4.gemspec
Fetching loofah 2.11.0
Installing loofah 2.11.0
3: loofah (2.11.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/loofah-2.11.0.gemspec
Using ruby-readability 0.7.0
3: ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ruby-readability-0.7.0.gemspec
Fetching sanitize 6.0.0
Installing sanitize 6.0.0
3: sanitize (6.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sanitize-6.0.0.gemspec
Fetching css_parser 1.10.0
Installing css_parser 1.10.0
3: css_parser (1.10.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/css_parser-1.10.0.gemspec
Using aws-sdk-core 3.112.1
3: aws-sdk-core (3.112.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-core-3.112.1.gemspec
Using cose 1.2.0
3: cose (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cose-1.2.0.gemspec
Using pry-byebug 3.9.0
3: pry-byebug (3.9.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec
Using pry-rails 0.3.9
3: pry-rails (0.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-rails-0.3.9.gemspec
Using json_schemer 0.2.18
3: json_schemer (0.2.18) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/json_schemer-0.2.18.gemspec
Using oauth2 1.4.7
3: oauth2 (1.4.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oauth2-1.4.7.gemspec
Using omniauth-oauth 1.2.0
3: omniauth-oauth (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth-1.2.0.gemspec
Using activesupport 6.1.3.2
3: activesupport (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activesupport-6.1.3.2.gemspec
Using ember-handlebars-template 0.8.0
3: ember-handlebars-template (0.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-handlebars-template-0.8.0.gemspec
Using mini_scheduler 0.13.0
3: mini_scheduler (0.13.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_scheduler-0.13.0.gemspec
Using rails-html-sanitizer 1.3.0
3: rails-html-sanitizer (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-html-sanitizer-1.3.0.gemspec
Fetching aws-sdk-kms 1.44.0
1: nio4r (2.5.8) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nio4r-2.5.8.gemspec
Using aws-sdk-sns 1.38.0
1: aws-sdk-sns (1.38.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-sns-1.38.0.gemspec
Using omniauth-oauth2 1.7.1
1: omniauth-oauth2 (1.7.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth2-1.7.1.gemspec
Using omniauth-twitter 1.4.0
1: omniauth-twitter (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-twitter-1.4.0.gemspec
Using rails-dom-testing 2.0.3
1: rails-dom-testing (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-dom-testing-2.0.3.gemspec
Fetching globalid 0.5.2
Installing globalid 0.5.2
1: globalid (0.5.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/globalid-0.5.2.gemspec
Using activemodel 6.1.3.2
1: activemodel (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activemodel-6.1.3.2.gemspec
Fetching puma 5.4.0
Installing aws-sdk-kms 1.44.0
3: aws-sdk-kms (1.44.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-kms-1.44.0.gemspec
Using omniauth-facebook 8.0.0
3: omniauth-facebook (8.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-facebook-8.0.0.gemspec
Using omniauth-github 1.4.0
3: omniauth-github (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-github-1.4.0.gemspec
Using omniauth-google-oauth2 0.8.2
3: omniauth-google-oauth2 (0.8.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-google-oauth2-0.8.2.gemspec
Using actionview 6.1.3.2
3: actionview (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview-6.1.3.2.gemspec
Using activejob 6.1.3.2
3: activejob (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activejob-6.1.3.2.gemspec
Using active_model_serializers 0.8.4
3: active_model_serializers (0.8.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/active_model_serializers-0.8.4.gemspec
Using activerecord 6.1.3.2
3: activerecord (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activerecord-6.1.3.2.gemspec
Fetching aws-sdk-s3 1.96.1
Installing puma 5.4.0 with native extensions
Building native extensions. This could take a while…
Installing aws-sdk-s3 1.96.1
3: aws-sdk-s3 (1.96.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-s3-1.96.1.gemspec
Using actionpack 6.1.3.2
3: actionpack (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionpack-6.1.3.2.gemspec
Using actionview_precompiler 0.2.3
3: actionview_precompiler (0.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview_precompiler-0.2.3.gemspec
Using seed-fu 2.3.9
3: seed-fu (2.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/seed-fu-2.3.9.gemspec
Using actionmailer 6.1.3.2
3: actionmailer (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionmailer-6.1.3.2.gemspec
Using railties 6.1.3.2
3: railties (6.1.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/railties-6.1.3.2.gemspec
Using sprockets-rails 3.2.2
3: sprockets-rails (3.2.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-rails-3.2.2.gemspec
Using jquery-rails 4.4.0
3: jquery-rails (4.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jquery-rails-4.4.0.gemspec
Using lograge 0.11.2
3: lograge (0.11.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lograge-0.11.2.gemspec
Using rails_failover 0.7.3
3: rails_failover (0.7.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_failover-0.7.3.gemspec
Using rails_multisite 3.0.0
3: rails_multisite (3.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_multisite-3.0.0.gemspec
Using discourse-ember-rails 0.18.6
3: discourse-ember-rails (0.18.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-ember-rails-0.18.6.gemspec
1: puma (5.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/puma-5.4.0.gemspec
0: oj (3.12.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oj-3.12.3.gemspec
2: ffi (1.15.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ffi-1.15.3.gemspec
Using mini_suffix 0.3.2
Using rbtrace 0.4.14
Using sassc 2.0.1
3: mini_suffix (0.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_suffix-0.3.2.gemspec
0: sassc (2.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-2.0.1.gemspec
1: rbtrace (0.4.14) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rbtrace-0.4.14.gemspec
Using sassc-rails 2.1.2
2: sassc-rails (2.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-rails-2.1.2.gemspec
Bundle complete! 126 Gemfile dependencies, 171 gems now installed.
Gems in the groups ‘test’ and ‘development’ were not installed.
Bundled gems are installed into ./vendor/bundle
Post-install message from rubyzip:
RubyZip 3.0 is coming!
The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
Zip::FileZip::EntryZip::InputStreamZip::OutputStream
Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See GitHub - rubyzip/rubyzip: Official Rubyzip repository · GitHub for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
I, [2021-08-06T20:56:22.471704 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake plugin:pull_compatible_all’
I, [2021-08-06T20:56:24.062109 #1] INFO – : discourse-voting is already at latest compatible version
discourse-giphy is already at latest compatible version
discourse-telegram-notifications is already at latest compatible version
docker_manager is already at latest compatible version
I, [2021-08-06T20:56:24.062282 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
I, [2021-08-06T20:56:27.409456 #1] INFO – :
I, [2021-08-06T20:56:27.409667 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’
Purging temp files
Bundling assets
I, [2021-08-06T20:56:33.444442 #3947] INFO – : Writing /var/www/discourse/public/assets/vendor-9e69876ef88af15a98c891006ce921a856d493aeca4be129f273759800f9fbe2.js
<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I, [2021-08-06T20:56:49.951479 #3947] INFO – : Writing /var/www/discourse/public/assets/plugins/discourse-details-61554ea83ad59329c2d5c9f0390a0498f3e3665deb58d32dc608aeca24fa0bb9.js
rake aborted!
Barber::PrecompilerError: Pre compilation failed for: {{#d-modal-body id=“giphy-modal”}}
. Compiler said: ReferenceError: console is not defined
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/barber-0.12.2/lib/barber/precompiler.rb:33:in rescue in compile' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/barber-0.12.2/lib/barber/precompiler.rb:30:in compile’
<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:66:in block (2 levels) in define' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>’
/usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in ’
Caused by:
ExecJS::ProgramError: ReferenceError: console is not defined
logDeprecationStackTrace ((execjs):7049:11)
HANDLERS. ((execjs):7126:11)
raiseOnDeprecation ((execjs):7059:11)
HANDLERS. ((execjs):7126:11)
invoke ((execjs):7138:11)
deprecate ((execjs):7097:30)
(execjs):11958:56
Array.forEach ((execjs))
MustacheStatement ((execjs):11956:29)
visitNode ((execjs):10234:16)
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:219:in eval_unsafe' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:219:in block (2 levels) in eval’
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:339:in timeout' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:218:in block in eval’
<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:66:in block (2 levels) in define' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>’
/usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in ’
Caused by:
MiniRacer::RuntimeError: ReferenceError: console is not defined
JavaScript at logDeprecationStackTrace (:7049:11)
JavaScript at HANDLERS. (:7126:11)
JavaScript at raiseOnDeprecation (:7059:11)
JavaScript at HANDLERS. (:7126:11)
JavaScript at invoke (:7138:11)
JavaScript at deprecate (:7097:30)
JavaScript at :11958:56
JavaScript at Array.forEach ()
JavaScript at MustacheStatement (:11956:29)
JavaScript at visitNode (:10234:16)
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:219:in eval_unsafe' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.4.0/lib/mini_racer.rb:219:in block (2 levels) in eval’
<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:66:in block (2 levels) in define' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>’
/usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in ’
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I, [2021-08-06T20:56:50.056489 #1] INFO – : Updating Vincent…
Updating Material Design…
I, [2021-08-06T20:56:50.056766 #1] INFO – : Terminating async processes
I, [2021-08-06T20:56:50.056803 #1] INFO – : Sending INT to 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: 57
I, [2021-08-06T20:56:50.056832 #1] INFO – : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 174
174:signal-handler (1628283410) Received SIGTERM scheduling shutdown…
2021-08-06 20:56:50.056 UTC [57] LOG: received fast shutdown request
174:M 06 Aug 2021 20:56:50.067 # User requested shutdown…
174:M 06 Aug 2021 20:56:50.067 * Saving the final RDB snapshot before exiting.
2021-08-06 20:56:50.068 UTC [57] LOG: aborting any active transactions
2021-08-06 20:56:50.069 UTC [57] LOG: background worker “logical replication launcher” (PID 66) exited with exit code 1
2021-08-06 20:56:50.069 UTC [61] LOG: shutting down
174:M 06 Aug 2021 20:56:50.085 * DB saved on disk
174:M 06 Aug 2021 20:56:50.085 # Redis is now ready to exit, bye bye…
2021-08-06 20:56:50.125 UTC [57] LOG: database system is shut down
FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’ failed with return #<Process::Status: pid 3945 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn’
exec failed with the params {“cd”=>“$home”, “hook”=>“assets_precompile”, “cmd”=>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]}
475409d9256a492683c02da01e68da51c5fd8de79a6f8565ac1de486f734657f
** 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.
感谢您的帮助。谢谢