Bootstrap 失败

UI 升级提示我需要进行 CLI 升级,因此我尝试进行引导,但失败了。我尝试注释掉除 docker_manager 之外的所有插件,以防它们有问题,但没有变化。以下是消息的结尾,有什么想法吗?

I, [2022-02-20T00:22:02.802120 #1]  INFO -- : 
> cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'
I, [2022-02-20T00:22:02.833608 #1]  INFO -- :
I, [2022-02-20T00:22:02.835084 #1]  INFO -- : 
> cd /var/www/discourse && su discourse -c 'bundle exec rake plugin:pull_compatible_all'
WARNING: Plugins were activated before running `rake plugin:pull_compatible_all`
  You should prefix this command with LOAD_PLUGINS=0
I, [2022-02-20T00:22:17.738184 #1]  INFO -- : docker_manager is already at latest compatible version

I, [2022-02-20T00:22:17.739383 #1]  INFO -- : 
> cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2022-02-20T00:22:32.881239 #1]  INFO -- :
I, [2022-02-20T00:22:32.882131 #1]  INFO -- : 
> cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
sh: 1: yarn: not found
I, [2022-02-20T00:22:42.298037 #1]  INFO -- : Checking 'Hamburger Theme Selector' for 'default'... up to date
Checking 'discourse-category-banners' for 'default'... up to date
Checking 'Hamburger links component' for 'default'...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 5174 exit 127>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
20aaf3f585012c6c3468f5a0f408f8546bc0a13db1da166771719e0197b4dab6
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
1 个赞

这是标准安装吗?

有多少内存和交换空间?

   df - h

说什么?

1 个赞

最初是使用 discourse-setup 安装的,除非我记错了。然后按照这里的说明将其拆分为单独的 data 和 web_only 容器。现在前面还有一个 nginx 代理。过去曾成功引导过。

$ free -mh
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi       1.8Gi       790Mi       278Mi       1.2Gi       1.4Gi
Swap:         2.0Gi       436Mi       1.6Gi
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           386M   40M  346M  11% /run
/dev/sda1        38G   21G   16G  58% /
tmpfs           1.9G   96K  1.9G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sdb         79G   36G   44G  46% /var/discourse
/dev/sdc         42G   41G  719M  99% /mnt/HC_Volume_3697529
tmpfs           386M     0  386M   0% /run/user/1002
/dev/sdd         61G   53M   58G   1% /var/discourse/shared/web-only/backups
1 个赞

好的,我确实应该避免在有点累的时候做这些事情,因为这会导致做一些完全愚蠢的事情。比如完全漏掉 git pull,并且无论看多少次都想不起来 :person_facepalming:

我曾短暂地想过,是不是那个已弃用的 alt-logo 主题组件(在我还在使用它的时候,在 max-version 被提交之前我就 fork 了它)有什么奇怪之处,但谢天谢地,不是。

抱歉因为这么愚蠢和显而易见的事情打扰了你!

1 个赞

糟糕!

保留这些知识很有用,其他人可能会遇到同样的问题。

2 个赞

听起来你也做了这些,但也要确保你执行了
git checkout main
这个最近也难倒我了。
而且如果你最近没有重建数据,redis未更新会报错。

没有收到关于 Redis 的任何错误,但还是计划进行一次数据重建,因为它已经 有点 了,我今天已经完成了。不过还是谢谢你的建议。

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.