你好,
我上次升级失败了,当我尝试通过 CLI 重新构建应用时,收到了这个错误信息。不知道为什么它试图创建一个新数据库……但我里面已经有数据了。不过我已经修复了 GitHub 上的这个问题。
root@raspberry:/var/discourse# ./launcher rebuild app
按任意键继续
警告:我们即将开始下载 Discourse 基础镜像
此过程可能需要几分钟到一小时不等,具体取决于您的网络速度
请耐心等待
aarch64: 正在从 discourse/base 拉取
摘要:sha256:542d0d994beb62a22671906445f1845d5d540fe0966f13cbdf248f9b42726d8c
状态:discourse/base:aarch64 镜像已是最新
docker.io/discourse/base:aarch64
确保启动器已是最新
正在获取 origin
git@github.com: 权限被拒绝 (publickey)。
fatal: 无法从远程仓库读取。
请确保您拥有正确的访问权限
并且该仓库存在。
error: 无法获取 origin
启动器已是最新
正在停止旧容器
+ /usr/bin/docker stop -t 60 app
app
aarch64: 正在从 discourse/base 拉取
摘要:sha256:542d0d994beb62a22671906445f1845d5d540fe0966f13cbdf248f9b42726d8c
状态:discourse/base:aarch64 镜像已是最新
docker.io/discourse/base:aarch64
/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-01-22T16:12:27.964252 #1] INFO -- : 正在从 stdin 读取
I, [2023-01-22T16:12:27.979386 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2023-01-22T16:12:28.092157 #1] INFO -- : 正在生成语言环境(这可能需要一段时间)...
生成完成。
I, [2023-01-22T16:12:28.092667 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2023-01-22T16:12:28.103742 #1] INFO -- :
I, [2023-01-22T16:12:28.104616 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-01-22T16:12:28.115315 #1] INFO -- :
I, [2023-01-22T16:12:28.116015 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2023-01-22T16:12:28.125897 #1] INFO -- :
I, [2023-01-22T16:12:28.126613 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2023-01-22T16:12:28.137845 #1] INFO -- :
I, [2023-01-22T16:12:28.138557 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-01-22T16:12:28.148763 #1] INFO -- :
I, [2023-01-22T16:12:28.150244 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/01/22 16:12:28 socat[20] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): 没有那个文件或目录
I, [2023-01-22T16:12:28.169499 #1] INFO -- :
I, [2023-01-22T16:12:28.170128 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-01-22T16:12:28.183364 #1] INFO -- :
I, [2023-01-22T16:12:28.183812 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-01-22T16:12:28.196748 #1] INFO -- :
I, [2023-01-22T16:12:28.197202 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-01-22T16:12:28.207959 #1] INFO -- :
I, [2023-01-22T16:12:28.209215 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-01-22T16:12:28.219905 #1] INFO -- :
I, [2023-01-22T16:12:28.242813 #1] INFO -- : 文件 > /etc/service/postgres/run chmod: +x chown:
I, [2023-01-22T16:12:28.265066 #1] INFO -- : 文件 > /etc/service/postgres/log/run chmod: +x chown:
I, [2023-01-22T16:12:28.287938 #1] INFO -- : 文件 > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2023-01-22T16:12:28.310001 #1] INFO -- : 文件 > /root/upgrade_postgres chmod: +x chown:
I, [2023-01-22T16:12:28.310740 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-01-22T16:12:31.207100 #1] INFO -- :
I, [2023-01-22T16:12:31.207757 #1] INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2023-01-22T16:12:31.216695 #1] INFO -- :
I, [2023-01-22T16:12:31.216948 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-01-22T16:12:31.308519 #1] INFO -- :
I, [2023-01-22T16:12:31.314210 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-01-22T16:12:31.334076 #1] INFO -- :
I, [2023-01-22T16:12:31.334775 #1] INFO -- : > /root/upgrade_postgres
I, [2023-01-22T16:12:31.352468 #1] INFO -- :
I, [2023-01-22T16:12:31.352904 #1] INFO -- : > rm /root/upgrade_postgres
I, [2023-01-22T16:12:31.363279 #1] INFO -- :
I, [2023-01-22T16:12:31.364418 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 data_directory = '/var/lib/postgresql/13/main' 替换为 data_directory = '/shared/postgres_data'
I, [2023-01-22T16:12:31.366869 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?listen_addresses *=.*) 替换为 listen_addresses = '*'
I, [2023-01-22T16:12:31.368383 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?synchronous_commit *=.*) 替换为 synchronous_commit = $db_synchronous_commit
I, [2023-01-22T16:12:31.369927 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?shared_buffers *=.*) 替换为 shared_buffers = $db_shared_buffers
I, [2023-01-22T16:12:31.371692 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?work_mem *=.*) 替换为 work_mem = $db_work_mem
I, [2023-01-22T16:12:31.373159 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?default_text_search_config *=.*) 替换为 default_text_search_config = '$db_default_text_search_config'
I, [2023-01-22T16:12:31.374500 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-01-22T16:12:31.387401 #1] INFO -- :
I, [2023-01-22T16:12:31.388823 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?checkpoint_segments *=.*) 替换为 checkpoint_segments = $db_checkpoint_segments
I, [2023-01-22T16:12:31.390337 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?logging_collector *=.*) 替换为 logging_collector = $db_logging_collector
I, [2023-01-22T16:12:31.391905 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?log_min_duration_statement *=.*) 替换为 log_min_duration_statement = $db_log_min_duration_statement
I, [2023-01-22T16:12:31.393468 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^#local +replication +postgres +peer$) 替换为 local replication postgres peer
I, [2023-01-22T16:12:31.394842 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*127.*$) 替换为 host all all 0.0.0.0/0 md5
I, [2023-01-22T16:12:31.396007 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*::1\/128.*$) 替换为 host all all ::/0 md5
I, [2023-01-22T16:12:31.396988 #1] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2023-01-22T16:12:31.405116 #1] INFO -- : > sleep 5
2023-01-22 16:12:31.519 UTC [43] LOG: 正在启动 PostgreSQL 13.9 (Debian 13.9-1.pgdg110+1),运行在 aarch64-unknown-linux-gnu 上,由 gcc (Debian 10.2.1-6) 10.2.1 20210110 编译,64 位
2023-01-22 16:12:31.520 UTC [43] LOG: 正在监听 IPv4 地址 "0.0.0.0",端口 5432
2023-01-22 16:12:31.520 UTC [43] LOG: 正在监听 IPv6 地址 "::",端口 5432
2023-01-22 16:12:31.526 UTC [43] LOG: 正在监听 Unix 套接字 "/var/run/postgresql/.s.PGSQL.5432"
2023-01-22 16:12:31.560 UTC [46] LOG: 数据库系统在 2023-01-22 16:11:19 UTC 关闭
2023-01-22 16:12:31.578 UTC [43] LOG: 数据库系统已准备好接受连接
I, [2023-01-22T16:12:36.415656 #1] INFO -- :
I, [2023-01-22T16:12:36.416431 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2023-01-22 16:12:36.581 UTC [56] postgres@postgres ERROR: 数据库 "discourse" 已存在
2023-01-22 16:12:36.581 UTC [56] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: 错误:数据库创建失败:ERROR: 数据库 "discourse" 已存在
I, [2023-01-22T16:12:36.588149 #1] INFO -- :
I, [2023-01-22T16:12:36.588684 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-01-22 16:12:36.748 UTC [60] postgres@discourse ERROR: 角色 "discourse" 已存在
2023-01-22 16:12:36.748 UTC [60] postgres@discourse STATEMENT: create user discourse;
ERROR: 角色 "discourse" 已存在
I, [2023-01-22T16:12:36.754542 #1] INFO -- :
I, [2023-01-22T16:12:36.755298 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-01-22T16:12:36.910457 #1] INFO -- : GRANT
I, [2023-01-22T16:12:36.911184 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-01-22T16:12:37.068814 #1] INFO -- : ALTER SCHEMA
I, [2023-01-22T16:12:37.069964 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2023-01-22T16:12:37.236112 #1] INFO -- : CREATE EXTENSION
I, [2023-01-22T16:12:37.237144 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2023-01-22T16:12:37.391853 #1] INFO -- : CREATE EXTENSION
I, [2023-01-22T16:12:37.393031 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2023-01-22T16:12:37.547935 #1] INFO -- : CREATE EXTENSION
I, [2023-01-22T16:12:37.548436 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2023-01-22T16:12:37.701854 #1] INFO -- : CREATE EXTENSION
I, [2023-01-22T16:12:37.703007 #1] INFO -- : > sudo -u postgres psql discourse
I, [2023-01-22T16:12:37.711018 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2023-01-22T16:12:37.890625 #1] INFO -- : 文件 > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2023-01-22T16:12:37.903142 #1] INFO -- : 文件 > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2023-01-22T16:12:37.903435 #1] INFO -- : > echo postgres installed!
I, [2023-01-22T16:12:37.913623 #1] INFO -- : postgres 已安装!
I, [2023-01-22T16:12:37.936127 #1] INFO -- : 文件 > /etc/service/redis/run chmod: +x chown:
I, [2023-01-22T16:12:37.958376 #1] INFO -- : 文件 > /etc/service/redis/log/run chmod: +x chown:
I, [2023-01-22T16:12:37.980097 #1] INFO -- : 文件 > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2023-01-22T16:12:37.981025 #1] INFO -- : 在 /etc/redis/redis.conf 中将 daemonize yes 替换为
I, [2023-01-22T16:12:37.983882 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^pidfile.*$) 替换为
I, [2023-01-22T16:12:37.985853 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-01-22T16:12:37.998106 #1] INFO -- :
I, [2023-01-22T16:12:37.999788 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^logfile.*$) 替换为 logfile ""
I, [2023-01-22T16:12:38.002364 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^bind .*$) 替换为
I, [2023-01-22T16:12:38.004780 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^dir .*$) 替换为 dir /shared/redis_data
I, [2023-01-22T16:12:38.007624 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^protected-mode yes) 替换为 protected-mode no
I, [2023-01-22T16:12:38.009956 #1] INFO -- : 在 /etc/redis/redis.conf 中将 # io-threads 4 替换为 io-threads $redis_io_threads
I, [2023-01-22T16:12:38.011884 #1] INFO -- : > echo redis installed
I, [2023-01-22T16:12:38.022061 #1] INFO -- : redis 已安装
I, [2023-01-22T16:12:38.022796 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-01-22T16:12:38.037763 #1] INFO -- : logfile ""
I, [2023-01-22T16:12:38.038254 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-22T16:12:38.046504 #1] INFO -- : > sleep 10
104:C 22 Jan 2023 16:12:38.069 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
104:C 22 Jan 2023 16:12:38.069 # Redis 版本=7.0.7, 位数=64, 提交=00000000, 修改=0, pid=104, 刚刚启动
104:C 22 Jan 2023 16:12:38.069 # 配置已加载
104:M 22 Jan 2023 16:12:38.070 * 单调时钟:POSIX clock_gettime
104:M 22 Jan 2023 16:12:38.072 * 运行模式=独立,端口=6379。
104:M 22 Jan 2023 16:12:38.072 # 服务器已初始化
104:M 22 Jan 2023 16:12:38.073 # 警告:必须启用内存超用!如果不启用,在低内存条件下后台保存或复制可能会失败。如果禁用了它,即使没有低内存条件也可能导致失败,参见 https://github.com/jemalloc/jemalloc/issues/1328。要修复此问题,请在 /etc/sysctl.conf 中添加 'vm.overcommit_memory = 1',然后重启或运行命令 'sysctl vm.overcommit_memory=1' 使其生效。
104:M 22 Jan 2023 16:12:38.077 * 正在加载由版本 7.0.7 生成的 RDB
104:M 22 Jan 2023 16:12:38.077 * RDB 年龄 79 秒
104:M 22 Jan 2023 16:12:38.077 * 创建时 RDB 内存使用量为 2.34 Mb
104:M 22 Jan 2023 16:12:38.090 * RDB 加载完成,已加载键:489,已过期键:0。
104:M 22 Jan 2023 16:12:38.090 * 从磁盘加载数据库耗时:0.013 秒
104:M 22 Jan 2023 16:12:38.090 * 已准备好接受连接
I, [2023-01-22T16:12:48.057136 #1] INFO -- :
I, [2023-01-22T16:12:48.059228 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-01-22T16:12:48.099935 #1] INFO -- : thpoff 已安装!
I, [2023-01-22T16:12:48.101007 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2023-01-22T16:12:48.412363 #1] INFO -- :
I, [2023-01-22T16:12:48.412857 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2023-01-22T16:12:48.682765 #1] INFO -- :
I, [2023-01-22T16:12:48.683250 #1] INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2023-01-22T16:12:48.951632 #1] INFO -- :
I, [2023-01-22T16:12:48.952136 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-01-22T16:12:48.962921 #1] INFO -- :
I, [2023-01-22T16:12:48.975630 #1] INFO -- : 文件 > /etc/cron.d/anacron chmod: chown:
I, [2023-01-22T16:12:48.998810 #1] INFO -- : 文件 > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2023-01-22T16:12:49.021734 #1] INFO -- : 文件 > /etc/service/unicorn/run chmod: +x chown:
I, [2023-01-22T16:12:49.044617 #1] INFO -- : 文件 > /etc/service/nginx/run chmod: +x chown:
I, [2023-01-22T16:12:49.067385 #1] INFO -- : 文件 > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2023-01-22T16:12:49.090353 #1] INFO -- : 文件 > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2023-01-22T16:12:49.090829 #1] INFO -- : 在 /etc/service/unicorn/run 中将 # postgres 替换为 sv start postgres || exit 1
I, [2023-01-22T16:12:49.091990 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-22T16:12:49.102512 #1] INFO -- : > cd /var/www/discourse && git reset --hard
132:C 22 Jan 2023 16:12:49.123 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
132:C 22 Jan 2023 16:12:49.123 # Redis 版本=7.0.7, 位数=64, 提交=00000000, 修改=0, pid=132, 刚刚启动
132:C 22 Jan 2023 16:12:49.123 # 配置已加载
132:M 22 Jan 2023 16:12:49.124 * 单调时钟:POSIX clock_gettime
132:M 22 Jan 2023 16:12:49.126 # 警告:无法创建服务器 TCP 监听套接字 *:6379: bind: 地址已被占用
132:M 22 Jan 2023 16:12:49.126 # 监听端口 6379 (TCP) 失败,正在中止。
正在更新文件:100% (32693/32693),完成。
I, [2023-01-22T16:13:01.259871 #1] INFO -- : HEAD 现在位于 666536cb DEV: 在正则表达式中优先使用 \A 和 \z 而不是 ^ 和 $ (#19936)
I, [2023-01-22T16:13:01.260171 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2023-01-22T16:13:02.050174 #1] INFO -- :
I, [2023-01-22T16:13:02.050460 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2023-01-22T16:13:02.066433 #1] INFO -- :
I, [2023-01-22T16:13:02.066729 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2023-01-22T16:13:02.083255 #1] INFO -- :
I, [2023-01-22T16:13:02.083545 #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, [2023-01-22T16:13:05.391345 #1] INFO -- :
I, [2023-01-22T16:13:05.391616 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
已切换到新分支 'tests-passed'
I, [2023-01-22T16:13:05.859548 #1] INFO -- : 分支 'tests-passed' 已设置以跟踪来自 'origin' 的远程分支 'tests-passed'。
I, [2023-01-22T16:13:05.859819 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-01-22T16:13:05.875697 #1] INFO -- :
I, [2023-01-22T16:13:05.875998 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-01-22T16:13:05.890377 #1] INFO -- :
I, [2023-01-22T16:13:05.890688 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-01-22T16:13:05.905017 #1] INFO -- :
I, [2023-01-22T16:13:05.905319 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-01-22T16:13:05.919648 #1] INFO -- :
I, [2023-01-22T16:13:05.919912 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-01-22T16:13:05.933121 #1] INFO -- :
I, [2023-01-22T16:13:05.933466 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2023-01-22T16:13:05.948420 #1] INFO -- :
I, [2023-01-22T16:13:05.948698 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-01-22T16:13:05.970561 #1] INFO -- :
I, [2023-01-22T16:13:05.970804 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"I, [2023-01-22T16:13:05.991807 #1] INFO -- :
I, [2023-01-22T16:13:05.992147 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2023-01-22T16:13:06.012076 #1] INFO -- :
I, [2023-01-22T16:13:06.012329 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-01-22T16:13:06.031421 #1] INFO -- :
I, [2023-01-22T16:13:06.031681 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2023-01-22T16:13:06.051759 #1] INFO -- :
I, [2023-01-22T16:13:06.052008 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-01-22T16:13:06.071357 #1] INFO -- :
I, [2023-01-22T16:13:06.071627 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-01-22T16:13:06.095048 #1] INFO -- :
I, [2023-01-22T16:13:06.095325 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
find: ‘public/plugins/’: 没有那个文件或目录
I, [2023-01-22T16:13:06.110618 #1] INFO -- :
I, [2023-01-22T16:13:06.111471 #1] INFO -- : 正在终止异步进程
I, [2023-01-22T16:13:06.111687 #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: 43 发送 INT
I, [2023-01-22T16:13:06.111876 #1] INFO -- : 向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 104 发送 TERM
2023-01-22 16:13:06.112 UTC [43] LOG: 收到快速关闭请求
104:signal-handler (1674403986) 收到 SIGTERM,计划关闭...
104:M 22 Jan 2023 16:13:06.117 # 用户请求关闭...
104:M 22 Jan 2023 16:13:06.117 * 正在保存退出前的最终 RDB 快照。
2023-01-22 16:13:06.146 UTC [43] LOG: 中止任何活动事务
2023-01-22 16:13:06.154 UTC [43] LOG: 后台工作进程 "logical replication launcher" (PID 52) 以退出代码 1 退出
2023-01-22 16:13:06.154 UTC [47] LOG: 正在关闭
104:M 22 Jan 2023 16:13:06.158 * 数据库已保存到磁盘
104:M 22 Jan 2023 16:13:06.158 # Redis 现在已准备好退出,再见...
2023-01-22 16:13:06.212 UTC [43] LOG: 数据库系统已关闭
失败
--------------------
Pups::ExecError: cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete 失败,返回 #<Process::Status: pid 220 exit 1>
失败位置:/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
执行失败,参数为 {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp", "find public/plugins/ -maxdepth 1 -xtype l -delete"]}
引导失败,退出代码为 1
** 引导失败 ** 请向上滚动查看更早的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
cafd6d79bccd64364c62a194be3256627fadc84219e801b2db34d42e0c74317c