빌드 실패

방금 빌드 중 아래 오류가 발생했습니다:

[log] <DIR>/assets/js/chunk-kzds8qh6.digested.js                         chunk │ size:   297.19 kB
[log] <DIR>/assets/js/chunk-b1q66eup.digested.js                         chunk │ size:   358.64 kB
[log] <DIR>/assets/js/jspreadsheet-c0a3yubd.digested.js                  chunk │ size:   475.17 kB
[log] <DIR>/assets/js/codemirror-editor-fo821emj.digested.js             chunk │ size:   498.87 kB
[log] <DIR>/assets/js/chunk-enbilv94.digested.js                         chunk │ size:   506.45 kB
[log] <DIR>/assets/js/jsoneditor-dmbb2ak0.digested.js                    chunk │ size:   530.72 kB
[log] <DIR>/assets/js/ace-editor-bundle-bd9fwf91.digested.js             chunk │ size:   612.67 kB
[log] <DIR>/assets/js/full-calendar-bundle-fr7dwh7s.digested.js          chunk │ size:   992.27 kB
[log] <DIR>/assets/js/admin-c45bp8xv.digested.js                         chunk │ size: 1,343.19 kB
[log] <DIR>/assets/js/faker-o7ara9hb.digested.js                         chunk │ size: 2,321.90 kB
[log] <DIR>/assets/js/discourse-kovviugm.digested.js                     chunk │ size: 3,577.22 kB
[log]
[success] rolldown v1.1.2 Finished in 18.40 s
/var/www/discourse/plugins/discourse-ai/lib/tasks/create_topics.rake:51: warning: already initialized constant TopicGenerator::FIRST_POST_RESPONSE_FORMAT
/var/www/discourse/plugins/discourse-ai/lib/tasks/create_topics.rake:51: warning: previous definition of FIRST_POST_RESPONSE_FORMAT was here
/var/www/discourse/plugins/discourse-ai/lib/tasks/create_topics.rake:69: warning: already initialized constant TopicGenerator::REPLIES_RESPONSE_FORMAT
/var/www/discourse/plugins/discourse-ai/lib/tasks/create_topics.rake:69: warning: previous definition of REPLIES_RESPONSE_FORMAT was here
Compiling 49 plugins...
Finished initial compilation of plugins in 33.75s
rake aborted!
Don't know how to build task 'assets:precompile:pretty_text' (See the list of available tasks with `rake --tasks`)
Did you mean?  assets:precompile
/var/www/discourse/vendor/bundle/ruby/3.4.0/gems/rake-13.4.2/exe/rake:27:in '<top (required)>'
/usr/local/bin/bundle:25:in 'Kernel#load'
/usr/local/bin/bundle:25:in '<main>'
(See full trace by running task with --trace)
I, [2026-09-07T07:06:45.573543 #1]  INFO -- : Terminating async processes
I, [2026-09-07T07:06:45.619547 #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/18/bin/postgres -D /etc/postgresql/18/main pid: 45
I, [2026-09-07T07:06:45.621006 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 128
128:signal-handler (1788764805) Received SIGTERM scheduling shutdown...
2026-09-07 07:06:45.621 UTC [45] LOG:  received fast shutdown request
2026-09-07 07:06:45.628 UTC [45] LOG:  aborting any active transactions
128:M 07 Sep 2026 07:06:45.638 * User requested shutdown...
128:M 07 Sep 2026 07:06:45.639 * Saving the final RDB snapshot before exiting.
2026-09-07 07:06:45.661 UTC [45] LOG:  background worker "logical replication launcher" (PID 62) exited with exit code 1
2026-09-07 07:06:45.679 UTC [57] LOG:  shutting down
2026-09-07 07:06:45.685 UTC [57] LOG:  checkpoint starting: shutdown immediate
128:M 07 Sep 2026 07:06:46.044 * DB saved on disk
128:M 07 Sep 2026 07:06:46.044 # Redis is now ready to exit, bye bye...
2026-09-07 07:06:46.063 UTC [57] LOG:  checkpoint complete: wrote 56 buffers (0.1%), wrote 3 SLRU buffers; 0 WAL file(s) added, 0 removed, 0 recycled; write=0.357 s, sync=0.004 s, total=0.381 s; sync files=22, longest=0.002 s, average=0.001 s; distance=321 kB, estimate=321 kB; lsn=1/18C7340, redo lsn=1/18C7340
2026-09-07 07:06:46.118 UTC [45] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  if [[ $(git symbolic-ref --short HEAD) == release/2026.7 ]] ; then
      SKIP_DB_AND_REDIS=1 bundle exec rake assets:precompile:build assets:precompile:pretty_text
  else
      SKIP_DB_AND_REDIS=1 bundle exec rake assets:precompile:build
  fi
' failed with return #<Process::Status: pid 729 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/exec_command.rb:138:in 'Pups::ExecCommand#spawn'
exec failed with the params {"cd" => "$home", "tag" => "build", "hook" => "assets_precompile_build", "cmd" => ["sudo -H -E -u discourse bash -c '\n  if [[ $(git symbolic-ref --short HEAD) == $version ]] ; then\n      SKIP_DB_AND_REDIS=1 bundle exec rake assets:precompile:build assets:precompile:pretty_text\n  else\n      SKIP_DB_AND_REDIS=1 bundle exec rake assets:precompile:build\n  fi\n'"]}
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.
582d39a0c9c78bab114c5abfda91bc8ea8322552034c78ee50f92c504d58323c

app.yml은 다음과 같습니다:

templates:
  - templates/postgres.template.yml
  - templates/redis.template.yml
  - templates/web.template.yml
  - templates/web.ratelimited.template.yml
  - templates/web.ssl.template.yml
  - templates/web.letsencrypt.ssl.template.yml
  - templates/web.china.template.yml
expose:
  - 80:80
  - 443:443
params:
  db_default_text_search_config: pg_catalog.english
  db_shared_buffers: 768MB
  version: release/2026.7
env:
  LC_ALL: en_US.UTF-8
  LANG: en_US.UTF-8
  LANGUAGE: en_US.UTF-8
  // ...
  UNICORN_WORKERS: 4
  DISCOURSE_DOWNLOAD_PRE_BUILT_ASSETS: 0

업데이트 과정에서 무언가 누락된 것 같습니다. AI 분석 결과는 다음과 같습니다:

문제 설명

문제는 Docker 베이스 이미지release/2026.7 분기 코드 간의 버전 불일치에서 발생합니다:


###发生了什么

부트스트랩(bootstrap) 과정에서 Docker 베이스 이미지 discourse/base:2.0.20260109-0020에 내장된 빌드 스크립트는 다음 명령을 실행합니다:

if [[ $(git symbolic-ref --short HEAD) == release/2026.7 ]] ; then
    bundle exec rake assets:precompile:build assets:precompile:pretty_text
    #                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    #                                     이 태스크는 존재하지 않습니다!
fi


실패 원인

위치 상태
discourse/base 이미지 새 버전의 이미지는 assets:precompile:pretty_text 태스크 실행을 요구합니다
release/2026.7 분기 이 rake 태스크가 없습니다 (lib/tasks/assets.rake에 정의되지 않음)
main / release/2026.8 이 태스크가 있습니다 (commit cfed6b85b6c, Rolldown PrettyText 마이그레이션에서 유래)

간단히 말해, 이미지는 최신이지만 코드 분기는 구버전입니다. 이미지에서는 구버전 분기에는 아직 없는 태스크의 실행을 요구합니다.


해결 방법

방법 작업
권장: release/2026.8로 업그레이드 컨테이너 구성 파일의 version: tests-passed 또는 분기 이름을 변경합니다. 해당 분기에는 이 태스크가 포함되어 있습니다
베이스 이미지 다운그레이드 pretty_text 빌드 단계를 포함하지 않는 구버전 discourse/base 이미지를 사용합니다
빈 태스크 수동 추가 lib/tasks/assets.rake에 빈 assets:precompile:pretty_text 태스크를 추가합니다 (임시 해결책)

해당 작업은 main/latest와 2026.8.0에 존재합니다:

흥미롭네요!

2026.8.x로 전환해 주실 수 있을까요?