安装失败

VPS 4 核 4G 200G。Ubuntu 24 LTS
域名注册:IONOS

[2025-03-18T14:54:01.632117 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build'
Node.js heap_size_limit (2005.75) 小于 2048MB。正在设置 --max-old-space-size=2048 和 CHEAP_SOURCE_MAPS=1
...[ConfigLoader]
...[Babel: discourse-widget-hbs > applyPatches]
...[Babel: @embroider/macros > applyPatches]
...[Babel: ember-tracked-storage-polyfill > applyPatches]
...[Babel: pretty-text > applyPatches]
...[Babel: @ember/legacy-built-in-components > applyPatches]
...[Babel: ember-source > applyPatches]
[BABEL] 注意:代码生成器已对 /var/www/discourse/app/assets/javascripts/discourse/ember/ember-template-compiler.js 的样式进行了优化,因为它超过了 500KB 的最大值。
[BABEL] 注意:代码生成器已对 /var/www/discourse/app/assets/javascripts/discourse/ember/ember.js 的样式进行了优化,因为它超过了 500KB 的最大值。
...[Babel: @glimmer/component > applyPatches]
...[Babel: @ember/test-waiters > applyPatches]
...[Babel: dialog-holder > applyPatches]
...[Babel: ember-buffered-proxy > applyPatches]
...[Babel: float-kit > applyPatches]
...[Babel: select-kit > applyPatches]
...[@embroider/compat/app]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
2025-03-18 14:55:50.590 UTC [51] LOG:  checkpoint starting: time
2025-03-18 14:55:55.247 UTC [51] LOG:  checkpoint complete: wrote 48 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.612 s, sync=0.016 s, total=4.657 s; sync files=38, longest=0.004 s, average=0.001 s; distance=202 kB, estimate=202 kB
...[@embroider/webpack]
109:M 18 Mar 2025 14:55:57.065 * 300 秒内发生 100 次更改。正在保存...
109:M 18 Mar 2025 14:55:57.067 * 后台保存由进程 ID 758 启动
758:C 18 Mar 2025 14:55:57.087 * DB 已保存到磁盘
758:C 18 Mar 2025 14:55:57.088 * RDB 的写时复制:当前 0 MB,峰值 0 MB,平均 0 MB
109:M 18 Mar 2025 14:55:57.168 * 后台保存成功终止
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[SourceMapConcat]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
...[TerserWriter]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[TerserWriter]
...[Babel: discourse-plugins > applyPatches]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
I, [2025-03-18T14:58:35.058799 #1]  INFO -- : Building
Environment: production
Embroider 的下一个版本中,设置 'staticAddonTrees' 将默认为 true,并且无法关闭。为了做好准备,您应该在 Embroider 配置中设置 'staticAddonTrees: true'。
Embroider 的下一个版本中,设置 'staticAddonTestSupportTrees' 将默认为 true,并且无法关闭。为了做好准备,您应该在 Embroider 配置中设置 'staticAddonTestSupportTrees: true'。
building...
undefined
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  命令被 SIGKILL (强制终止) 杀死:ember build -prod

I, [2025-03-18T14:58:35.082462 #1]  INFO -- : Terminating async processes
I, [2025-03-18T14:58:35.082680 #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/15/bin/postmaster -D /etc/postgresql/15/main pid: 42
I, [2025-03-18T14:58:35.082935 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 109
2025-03-18 14:58:35.083 UTC [42] LOG:  received fast shutdown request
109:signal-handler (1742309915) Received SIGTERM scheduling shutdown...
2025-03-18 14:58:35.092 UTC [42] LOG:  aborting any active transactions
2025-03-18 14:58:35.101 UTC [42] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
2025-03-18 14:58:35.108 UTC [51] LOG:  shutting down
2025-03-18 14:58:35.113 UTC [51] LOG:  checkpoint starting: shutdown immediate
2025-03-18 14:58:35.137 UTC [51] LOG:  checkpoint complete: wrote 0 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.009 s, sync=0.001 s, total=0.029 s; sync files=0, longest=0.000 s, average=0.000 s; distance=0 kB, estimate=182 kB
109:M 18 Mar 2025 14:58:35.150 # User requested shutdown...
109:M 18 Mar 2025 14:58:35.151 * Saving the final RDB snapshot before exiting.
109:M 18 Mar 2025 14:58:35.166 * DB saved on disk
109:M 18 Mar 2025 14:58:35.167 # Redis is now ready to exit, bye bye...
2025-03-18 14:58:35.174 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build' failed with return #<Process::Status: pid 696 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"build", "hook"=>"assets_precompile_build", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile:build'"]}
bootstrap failed with exit code 1
** 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.

遵循了标准安装。设置了域名 DNS A 记录“community”以及 IP 地址。

IONOS 没有免费 SSL。因此,在 discourse-setup 中填写了 Let’s Encrypt 的电子邮件条目。

需要帮助解决这个问题。

1 个赞