수일 동안
./launcher bootstrap web_only && ./launcher destroy web_only && ./launcher start web_only를 문제 없이 사용해 왔는데,
SiteSetting.can_permanently_delete = true를 설정하기 위해 rails 콘솔을 사용하려다 문제가 발생했습니다.
./launcher enter web_only를 실행한 뒤 rails c를 입력했더니 말이죠.
질문: 개별 컨테이너 모드에서 rails 콘솔에 접근하는 방식이 다른 건가요?
성공적인 재빌드와 부트스트랩에 실패한 후, AI 관련 기능을 구현하기 전으로 서버를 롤백했습니다. 그래도 여전히 문제가 해결되지 않았습니다!
부트스트랩 방식이 다음과 같은 오류와 함께 실패합니다:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3' failed with return #<Process::Status: pid 465 exit 18>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/exec_command.rb:138:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'", "su discourse -c 'bundle clean'", "su discourse -c 'find /var/www/discourse/vendor/bundle -name cache -not -path \"*/gems/*\" -type d -exec rm -rf {} +'", "su discourse -c 'find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +'"]}
bootstrap failed with exit code 18
** 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.
aee0f5c110bf8ce78f05c138a78712b4a0116fe6662c998b2f29800715036091
./launcher rebuild web_only도 오류가 납니다.
docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint web_only (06b7b1f7f6b476adac20a11a55de776d7350e837407a6c7a6ba582c917f6dd73): Bind for 0.0.0.0:80
관리자(Admin)에서 Docker Manager를 업데이트한 후에는 다음과 같은 메시지가 표시됩니다.
You are running an old version of the Discourse image
Updates via the web UI are disabled until you run the latest image. To do so log in to your server using SSH and run:
cd /var/discourse
./launcher rebuild app
질문: 여러분은 이 문제가 무엇인지에 대해 어떤 아이디어가 있으신가요?
빌드가 실패하게 만드는 오류는 다음과 같습니다:
[2026-02-17T16:51:13.376629 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'
Your Ruby version is 3.3.8, but your Gemfile specified ~> 3.4