부트스트랩 실패

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.

이것은 표준 설치인가요?

RAM과 스왑 용량은 얼마인가요?

   df - h

명령어 출력은 어떻게 되나요?

제가 착각하는 게 아니라면, 처음에는 discourse-setup을 사용하여 설치했습니다. 이후 여기 있는 안내에 따라 데이터와 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

음, 좀 피곤할 때 이런 일을 하면 안 되는데, 정말 멍청한 실수를 하게 되더라고요. git pull을 완전히 빼먹고, 아무리 봐도 그 사실이 기억이 안 나게 되잖아요 :person_facepalming:!

일시적으로 deprecated된 alt-logo 테마 컴포넌트(max-version이 커밋되기 직전에 포크했기 때문에 아직 사용해야 하므로)에 뭔가 이상한 점이 있는 건 아닌지 잠시 의심해 보았지만, 다행히 그런 일은 없었습니다.

이렇게 사소하고 명백한 일로 귀찮게 해서 죄송합니다!

실수했네요!

이 지식을 남겨두는 것이 좋습니다. 다른 사람이 같은 문제에 부딪힐 수 있으니까요.

당신도 이걸 해본 것 같은데, 아래 명령어도 꼭 실행하세요.

git checkout main

이 부분이 최근 저를 꽤 당황시켰습니다.

그리고 최근에 데이터 재빌드를 하지 않았다면, redis가 업데이트되지 않아서 오류가 발생할 수 있습니다.

Redis 관련 오류는 발생하지 않았지만, 어쨌든 데이터 재구성을 계획하고 있었어요. 그게 좀 조금 그랬거든요. 오늘 이미 완료했습니다. 조언해 주셔서 감사합니다.