加了几个插件以后重构一直失败

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/Lhcfl/user-auto-active.git
          - git clone https://github.com/Lhcfl/replace-translations-global.git
          - git clone https://github.com/discourse/discourse-microsoft-auth
          - git clone https://github.com/discourse/discourse-whos-online
# 以下是新添加的插件
          - git clone https://github.com/discourse/discourse-ai.git
          - git clone https://github.com/discourse/DiscoTOC.git
          - git clone https://github.com/discourse/discourse-cakeday.git
          - git clone https://github.com/discourse/discourse-doc-categories.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-gamification.git
          - git clone https://github.com/discourse/discourse-encrypt.git
          - git clone https://github.com/discourse/discourse-tooltips.git
          - git clone https://github.com/discourse/discourse-category-experts.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-signatures.git
          - git clone https://github.com/discourse/discourse-reactions.git
          - git clone https://github.com/discourse/discourse-docs.git 

GPT总结的日志,运行discourse-doctor

undefined
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command was killed with SIGKILL (Forced termination): ember build -prod

107I, [2024-10-24T10:47:40.284598 #1]  INFO -- : Terminating async processes
I, [2024-10-24T10:47:40.284636 #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/13/bin/postmaster -D /etc/postgresql/13/main pid: 39
I, [2024-10-24T10:47:40.284865 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 107
:signal-handler (1729766860) Received SIGTERM scheduling shutdown...
2024-10-24 10:47:40.286 UTC [39] LOG:  received fast shutdown request
2024-10-24 10:47:40.293 UTC [39] LOG:  aborting any active transactions
2024-10-24 10:47:40.313 UTC [39] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
2024-10-24 10:47:40.316 UTC [49] LOG:  shutting down
107:M 24 Oct 2024 10:47:40.352 # User requested shutdown...
107:M 24 Oct 2024 10:47:40.352 * Saving the final RDB snapshot before exiting.
107:M 24 Oct 2024 10:47:40.382 * DB saved on disk
107:M 24 Oct 2024 10:47:40.382 # Redis is now ready to exit, bye bye...
2024-10-24 10:47:40.394 UTC [39] 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 2286 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.
8151308515a3f1b71abf57e06c5186832d4b69a3ae75bbf427462fde6559a700

看你的新添加的插件都是官方的插件,理论上不会有什么问题。

那先把添加的插件从插件列表中删除,再重构下看看?

害 很奇怪 明天试试。

加入插件构建失败,大概率是网络问题,清除构建缓存之后再试试

我记得这个是主题组件吧,是要在主题组件哪里安装的。

你们居然都不写备注哇

我每个都写了备注哪天要卸载不然要要找半天

我只要是官方的插件,基本上就不卸载了。

对官方的内容还是比较信任的,只要他们还在维护的话。

其实插件名字都看得出来是个啥

我删掉了这个 最终还是不行

删了确实可以正常重构。


等等删了刚刚又重构了一次还是不行。


加了2g swap 又可以了,现在继续重构,排除一下是不是swap问题。

2 Likes

我估计是交换分区不够的锅

确实,加了2g就行了

他这个构建镜像的时候特别吃内存,我经常会内存不够构建失败

尤其是插件越来越多的时候