我遇到一个重建问题,已经持续至少一周了。
完整重建日志
x86_64 架构已检测到。
确保启动器为最新版本
正在获取 origin
启动器已是最新版本
正在停止旧容器
+ /usr/bin/docker stop -t 60 app
app
2.0.20230116-0051: 正在从 discourse/base 拉取
摘要:sha256:9e75876adb52427902a6d76dab731c4888af811d7e5ad9ee6efcec4ce6db986f
状态:discourse/base:2.0.20230116-0051 镜像已是最新版本
docker.io/discourse/base:2.0.20230116-0051
/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-02-13T17:50:00.813459 #1] INFO -- : 正在从 stdin 读取
I, [2023-02-13T17:50:00.827169 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2023-02-13T17:50:00.950559 #1] INFO -- : 正在生成区域设置(这可能需要一些时间)...
生成完成。
I, [2023-02-13T17:50:00.951251 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2023-02-13T17:50:00.970572 #1] INFO -- :
I, [2023-02-13T17:50:00.974304 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-02-13T17:50:00.986406 #1] INFO -- :
I, [2023-02-13T17:50:00.986769 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2023-02-13T17:50:00.999333 #1] INFO -- :
I, [2023-02-13T17:50:00.999788 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2023-02-13T17:50:01.011253 #1] INFO -- :
I, [2023-02-13T17:50:01.012019 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-02-13T17:50:01.019445 #1] INFO -- :
I, [2023-02-13T17:50:01.019851 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/02/13 17:50:01 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): 没有那个文件或目录
I, [2023-02-13T17:50:01.063290 #1] INFO -- :
I, [2023-02-13T17:50:01.063642 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-02-13T17:50:01.072201 #1] INFO -- :
I, [2023-02-13T17:50:01.072963 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-02-13T17:50:01.090513 #1] INFO -- :
I, [2023-02-13T17:50:01.091340 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-02-13T17:50:01.096692 #1] INFO -- :
I, [2023-02-13T17:50:01.097243 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-02-13T17:50:01.101503 #1] INFO -- :
I, [2023-02-13T17:50:01.111838 #1] INFO -- : 文件 > /etc/service/postgres/run chmod: +x chown:
I, [2023-02-13T17:50:01.122076 #1] INFO -- : 文件 > /etc/service/postgres/log/run chmod: +x chown:
I, [2023-02-13T17:50:01.134139 #1] INFO -- : 文件 > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2023-02-13T17:50:01.145426 #1] INFO -- : 文件 > /root/upgrade_postgres chmod: +x chown:
I, [2023-02-13T17:50:01.146129 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-02-13T17:50:06.402537 #1] INFO -- :
I, [2023-02-13T17:50:06.402853 #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-02-13T17:50:06.406558 #1] INFO -- :
I, [2023-02-13T17:50:06.406917 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-02-13T17:50:06.518172 #1] INFO -- :
I, [2023-02-13T17:50:06.518562 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-02-13T17:50:06.524559 #1] INFO -- :
I, [2023-02-13T17:50:06.524938 #1] INFO -- : > /root/upgrade_postgres
I, [2023-02-13T17:50:06.547187 #1] INFO -- :
I, [2023-02-13T17:50:06.547920 #1] INFO -- : > rm /root/upgrade_postgres
I, [2023-02-13T17:50:06.555659 #1] INFO -- :
I, [2023-02-13T17:50:06.558880 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 data_directory = '/var/lib/postgresql/13/main' 替换为 data_directory = '/shared/postgres_data'
I, [2023-02-13T17:50:06.564150 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?listen_addresses *=.*) 替换为 listen_addresses = '*'
I, [2023-02-13T17:50:06.565972 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?synchronous_commit *=.*) 替换为 synchronous_commit = $db_synchronous_commit
I, [2023-02-13T17:50:06.566801 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?shared_buffers *=.*) 替换为 shared_buffers = $db_shared_buffers
I, [2023-02-13T17:50:06.567795 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?work_mem *=.*) 替换为 work_mem = $db_work_mem
I, [2023-02-13T17:50:06.568742 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?default_text_search_config *=.*) 替换为 default_text_search_config = '$db_default_text_search_config'
I, [2023-02-13T17:50:06.573059 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-02-13T17:50:06.584147 #1] INFO -- :
I, [2023-02-13T17:50:06.584797 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?checkpoint_segments *=.*) 替换为 checkpoint_segments = $db_checkpoint_segments
I, [2023-02-13T17:50:06.586376 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?logging_collector *=.*) 替换为 logging_collector = $db_logging_collector
I, [2023-02-13T17:50:06.587889 #1] INFO -- : 正在将 /etc/postgresql/13/main/postgresql.conf 中的 (?-mix:#?log_min_duration_statement *=.*) 替换为 log_min_duration_statement = $db_log_min_duration_statement
I, [2023-02-13T17:50:06.589865 #1] INFO -- : 正在将 /etc/postgresql/13/main/pg_hba.conf 中的 (?-mix:^#local +replication +postgres +peer$) 替换为 local replication postgres peer
I, [2023-02-13T17:50:06.590448 #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-02-13T17:50:06.591100 #1] INFO -- : 正在将 /etc/postgresql/13/main/pg_hba.conf 中的 (?-mix:^host.*all.*all.*::1\/128.*$) 替换为 host all all ::/0 md5
I, [2023-02-13T17:50:06.591819 #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-02-13T17:50:06.597699 #1] INFO -- : > sleep 5
2023-02-13 17:50:06.819 UTC [42] LOG: 正在启动 PostgreSQL 13.9 (Debian 13.9-1.pgdg110+1),运行在 x86_64-pc-linux-gnu 上,由 gcc (Debian 10.2.1-6) 10.2.1 20210110 编译,64 位
2023-02-13 17:50:06.820 UTC [42] LOG: 正在监听 IPv4 地址 "0.0.0.0",端口 5432
2023-02-13 17:50:06.820 UTC [42] LOG: 正在监听 IPv6 地址 "::",端口 5432
2023-02-13 17:50:06.850 UTC [42] LOG: 正在监听 Unix 套接字 "/var/run/postgresql/.s.PGSQL.5432"
2023-02-13 17:50:06.885 UTC [45] LOG: 数据库系统在 2023-02-13 17:49:46 UTC 已关闭
2023-02-13 17:50:06.921 UTC [42] LOG: 数据库系统已准备好接受连接
I, [2023-02-13T17:50:11.605091 #1] INFO -- :
I, [2023-02-13T17:50:11.605519 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2023-02-13 17:50:11.744 UTC [55] postgres@postgres ERROR: 数据库 "discourse" 已存在
2023-02-13 17:50:11.744 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: 错误:数据库创建失败:ERROR: 数据库 "discourse" 已存在
I, [2023-02-13T17:50:11.746953 #1] INFO -- :
I, [2023-02-13T17:50:11.747689 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-02-13 17:50:11.848 UTC [59] postgres@discourse ERROR: 角色 "discourse" 已存在
2023-02-13 17:50:11.848 UTC [59] postgres@discourse STATEMENT: create user discourse;
ERROR: 角色 "discourse" 已存在
I, [2023-02-13T17:50:11.852893 #1] INFO -- :
I, [2023-02-13T17:50:11.853159 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-02-13T17:50:11.948397 #1] INFO -- : GRANT
I, [2023-02-13T17:50:11.948722 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-02-13T17:50:12.019061 #1] INFO -- : ALTER SCHEMA
I, [2023-02-13T17:50:12.019790 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2023-02-13T17:50:12.116755 #1] INFO -- : CREATE EXTENSION
I, [2023-02-13T17:50:12.117327 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2023-02-13T17:50:12.185527 #1] INFO -- : CREATE EXTENSION
I, [2023-02-13T17:50:12.186170 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: 扩展 "hstore" 已存在,跳过
I, [2023-02-13T17:50:12.262112 #1] INFO -- : CREATE EXTENSION
I, [2023-02-13T17:50:12.262787 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: 扩展 "pg_trgm" 已存在,跳过
I, [2023-02-13T17:50:12.337318 #1] INFO -- : CREATE EXTENSION
I, [2023-02-13T17:50:12.337781 #1] INFO -- : > sudo -u postgres psql discourse
I, [2023-02-13T17:50:12.342814 #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-02-13T17:50:12.451160 #1] INFO -- : 文件 > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2023-02-13T17:50:12.459133 #1] INFO -- : 文件 > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2023-02-13T17:50:12.459321 #1] INFO -- : > echo postgres installed!
I, [2023-02-13T17:50:12.463417 #1] INFO -- : postgres 已安装!
I, [2023-02-13T17:50:12.473178 #1] INFO -- : 文件 > /etc/service/redis/run chmod: +x chown:
I, [2023-02-13T17:50:12.481643 #1] INFO -- : 文件 > /etc/service/redis/log/run chmod: +x chown:
I, [2023-02-13T17:50:12.488688 #1] INFO -- : 文件 > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2023-02-13T17:50:12.490063 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 daemonize yes 替换为
I, [2023-02-13T17:50:12.491076 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 (?-mix:^pidfile.*$) 替换为
I, [2023-02-13T17:50:12.493151 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-02-13T17:50:12.500018 #1] INFO -- :
I, [2023-02-13T17:50:12.501170 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 (?-mix:^logfile.*$) 替换为 logfile ""
I, [2023-02-13T17:50:12.501975 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 (?-mix:^bind .*$) 替换为
I, [2023-02-13T17:50:12.504166 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 (?-mix:^dir .*$) 替换为 dir /shared/redis_data
I, [2023-02-13T17:50:12.505578 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 (?-mix:^protected-mode yes) 替换为 protected-mode no
I, [2023-02-13T17:50:12.508144 #1] INFO -- : 正在将 /etc/redis/redis.conf 中的 # io-threads 4 替换为 io-threads $redis_io_threads
I, [2023-02-13T17:50:12.509510 #1] INFO -- : > echo redis installed
I, [2023-02-13T17:50:12.514424 #1] INFO -- : redis 已安装
I, [2023-02-13T17:50:12.514846 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-02-13T17:50:12.526866 #1] INFO -- : logfile ""
I, [2023-02-13T17:50:12.527642 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-02-13T17:50:12.530513 #1] INFO -- : > sleep 10
103:C 13 Feb 2023 17:50:12.553 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
103:C 13 Feb 2023 17:50:12.553 # Redis 版本=7.0.7, bits=64, commit=00000000, modified=0, pid=103, 刚刚启动
103:C 13 Feb 2023 17:50:12.553 # 配置已加载
103:M 13 Feb 2023 17:50:12.554 * 单调时钟:POSIX clock_gettime
103:M 13 Feb 2023 17:50:12.556 * 运行模式=独立,端口=6379。
103:M 13 Feb 2023 17:50:12.556 # 服务器已初始化
103:M 13 Feb 2023 17:50:12.556 # 警告:必须启用内存超量使用!如果不启用,在低内存条件下后台保存或复制可能会失败。如果禁用了它,即使在非低内存条件下也可能导致失败,参见 https://github.com/jemalloc/jemalloc/issues/1328。要修复此问题,请将 'vm.overcommit_memory = 1' 添加到 /etc/sysctl.conf,然后重启或运行命令 'sysctl vm.overcommit_memory=1' 使其生效。
103:M 13 Feb 2023 17:50:12.557 * 正在加载由版本 7.0.7 生成的 RDB
103:M 13 Feb 2023 17:50:12.557 * RDB 年龄 28 秒
103:M 13 Feb 2023 17:50:12.557 * 创建时 RDB 内存使用量为 132.80 Mb
103:M 13 Feb 2023 17:50:13.097 * RDB 加载完成,已加载键:12521,已过期键:105。
103:M 13 Feb 2023 17:50:13.097 * 从磁盘加载数据库耗时:0.540 秒
103:M 13 Feb 2023 17:50:13.097 * 已准备好接受连接
I, [2023-02-13T17:50:22.534815 #1] INFO -- :
I, [2023-02-13T17:50:22.535251 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-02-13T17:50:22.543298 #1] INFO -- : thpoff 已安装!
I, [2023-02-13T17:50:22.544616 #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-02-13T17:50:22.714530 #1] INFO -- :
I, [2023-02-13T17:50:22.715359 #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-02-13T17:50:22.886718 #1] INFO -- :
I, [2023-02-13T17:50:22.888488 #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-02-13T17:50:23.038153 #1] INFO -- :
I, [2023-02-13T17:50:23.038621 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-02-13T17:50:23.045035 #1] INFO -- :
I, [2023-02-13T17:50:23.049680 #1] INFO -- : 文件 > /etc/cron.d/anacron chmod: chown:
I, [2023-02-13T17:50:23.060597 #1] INFO -- : 文件 > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2023-02-13T17:50:23.075869 #1] INFO -- : 文件 > /etc/service/unicorn/run chmod: +x chown:
I, [2023-02-13T17:50:23.087959 #1] INFO -- : 文件 > /etc/service/nginx/run chmod: +x chown:
I, [2023-02-13T17:50:23.099865 #1] INFO -- : 文件 > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2023-02-13T17:50:23.110493 #1] INFO -- : 文件 > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2023-02-13T17:50:23.111429 #1] INFO -- : 正在将 /etc/service/unicorn/run 中的 # postgres 替换为 sv start postgres || exit 1
I, [2023-02-13T17:50:23.111903 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-02-13T17:50:23.116175 #1] INFO -- : > apt-get update
130:C 13 Feb 2023 17:50:23.127 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
130:C 13 Feb 2023 17:50:23.127 # Redis 版本=7.0.7, bits=64, commit=00000000, modified=0, pid=130, 刚刚启动
130:C 13 Feb 2023 17:50:23.127 # 配置已加载
130:M 13 Feb 2023 17:50:23.127 * 单调时钟:POSIX clock_gettime
130:M 13 Feb 2023 17:50:23.128 # 警告:无法创建服务器 TCP 监听套接字 *:6379: bind: 地址已在使用中
130:M 13 Feb 2023 17:50:23.128 # 无法监听端口 6379 (TCP),正在中止。
W: GPG 错误:https://dl.yarnpkg.com/debian stable InRelease:以下签名无效:EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
E: 仓库 'https://dl.yarnpkg.com/debian stable InRelease' 未签名。
I, [2023-02-13T17:50:27.097726 #1] INFO -- : 获取:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
获取:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
获取:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
获取:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
获取:5 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [91.7 kB]
获取:6 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
获取:7 https://deb.nodesource.com/node_18.x bullseye InRelease [4,586 B]
获取:8 http://deb.debian.org/debian bullseye/main amd64 Packages [8,183 kB]
获取:9 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [222 kB]
获取:10 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
获取:11 http://deb.debian.org/debian bullseye-backports/main amd64 Packages [395 kB]
错误:6 https://dl.yarnpkg.com/debian stable InRelease
以下签名无效:EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
获取:12 https://deb.nodesource.com/node_18.x bullseye/main amd64 Packages [774 B]
获取:13 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [268 kB]
正在读取软件包列表...
I, [2023-02-13T17:50:27.098511 #1] INFO -- : 正在终止异步进程
I, [2023-02-13T17:50:27.098575 #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: 42 发送 INT
2023-02-13 17:50:27.098 UTC [42] LOG: 收到快速关闭请求
I, [2023-02-13T17:50:27.099690 #1] INFO -- : 正在向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103 发送 TERM
103:signal-handler (1676310627) 收到 SIGTERM,正在计划关闭...
2023-02-13 17:50:27.101 UTC [42] LOG: 正在中止任何活动事务
2023-02-13 17:50:27.105 UTC [42] LOG: 后台工作进程 "logical replication launcher" (PID 51) 以退出代码 1 退出
103:M 13 Feb 2023 17:50:27.106 # 用户请求关闭...
103:M 13 Feb 2023 17:50:27.106 * 正在保存退出前的最终 RDB 快照
2023-02-13 17:50:27.110 UTC [46] LOG: 正在关闭
2023-02-13 17:50:27.210 UTC [42] LOG: 数据库系统已关闭
103:M 13 Feb 2023 17:50:28.091 * 数据库已保存到磁盘
103:M 13 Feb 2023 17:50:28.091 # Redis 现在已准备好退出,再见...
失败
--------------------
Pups::ExecError: apt-get update 失败,返回 #<Process::Status: pid 132 exit 100>
失败位置:/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
执行失败,参数为 {"cmd"=>["apt-get update", "apt-get install -y libsodium-dev"]}
引导失败,退出代码为 100
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
7170699862bb22327b957f56aeb8baaadc4563e521d05c5004fb9d50d6a30953
日志似乎指向我的 app.yml 文件中的以下部分:
## 插件请放在这里
## 详见 https://meta.discourse.org/t/19157
hooks:
before_code:
- exec:
cmd:
- apt-get update
- apt-get install -y libsodium-dev
after_code:
- exec:
cd: $home/plugins
cmd:
我删除了「before_code」部分,重建时收到以下消息:
失败
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' 失败,返回 #<Process::Status: pid 791 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"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
引导失败,退出代码为 1
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
任何建议都将不胜感激!