지금은 재빌드가 안 됩니다 - TC 때문인 것 같습니다. 이 상태에서 전부 삭제해도 될까요?

리빌드 과정에서 막혀서 원인을 모르겠습니다. 테마 컴포넌트와 관련이 있는 것 같습니다. 오류가 표시되던 컴포넌트가 하나 있었는데, 해당 컴포넌트를 제거했습니다. 하지만 리빌드는 계속 실패합니다.

2개 컨테이너 구성에서 ./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only 명령으로 리빌드를 시도하고 있습니다.

로그:

I, [2022-02-27T22:33:50.697946 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’

  • Building
  • Building
  • building…
    Killed
    error Command failed with exit code 137.
    I, [2022-02-27T22:38:12.876942 #1] INFO – : Checking ‘PDF previews’ for ‘default’… up to date
    Checking ‘Icon Header Links’ for ‘default’… up to date
    Checking ‘Discourse Kanban’ for ‘default’… up to date
    Checking ‘Extended About page’ for ‘default’… up to date
    Checking ‘Discourse Jitsi’ for ‘default’… up to date
    Checking ‘Topic Template Placeholder Text’ for ‘default’… up to date
    Checking ‘Wikified Posts’ for ‘default’… up to date
    Checking ‘Layouts Category List Widget’ for ‘default’… up to date
    Checking ‘New PM Dropdown Button’ for ‘default’… up to date
    Checking ‘Discourse Custom Homepage’ for ‘default’… up to date
    Checking ‘Category Icons’ for ‘default’… up to date
    Checking ‘Wizards Dropdown Button’ for ‘default’… up to date
    Checking ‘Blog Post Styling’ for ‘default’… up to date
    Checking ‘Layouts Category List Widget - Nathan’s Fork’ for ‘default’… up to date
    Checking ‘md-composer-extras’ for ‘default’… up to date
    Checking ‘Land on Group Messages’ for ‘default’… up to date
    Checking ‘Layouts Groups Widget’ for ‘default’… up to date
    Checking ‘Topic List Previews’ for ‘default’… up to date
    Checking ‘discourse-image-annotator’ for ‘default’… up to date
    Checking ‘Welcome Link Banner’ for ‘default’… up to date
    Checking ‘DiscoTOC’ for ‘default’… yarn run v1.22.17
    $ /var/www/discourse/app/assets/javascripts/node_modules/.bin/ember build -prod
    WARNING: Node v16.13.2 is not tested against Ember CLI on your platform. We recommend that you use the most-recent “Active LTS” version of Node.js. See ember-cli/docs/node-support.md at master · ember-cli/ember-cli · GitHub for details.
    DEPRECATION: The integration of jQuery into Ember has been deprecated and will be removed with Ember 4.0. You can either opt-out of using jQuery, or install the @ember/jquery addon to provide the jQuery integration. Please consult the deprecation guide for further details: Ember.js - Deprecations
    Environment: production
    info Visit yarn run | Yarn for documentation about this command.

FAILED

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update >assets:precompile’ failed with return #<Process::Status: pid 1257 exit 137>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn’
exec failed with the params {“cd”=>“$home”, “hook”=>“assets_precompile”, “cmd”=>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]}
be04c3477dffeff3e9d650532d0037ba735ea41638aa9ca959ec26160930ee08
** 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.

조언을 주시면 감사하겠습니다! 현재 ./launcher rebuild web_only를 실행하는 것은 사이트가 깨질까 봐 꺼려집니다.

그리고 네, DiscoTOC를 제거했지만 차이가 없었습니다 - 오류는 다른 TC(테마 컴포넌트)로 넘어갔을 뿐입니다(가장 최근에 설치된 것이).

다른 토픽에서 이 코드가 메모리 부족(OOM)을 의미한다고 언급된 것 같습니다.

다른 컨테이너가 실행 중인 상태에서 Bootstrap을 시도하는 것의 단점이 바로 이겁니다.

스왑 공간을 확인해 보거나, RAM을 늘리거나, 또는 기존 컨테이너가 실행 중인 상태에서 Bootstrap 대신 재빌드(Rebuild)를 수행해 보세요.

제이, 고마워요! 서버 성능을 좀 더 끌어올려서 다시 시도해 볼게요. 사실 제 테마 컴포넌트 때문인 것보다는, 처음 시도하는 화려한 부트스트랩이나 컨테이너를 계속 실행 유지하는 것 같은 설정 때문일 거라고 짐작하고 있었어요!!!

네, 그게 해결됐어요 — 좀 더 여유 공간이 필요했거든요.

@pfaffman, 감사합니다. 최고예요!