安装 discourse 时遇到问题

各位专家,大家好!

感谢大家,一直以来我都能顺利解决与 Discourse 相关的问题。我计划运营另一个网站,这源于一个想法的构思阶段。

不过,我遇到了以下错误:

root@swapspace:/var/discourse# ./discourse rebuild app
-bash: ./discourse: 没有那个文件或目录
root@swapspace:/var/discourse# ./launcher rebuild app
WARNING: Support for aarch64 is experimental at the moment. Please report any problems at https://meta.dis                 discourse.org/tag/arm
按任意键继续
WARNING: 我们即将开始下载 Discourse 基础镜像
此过程可能需要几分钟到一小时,具体取决于您的网络速度

请耐心等待

aarch64: 正在从 discourse/base 拉取
摘要:sha256:fb622774bd51f5cbc06e293e3aaf9b49c9b38166010365ef733a3b50d0e545bc
状态:discourse/base:aarch64 镜像已是最新
docker.io/discourse/base:aarch64
确保 launcher 已是最新
正在获取 origin
Launcher 已是最新
aarch64: 正在从 discourse/base 拉取
摘要:sha256:fb622774bd51f5cbc06e293e3aaf9b49c9b38166010365ef733a3b50d0e545bc
状态: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-30T13:12:16.960651 #1]  INFO -- : 正在从 stdin 读取
I, [2023-01-30T13:12:16.965317 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-01-30T13:12:16.989891 #1]  INFO -- : 正在生成区域设置(这可能需要一段时间)...
生成完成。

I, [2023-01-30T13:12:16.990061 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-01-30T13:12:16.993567 #1]  INFO -- :
I, [2023-01-30T13:12:16.993720 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-01-30T13:12:16.996555 #1]  INFO -- :
I, [2023-01-30T13:12:16.996699 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-01-30T13:12:16.999425 #1]  INFO -- :
I, [2023-01-30T13:12:16.999561 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-01-30T13:12:17.002735 #1]  INFO -- :
I, [2023-01-30T13:12:17.002877 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-01-30T13:12:17.005453 #1]  INFO -- :
I, [2023-01-30T13:12:17.005593 #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/30 13:12:17 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): 没有那个文件或目录
I, [2023-01-30T13:12:17.011034 #1]  INFO -- :
I, [2023-01-30T13:12:17.011165 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-01-30T13:12:17.014169 #1]  INFO -- :
I, [2023-01-30T13:12:17.014304 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-01-30T13:12:17.017208 #1]  INFO -- :
I, [2023-01-30T13:12:17.017327 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-01-30T13:12:17.020248 #1]  INFO -- :
I, [2023-01-30T13:12:17.020425 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_st                 at_tmp
I, [2023-01-30T13:12:17.023531 #1]  INFO -- :
I, [2023-01-30T13:12:17.030362 #1]  INFO -- : 文件 > /etc/service/postgres/run  chmod: +x  chown:
I, [2023-01-30T13:12:17.036686 #1]  INFO -- : 文件 > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2023-01-30T13:12:17.042787 #1]  INFO -- : 文件 > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2023-01-30T13:12:17.048171 #1]  INFO -- : 文件 > /root/upgrade_postgres  chmod: +x  chown:
I, [2023-01-30T13:12:17.048529 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-01-30T13:12:19.018805 #1]  INFO -- :
I, [2023-01-30T13:12:19.018957 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o po                 stgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shar                 ed/postgres_data || exit 0
I, [2023-01-30T13:12:19.021611 #1]  INFO -- :
I, [2023-01-30T13:12:19.021685 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-01-30T13:12:19.028927 #1]  INFO -- :
I, [2023-01-30T13:12:19.029030 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-01-30T13:12:19.032323 #1]  INFO -- :
I, [2023-01-30T13:12:19.032501 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-01-30T13:12:19.037473 #1]  INFO -- :
I, [2023-01-30T13:12:19.037616 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-01-30T13:12:19.040384 #1]  INFO -- :
I, [2023-01-30T13:12:19.040665 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 data_directory = '/var/lib/postgresql/13/main' 替换为 data_directory = '/shared/postgres_data'
I, [2023-01-30T13:12:19.041163 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?listen_addresses *=.*) 替换为 listen_addresses = '*'
I, [2023-01-30T13:12:19.042571 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?synchronous_commit *=.*) 替换为 synchronous_commit = $db_synchronous_commit
I, [2023-01-30T13:12:19.043662 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?shared_buffers *=.*) 替换为 shared_buffers = $db_shared_buffers
I, [2023-01-30T13:12:19.044781 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?work_mem *=.*) 替换为 work_mem = $db_work_mem
I, [2023-01-30T13:12:19.045770 #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-30T13:12:19.046800 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgre                 s_backup
I, [2023-01-30T13:12:19.050143 #1]  INFO -- :
I, [2023-01-30T13:12:19.050475 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?checkpoint_segments *=.*) 替换为 checkpoint_segments = $db_checkpoint_segments
I, [2023-01-30T13:12:19.050758 #1]  INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?logging_collector *=.*) 替换为 logging_collector = $db_logging_collector
I, [2023-01-30T13:12:19.052086 #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-30T13:12:19.053245 #1]  INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^#local +replication +postgres +peer$) 替换为 local replication postgres  peer
I, [2023-01-30T13:12:19.053508 #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-30T13:12:19.054435 #1]  INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*::1\/128.*$) 替换为 host all all ::/0 md5
I, [2023-01-30T13:12:19.055129 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postg                 res:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgres                 ql/13/main
I, [2023-01-30T13:12:19.057460 #1]  INFO -- : > sleep 5
2023-01-30 13:12:19.085 UTC [42] LOG:  正在启动 PostgreSQL 13.9 (Debian 13.9-1.pgdg110+1),运行于 aarch64-unkno                 wn-linux-gnu,由 gcc (Debian 10.2.1-6) 10.2.1 20210110 编译,64 位
2023-01-30 13:12:19.085 UTC [42] LOG:  监听 IPv4 地址 "0.0.0.0",端口 5432
2023-01-30 13:12:19.085 UTC [42] LOG:  监听 IPv6 地址 "::",端口 5432
2023-01-30 13:12:19.090 UTC [42] LOG:  监听 Unix 套接字 "/var/run/postgresql/.s.PGSQL.5432"
2023-01-30 13:12:19.096 UTC [45] LOG:  数据库系统在 2023-01-30 13:01:17 UTC 关闭
2023-01-30 13:12:19.102 UTC [42] LOG:  数据库系统已准备好接受连接
I, [2023-01-30T13:12:24.060600 #1]  INFO -- :
I, [2023-01-30T13:12:24.060902 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-01-30 13:12:24.106 UTC [55] postgres@postgres ERROR:  数据库 "discourse" 已存在
2023-01-30 13:12:24.106 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: 错误:数据库创建失败:ERROR:  数据库 "discourse" 已存在
I, [2023-01-30T13:12:24.108125 #1]  INFO -- :
I, [2023-01-30T13:12:24.108475 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"                 ' || true
2023-01-30 13:12:24.153 UTC [59] postgres@discourse ERROR:  角色 "discourse" 已存在
2023-01-30 13:12:24.153 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERROR:  角色 "discourse" 已存在
I, [2023-01-30T13:12:24.155493 #1]  INFO -- :
I, [2023-01-30T13:12:24.155687 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on                  database discourse to discourse;"' || true
I, [2023-01-30T13:12:24.199357 #1]  INFO -- : GRANT

I, [2023-01-30T13:12:24.199559 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public own                 er to discourse;"'
I, [2023-01-30T13:12:24.242399 #1]  INFO -- : ALTER SCHEMA

I, [2023-01-30T13:12:24.242694 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not                  exists hstore;"'
NOTICE:  扩展 "hstore" 已存在,跳过
I, [2023-01-30T13:12:24.289624 #1]  INFO -- : CREATE EXTENSION

I, [2023-01-30T13:12:24.289961 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not                  exists pg_trgm;"'
NOTICE:  扩展 "pg_trgm" 已存在,跳过
I, [2023-01-30T13:12:24.334433 #1]  INFO -- : CREATE EXTENSION

I, [2023-01-30T13:12:24.334619 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not                  exists hstore;"'
NOTICE:  扩展 "hstore" 已存在,跳过
I, [2023-01-30T13:12:24.377306 #1]  INFO -- : CREATE EXTENSION

I, [2023-01-30T13:12:24.377683 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not                  exists pg_trgm;"'
NOTICE:  扩展 "pg_trgm" 已存在,跳过
I, [2023-01-30T13:12:24.420738 #1]  INFO -- : CREATE EXTENSION

I, [2023-01-30T13:12:24.421047 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-01-30T13:12:24.423610 #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-30T13:12:24.474466 #1]  INFO -- : 文件 > /var/lib/postgresql/take-database-backup  chmod: +x                   chown: postgres:postgres
I, [2023-01-30T13:12:24.478033 #1]  INFO -- : 文件 > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2023-01-30T13:12:24.478139 #1]  INFO -- : > echo postgres installed!
I, [2023-01-30T13:12:24.480672 #1]  INFO -- : postgres 已安装!

I, [2023-01-30T13:12:24.486789 #1]  INFO -- : 文件 > /etc/service/redis/run  chmod: +x  chown:
I, [2023-01-30T13:12:24.493042 #1]  INFO -- : 文件 > /etc/service/redis/log/run  chmod: +x  chown:
I, [2023-01-30T13:12:24.499564 #1]  INFO -- : 文件 > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2023-01-30T13:12:24.499790 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 daemonize yes 替换为空
I, [2023-01-30T13:12:24.500400 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^pidfile.*$) 替换为空
I, [2023-01-30T13:12:24.502474 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-01-30T13:12:24.505510 #1]  INFO -- :
I, [2023-01-30T13:12:24.505878 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^logfile.*$) 替换为 logfile ""
I, [2023-01-30T13:12:24.506470 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^bind .*$) 替换为空
I, [2023-01-30T13:12:24.508039 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^dir .*$) 替换为 dir /shared/redis_data
I, [2023-01-30T13:12:24.509741 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^protected-mode yes) 替换为 protected-mode no
I, [2023-01-30T13:12:24.511760 #1]  INFO -- : 在 /etc/redis/redis.conf 中将 # io-threads 4 替换为 io-threads $redis_io_threads
I, [2023-01-30T13:12:24.513175 #1]  INFO -- : > echo redis installed
I, [2023-01-30T13:12:24.516185 #1]  INFO -- : redis 已安装

I, [2023-01-30T13:12:24.516343 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-01-30T13:12:24.521028 #1]  INFO -- : logfile ""

I, [2023-01-30T13:12:24.521181 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/re                 dis/redis.conf
I, [2023-01-30T13:12:24.523403 #1]  INFO -- : > sleep 10
103:C 30 Jan 2023 13:12:24.529 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
103:C 30 Jan 2023 13:12:24.529 # Redis 版本=7.0.7, bits=64, commit=00000000, modified=0, pid=103, 刚刚启动
103:C 30 Jan 2023 13:12:24.529 # 配置已加载
103:M 30 Jan 2023 13:12:24.529 * 单调时钟:POSIX clock_gettime
103:M 30 Jan 2023 13:12:24.530 * 运行模式=独立,端口=6379。
103:M 30 Jan 2023 13:12:24.530 # 服务器已初始化
103:M 30 Jan 2023 13:12:24.530 # 警告:必须启用内存超额提交!如果没有启用,在低内存条件下后台保存或复制可能会失败。如果禁用,即使没有低内存条件也可能导致失败,详见 https://github.com/jemalloc/jemalloc/issues/1328。要修复此问题,请将 'vm.overcommit_memory = 1' 添加到 /etc/sysctl.conf,然后重启或运行命令 'sysctl vm.overcommit_memory=1' 使其生效。
103:M 30 Jan 2023 13:12:24.532 * 正在加载由版本 7.0.7 生成的 RDB
103:M 30 Jan 2023 13:12:24.532 * RDB 年龄 667 秒
103:M 30 Jan 2023 13:12:24.532 * 创建时 RDB 内存使用量 0.85 Mb
103:M 30 Jan 2023 13:12:24.532 * RDB 加载完成,加载的键数:0,过期的键数:0。
103:M 30 Jan 2023 13:12:24.532 * 从磁盘加载数据库耗时:0.000 秒
103:M 30 Jan 2023 13:12:24.532 * 已准备好接受连接
I, [2023-01-30T13:12:34.526480 #1]  INFO -- :
I, [2023-01-30T13:12:34.526718 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-01-30T13:12:34.531166 #1]  INFO -- : thpoff 已安装!

I, [2023-01-30T13:12:34.531343 #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-30T13:12:34.595811 #1]  INFO -- :
I, [2023-01-30T13:12:34.596054 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "d                 iscourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2023-01-30T13:12:34.662522 #1]  INFO -- :
I, [2023-01-30T13:12:34.662839 #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 pos                 ts now to correct all posts."; exit 1; end'
I, [2023-01-30T13:12:34.727810 #1]  INFO -- :
I, [2023-01-30T13:12:34.728212 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-01-30T13:12:34.731658 #1]  INFO -- :
I, [2023-01-30T13:12:34.735393 #1]  INFO -- : 文件 > /etc/cron.d/anacron  chmod:   chown:
I, [2023-01-30T13:12:34.741917 #1]  INFO -- : 文件 > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2023-01-30T13:12:34.748443 #1]  INFO -- : 文件 > /etc/service/unicorn/run  chmod: +x  chown:
I, [2023-01-30T13:12:34.754938 #1]  INFO -- : 文件 > /etc/service/nginx/run  chmod: +x  chown:
I, [2023-01-30T13:12:34.761618 #1]  INFO -- : 文件 > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2023-01-30T13:12:34.768619 #1]  INFO -- : 文件 > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2023-01-30T13:12:34.768972 #1]  INFO -- : 在 /etc/service/unicorn/run 中将 # postgres 替换为 sv start postgres || exit 1
I, [2023-01-30T13:12:34.769874 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/re                 dis/redis.conf
I, [2023-01-30T13:12:34.773312 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
fatal: 检测到 /var/www/discourse 仓库的所有权可疑
要为此目录添加例外,请运行:

        git config --global --add safe.directory /var/www/discourse
I, [2023-01-30T13:12:34.778171 #1]  INFO -- :
131:C 30 Jan 2023 13:12:34.778 # oO0OoO0OoO0Oo Redis 正在启动 oO0OoO0OoO0Oo
131:C 30 Jan 2023 13:12:34.778 # Redis 版本=7.0.7, bits=64, commit=00000000, modified=0, pid=131, 刚刚启动
131:C 30 Jan 2023 13:12:34.778 # 配置已加载
131:signal-handler (1675084354) 收到 SIGTERM,计划关闭...
103:signal-handler (1675084354) 收到 SIGTERM,计划关闭...
I, [2023-01-30T13:12:34.778513 #1]  INFO -- : 终止异步进程
I, [2023-01-30T13:12:34.778546 #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
I, [2023-01-30T13:12:34.778589 #1]  INFO -- : 向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103 发送 TERM
I, [2023-01-30T13:12:34.778609 #1]  INFO -- : 向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 131 发送 TERM
2023-01-30 13:12:34.778 UTC [42] LOG:  收到快速关闭请求
131:M 30 Jan 2023 13:12:34.779 * 单调时钟:POSIX clock_gettime
131:M 30 Jan 2023 13:12:34.779 # 警告:无法创建服务器 TCP 监听套接字 *:6379: bind: 地址已被占用
131:M 30 Jan 2023 13:12:34.779 # 监听端口 6379 (TCP) 失败,中止。
2023-01-30 13:12:34.781 UTC [42] LOG:  中止任何活跃事务
2023-01-30 13:12:34.784 UTC [42] LOG:  后台工作进程 "logical replication launcher" (PID 51) 以退出代码 1 退出
2023-01-30 13:12:34.786 UTC [46] LOG:  正在关闭
2023-01-30 13:12:34.810 UTC [42] LOG:  数据库系统已关闭
103:M 30 Jan 2023 13:12:34.852 # 用户请求关闭...
103:M 30 Jan 2023 13:12:34.852 * 退出前保存最终 RDB 快照。
103:M 30 Jan 2023 13:12:34.857 * 数据库已保存到磁盘
103:M 30 Jan 2023 13:12:34.857 # Redis 现在可以退出,再见...


失败
--------------------
Pups::ExecError: cd /var/www/discourse && git reset --hard 失败,返回 #<Process::Status: pid 133 e                 xit 128>
失败位置:/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", "g                 it 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", "bas                 h -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,si                 dekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdou                 t,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "b                 ash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shar                 ed/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", "[ ! -d public                 /plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"]}
引导失败,退出代码 128
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一条。
./discourse-doctor 可能有助于诊断问题。
18ae8309291a1462106c7ac875cda6ff6f8d81189596e16b51e64715da39a324

我是个新手,不确定错误在哪里,所以来求助。希望有专家能帮忙解决。
顺便提一下,防火墙状态已禁用。我的服务器使用的是基于 ARM 的 CPU;不过,我的主实例运行在另一台具有相同 CPU 的服务器上,一切正常!

非常感谢!

4 个赞

感谢您的报告 @Ankush_Santra - 我刚刚推送了一个修复,所以如果您再次尝试重建,它应该会好很多。

8 个赞

请接受我的谢意,先生。
你们太棒了。我的意思是,整个团队和社区都太棒了。我正在学习,一旦我足够熟练,我将为开源项目做出贡献,从 discourse 开始。很棒的平台,很棒的团队,很棒的社区。
你说过,在下一个版本中,它运行得非常好。
衷心感谢。

5 个赞

此主题已在 6 天后自动关闭。不允许回复。