你好,
我刚刚尝试将 Discourse 的 Docker 版本更新到最新版本,但出现了以下错误,网站已宕机,且我无法重新构建。我尝试禁用了所有插件,但仍然出现相同的错误:
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 449 exit 1>
失败位置: /pups/lib/pups/exec_command.rb:112:in `spawn'
执行失败,参数为 {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
309140db90850e9ea6644e471ee47f5fea3a1bb6ea36577280d3c431eaf497fe
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一个。
以下是 ./discourse-doctor 的输出结果,有什么想法可能导致此问题吗?
DISCOURSE DOCTOR Wed Jun 9 18:15:39 BST 2021
操作系统: Linux h79-143-80-210 3.13.0-147-generic #196-Ubuntu SMP Wed May 2 15:51:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
==================== DOCKER 信息 ====================
DOCKER 版本: Docker version 18.06.1-ce, build e68fc7a
DOCKER 进程 (docker ps -a)
容器 ID 镜像 命令 创建时间 状态 端口 名称
6084a0e22b64 local_discourse/app "/sbin/boot" 5 周前 9 分钟前退出 (5) app
==================== 严重问题!!!! ====================
app 未运行!
尝试重新构建
==================== 重新构建日志 ====================
确保 launcher 是最新的
获取 origin
Launcher 已是最新
停止旧容器
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
来自 https://github.com/discourse/pups
17f04ec..44198d7 master -> origin/master
* [新分支] add-ignore-option -> origin/add-ignore-option
+ 4db217f...af226b0 gen-env-args -> origin/gen-env-args (强制更新)
更新 17f04ec..44198d7
快进
.github/workflows/ci.yml | 29 ++++++
.github/workflows/lint.yml | 27 ++++++
.rubocop.yml | 3 +
Gemfile | 2 +
Guardfile | 4 +-
README.md | 9 ++
Rakefile | 14 +--
bin/pups | 8 +-
lib/pups.rb | 32 ++++---
lib/pups/cli.rb | 85 +++++++++--------
lib/pups/command.rb | 25 ++---
lib/pups/config.rb | 217 +++++++++++++++++++++----------------------
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 | 25 +++--
test/config_test.rb | 125 +++++++++++++------------
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 +
26 个文件已更改,712 行插入(+),618 行删除(-)
创建模式 100644 .github/workflows/ci.yml
创建模式 100644 .github/workflows/lint.yml
创建模式 100644 .rubocop.yml
注意:正在检出 'v1.0.3'。
您处于“分离头指针”状态。您可以四处查看,进行实验性更改并提交,并且可以通过执行另一次检出来丢弃在此状态下进行的任何提交,而不会影响任何分支。
如果您想创建一个新分支来保留您创建的提交,您可以这样做(现在或以后),方法是再次使用带有 -b 的 checkout 命令。例如:
git checkout -b <新分支名称>
头指针现在位于 d1db030 cut一个新版本
I, [2021-06-09T17:15:48.541059 #1] INFO -- : 正在加载 --stdin
I, [2021-06-09T17:15:48.547260 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2021-06-09T17:15:48.581289 #1] INFO -- : 正在生成区域设置(这可能需要一些时间)...
生成完成。
I, [2021-06-09T17:15:48.581551 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2021-06-09T17:15:48.585489 #1] INFO -- :
I, [2021-06-09T17:15:48.585715 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-06-09T17:15:48.588562 #1] INFO -- :
I, [2021-06-09T17:15:48.588757 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2021-06-09T17:15:48.591247 #1] INFO -- :
I, [2021-06-09T17:15:48.591474 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2021-06-09T17:15:48.594255 #1] INFO -- :
I, [2021-06-09T17:15:48.594478 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-06-09T17:15:48.597015 #1] INFO -- :
I, [2021-06-09T17:15:48.597231 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/06/09 17:15:48 socat[33] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-06-09T17:15:48.603543 #1] INFO -- :
I, [2021-06-09T17:15:48.603775 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-06-09T17:15:48.607952 #1] INFO -- :
I, [2021-06-09T17:15:48.608200 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-06-09T17:15:48.612365 #1] INFO -- :
I, [2021-06-09T17:15:48.612608 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-06-09T17:15:48.616089 #1] INFO -- :
I, [2021-06-09T17:15:48.616338 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-06-09T17:15:48.619784 #1] INFO -- :
I, [2021-06-09T17:15:48.627365 #1] INFO -- : 文件 > /etc/service/postgres/run chmod: +x chown:
I, [2021-06-09T17:15:48.634715 #1] INFO -- : 文件 > /etc/service/postgres/log/run chmod: +x chown:
I, [2021-06-09T17:15:48.641257 #1] INFO -- : 文件 > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2021-06-09T17:15:48.647799 #1] INFO -- : 文件 > /root/upgrade_postgres chmod: +x chown:
I, [2021-06-09T17:15:48.648283 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-06-09T17:15:48.745062 #1] INFO -- :
I, [2021-06-09T17:15:48.745241 #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-06-09T17:15:48.747853 #1] INFO -- :
I, [2021-06-09T17:15:48.747918 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-06-09T17:15:48.768688 #1] INFO -- :
I, [2021-06-09T17:15:48.768793 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-06-09T17:15:48.770937 #1] INFO -- :
I, [2021-06-09T17:15:48.771145 #1] INFO -- : > /root/upgrade_postgres
I, [2021-06-09T17:15:48.776325 #1] INFO -- :
I, [2021-06-09T17:15:48.776522 #1] INFO -- : > rm /root/upgrade_postgres
I, [2021-06-09T17:15:48.778762 #1] INFO -- :
I, [2021-06-09T17:15:48.779198 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 data_directory = '/var/lib/postgresql/13/main' 替换为 data_directory = '/shared/postgres_data'
I, [2021-06-09T17:15:48.780060 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?listen_addresses *=.*) 替换为 listen_addresses = '*'
I, [2021-06-09T17:15:48.780857 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?synchronous_commit *=.*) 替换为 synchronous_commit = $db_synchronous_commit
I, [2021-06-09T17:15:48.781387 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?shared_buffers *=.*) 替换为 shared_buffers = $db_shared_buffers
I, [2021-06-09T17:15:48.781909 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?work_mem *=.*) 替换为 work_mem = $db_work_mem
I, [2021-06-09T17:15:48.782428 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?default_text_search_config *=.*) 替换为 default_text_search_config = '$db_default_text_search_config'
I, [2021-06-09T17:15:48.782909 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-06-09T17:15:48.786951 #1] INFO -- :
I, [2021-06-09T17:15:48.787418 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?checkpoint_segments *=.*) 替换为 checkpoint_segments = $db_checkpoint_segments
I, [2021-06-09T17:15:48.787937 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?logging_collector *=.*) 替换为 logging_collector = $db_logging_collector
I, [2021-06-09T17:15:48.788464 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?log_min_duration_statement *=.*) 替换为 log_min_duration_statement = $db_log_min_duration_statement
I, [2021-06-09T17:15:48.788988 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^#local +replication +postgres +peer$) 替换为 local replication postgres peer
I, [2021-06-09T17:15:48.789493 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*127.*$) 替换为 host all all 0.0.0.0/0 md5
I, [2021-06-09T17:15:48.789922 #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-06-09T17:15:48.792209 #1] INFO -- : > sleep 5
2021-06-09 17:15:48.829 UTC [56] LOG: 正在启动 PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1),运行于 x86_64-pc-linux-gnu,由 gcc (Debian 8.3.0-6) 8.3.0 编译,64位
2021-06-09 17:15:48.829 UTC [56] LOG: 正在监听 IPv4 地址 "0.0.0.0",端口 5432
2021-06-09 17:15:48.829 UTC [56] LOG: 正在监听 IPv6 地址 "::",端口 5432
2021-06-09 17:15:48.830 UTC [56] LOG: 正在监听 Unix 套接字 "/var/run/postgresql/.s.PGSQL.5432"
2021-06-09 17:15:48.833 UTC [59] LOG: 数据库系统已于 2021-06-09 17:06:49 UTC 关闭
2021-06-09 17:15:48.837 UTC [56] LOG: 数据库系统已准备就绪,可以接受连接
I, [2021-06-09T17:15:53.795707 #1] INFO -- :
I, [2021-06-09T17:15:53.796024 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2021-06-09 17:15:53.858 UTC [69] postgres@postgres ERROR: 数据库 "discourse" 已存在
2021-06-09 17:15:53.858 UTC [69] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: 错误:数据库创建失败:ERROR: 数据库 "discourse" 已存在
I, [2021-06-09T17:15:53.860168 #1] INFO -- :
I, [2021-06-09T17:15:53.860419 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-06-09 17:15:53.929 UTC [80] postgres@discourse ERROR: 角色 "discourse" 已存在
2021-06-09 17:15:53.929 UTC [80] postgres@discourse STATEMENT: create user discourse;
ERROR: 角色 "discourse" 已存在
I, [2021-06-09T17:15:53.931099 #1] INFO -- :
I, [2021-06-09T17:15:53.931380 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-06-09T17:15:53.999605 #1] INFO -- : GRANT
I, [2021-06-09T17:15:53.999906 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-06-09T17:15:54.072279 #1] INFO -- : ALTER SCHEMA
I, [2021-06-09T17:15:54.072566 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2021-06-09T17:15:54.146269 #1] INFO -- : CREATE EXTENSION
I, [2021-06-09T17:15:54.146478 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2021-06-09T17:15:54.214671 #1] INFO -- : CREATE EXTENSION
I, [2021-06-09T17:15:54.215057 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2021-06-09T17:15:54.287421 #1] INFO -- : CREATE EXTENSION
I, [2021-06-09T17:15:54.287676 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2021-06-09T17:15:54.358707 #1] INFO -- : CREATE EXTENSION
I, [2021-06-09T17:15:54.359168 #1] INFO -- : > sudo -u postgres psql discourse
I, [2021-06-09T17:15:54.361595 #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-06-09T17:15:54.441578 #1] INFO -- : 文件 > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2021-06-09T17:15:54.445975 #1] INFO -- : 文件 > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2021-06-09T17:15:54.446132 #1] INFO -- : > echo postgres installed!
I, [2021-06-09T17:15:54.449248 #1] INFO -- : postgres installed!
I, [2021-06-09T17:15:54.455508 #1] INFO -- : 文件 > /etc/service/redis/run chmod: +x chown:
I, [2021-06-09T17:15:54.461760 #1] INFO -- : 文件 > /etc/service/redis/log/run chmod: +x chown:
I, [2021-06-09T17:15:54.467970 #1] INFO -- : 文件 > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2021-06-09T17:15:54.468236 #1] INFO -- : 在 /etc/redis/redis.conf 中将 daemonize yes 替换为
I, [2021-06-09T17:15:54.469064 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^pidfile.*$) 替换为
I, [2021-06-09T17:15:54.470014 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-06-09T17:15:54.472748 #1] INFO -- :
I, [2021-06-09T17:15:54.473111 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^logfile.*$) 替换为 logfile ""
I, [2021-06-09T17:15:54.473856 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^bind .*$) 替换为
I, [2021-06-09T17:15:54.474545 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^dir .*$) 替换为 dir /shared/redis_data
I, [2021-06-09T17:15:54.475408 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^protected-mode yes) 替换为 protected-mode no
I, [2021-06-09T17:15:54.476042 #1] INFO -- : 在 /etc/redis/redis.conf 中将 # io-threads 4 替换为 io-threads $redis_io_threads
I, [2021-06-09T17:15:54.476623 #1] INFO -- : > echo redis installed
I, [2021-06-09T17:15:54.478913 #1] INFO -- : redis installed
I, [2021-06-09T17:15:54.479100 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-06-09T17:15:54.482701 #1] INFO -- : logfile ""
I, [2021-06-09T17:15:54.482860 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-06-09T17:15:54.484286 #1] INFO -- : > sleep 10
173:C 09 Jun 2021 17:15:54.489 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
173:C 09 Jun 2021 17:15:54.489 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=173, just started
173:C 09 Jun 2021 17:15:54.489 # Configuration loaded
173:M 09 Jun 2021 17:15:54.489 * monotonic clock: POSIX clock_gettime
173:M 09 Jun 2021 17:15:54.490 * Running mode=standalone, port=6379.
173:M 09 Jun 2021 17:15:54.490 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
173:M 09 Jun 2021 17:15:54.490 # Server initialized
173:M 09 Jun 2021 17:15:54.490 # 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.
173:M 09 Jun 2021 17:15:54.490 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never').
173:M 09 Jun 2021 17:15:54.490 * Loading RDB produced by version 6.2.3
173:M 09 Jun 2021 17:15:54.490 * RDB age 545 seconds
173:M 09 Jun 2021 17:15:54.490 * RDB memory usage when created 48.75 Mb
173:M 09 Jun 2021 17:15:54.632 * DB loaded from disk: 0.142 seconds
173:M 09 Jun 2021 17:15:54.632 * Ready to accept connections
I, [2021-06-09T17:16:04.486234 #1] INFO -- :
I, [2021-06-09T17:16:04.486551 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-06-09T17:16:04.492079 #1] INFO -- : thpoff is installed!
I, [2021-06-09T17:16:04.492318 #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-06-09T17:16:04.564478 #1] INFO -- :
I, [2021-06-09T17:16:04.564833 #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-06-09T17:16:04.633789 #1] INFO -- :
I, [2021-06-09T17:16:04.634145 #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-06-09T17:16:04.702442 #1] INFO -- :
I, [2021-06-09T17:16:04.702787 #1] INFO -- : > chown -R discourse /home/discourse
I, [2021-06-09T17:16:04.756374 #1] INFO -- :
I, [2021-06-09T17:16:04.756704 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-06-09T17:16:04.760585 #1] INFO -- :
I, [2021-06-09T17:16:04.764495 #1] INFO -- : 文件 > /etc/cron.d/anacron chmod: chown:
I, [2021-06-09T17:16:04.770841 #1] INFO -- : 文件 > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2021-06-09T17:16:04.777110 #1] INFO -- : 文件 > /etc/service/unicorn/run chmod: +x chown:
I, [2021-06-09T17:16:04.784325 #1] INFO -- : 文件 > /etc/service/nginx/run chmod: +x chown:
I, [2021-06-09T17:16:04.791191 #1] INFO -- : 文件 > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2021-06-09T17:16:04.797822 #1] INFO -- : 文件 > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2021-06-09T17:16:04.798063 #1] INFO -- : 在 /etc/service/unicorn/run 中将 # postgres 替换为 sv start postgres || exit 1
I, [2021-06-09T17:16:04.798498 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-06-09T17:16:04.801159 #1] INFO -- : > cd /var/www/discourse && git reset --hard
202:C 09 Jun 2021 17:16:04.805 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
202:C 09 Jun 2021 17:16:04.805 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=202, just started
202:C 09 Jun 2021 17:16:04.805 # Configuration loaded
202:M 09 Jun 2021 17:16:04.806 * monotonic clock: POSIX clock_gettime
202:M 09 Jun 2021 17:16:04.806 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
202:M 09 Jun 2021 17:16:04.806 # Failed listening on port 6379 (TCP), aborting.
正在检出文件:100% (28860/28860),完成。
I, [2021-06-09T17:16:06.924867 #1] INFO -- : HEAD is now at 74f71503 FEATURE: Automatically timed delete stub topics after entire topic is merged into another topic (#13187)
I, [2021-06-09T17:16:06.924989 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-06-09T17:16:07.016232 #1] INFO -- :
I, [2021-06-09T17:16:07.016466 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2021-06-09T17:16:07.020571 #1] INFO -- :
I, [2021-06-09T17:16:07.020650 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-06-09T17:16:07.420156 #1] INFO -- :
I, [2021-06-09T17:16:07.420323 #1] INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
来自 https://github.com/discourse/discourse
* 分支 tests-passed -> FETCH_HEAD
* [新分支] tests-passed -> origin/tests-passed
I, [2021-06-09T17:16:13.888848 #1] INFO -- :
I, [2021-06-09T17:16:13.889069 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
已切换到新分支 'tests-passed'
I, [2021-06-09T17:16:14.942809 #1] INFO -- : 分支 'tests-passed' 已设置为跟踪来自 'origin' 的远程分支 'tests-passed'。
I, [2021-06-09T17:16:14.943087 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-06-09T17:16:14.948641 #1] INFO -- :
I, [2021-06-09T17:16:14.948775 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-06-09T17:16:14.953695 #1] INFO -- :
I, [2021-06-09T17:16:14.953805 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-06-09T17:16:14.958785 #1] INFO -- :
I, [2021-06-09T17:16:14.958884 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-06-09T17:16:14.964009 #1] INFO -- :
I, [2021-06-09T17:16:14.964161 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-06-09T17:16:14.968736 #1] INFO -- :
I, [2021-06-09T17:16:14.968878 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2021-06-09T17:16:14.973740 #1] INFO -- :
I, [2021-06-09T17:16:14.973868 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-06-09T17:16:14.981370 #1] INFO -- :
I, [2021-06-09T17:16:14.981509 #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-06-09T17:16:14.988896 #1] INFO -- :
I, [2021-06-09T17:16:14.989030 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2021-06-09T17:16:14.996745 #1] INFO -- :
I, [2021-06-09T17:16:14.996917 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-06-09T17:16:15.004403 #1] INFO -- :
I, [2021-06-09T17:16:15.004570 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2021-06-09T17:16:15.012290 #1] INFO -- :
I, [2021-06-09T17:16:15.012457 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-06-09T17:16:15.020418 #1] INFO -- :
I, [2021-06-09T17:16:15.020572 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-06-09T17:16:15.298235 #1] INFO -- :
I, [2021-06-09T17:16:15.298369 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-06-09T17:16:15.303229 #1] INFO -- :
I, [2021-06-09T17:16:15.303539 #1] INFO -- : 在 /etc/service/unicorn/run 中将 # redis 替换为 sv start redis || exit 1
I, [2021-06-09T17:16:15.304417 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
正克隆到 'docker_manager'...
I, [2021-06-09T17:16:18.074871 #1] INFO -- :
I, [2021-06-09T17:16:18.075094 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-tagging.git
正克隆到 'discourse-tagging'...
I, [2021-06-09T17:16:18.637146 #1] INFO -- :
I, [2021-06-09T17:16:18.637340 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
正克隆到 'discourse-solved'...
I, [2021-06-09T17:16:20.184574 #1] INFO -- :
I, [2021-06-09T17:16:20.184741 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-oauth2-basic.git
正克隆到 'discourse-oauth2-basic'...
I, [2021-06-09T17:16:21.214907 #1] INFO -- :
I, [2021-06-09T17:16:21.215135 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
正克隆到 'discourse-akismet'...
I, [2021-06-09T17:16:21.964386 #1] INFO -- :
I, [2021-06-09T17:16:21.964566 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-staff-notes.git
正克隆到 'discourse-staff-notes'...
I, [2021-06-09T17:16:22.629042 #1] INFO -- :
I, [2021-06-09T17:16:22.629590 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-06-09T17:16:22.633683 #1] INFO -- :
I, [2021-06-09T17:16:22.633844 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-06-09T17:16:22.637380 #1] INFO -- :
I, [2021-06-09T17:16:22.637513 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2021-06-09T17:16:22.641418 #1] INFO -- :
I, [2021-06-09T17:16:22.641789 #1] INFO -- : 在 /etc/nginx/nginx.conf 中将 pid /run/nginx.pid; 替换为 daemon off;
I, [2021-06-09T17:16:22.642367 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?m-ix:upstream[^\}]+\}) 替换为 upstream discourse { server 127.0.0.1:3000; }
I, [2021-06-09T17:16:22.642860 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?-mix:server_name.+$) 替换为 server_name _ ;
I, [2021-06-09T17:16:22.643347 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?-mix:client_max_body_size.+$) 替换为 client_max_body_size $upload_size ;
I, [2021-06-09T17:16:22.643816 #1] INFO -- : > echo "done configuring web"
I, [2021-06-09T17:16:22.646689 #1] INFO -- : done configuring web
I, [2021-06-09T17:16:22.647211 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-06-09T17:16:23.381227 #1] INFO -- : Successfully installed bundler-2.2.19
1 gem installed
I, [2021-06-09T17:16:23.381582 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-06-09T17:16:24.411208 #1] INFO -- :
I, [2021-06-09T17:16:24.411610 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[已弃用] `--deployment` 标志已弃用,因为它依赖于在 bundler 调用之间被记住,而 bundler 在将来版本中将不再这样做。请改用 `bundle config set --local deployment 'true'`,并停止使用此标志
[已弃用] `--without` 标志已弃用,因为它依赖于在 bundler 调用之间被记住,而 bundler 在将来版本中将不再这样做