업그레이드 실패 - 재설치 불가

디스크 문제로 컨테이너가 충돌하면서 실패한 업그레이드에서 복구하려고 시도하고 있습니다. 이제 ./discourse-doctor 또는 ./launcher rebuild..을 실행하거나 심지어 새 설치를 시도해도 여기에서 실패합니다. 컨테이너 이미지 관련 문제가 있는 것 같습니다?

2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Downloaded newer image for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
Ensuring launcher is up to date
Launcher is up-to-date
2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Image is up to date for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
/usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:42:in 'singleton class': uninitialized constant Gem::Deprecate (NameError)
        from /usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:41:in '<class:BasicSpecification>'
        from /usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:7:in '<top (required)>'
        from /usr/local/lib/ruby/3.4.0/rubygems/specification.rb:11:in 'Kernel#require_relative'
        from /usr/local/lib/ruby/3.4.0/rubygems/specification.rb:11:in '<top (required)>'
        from /usr/local/lib/ruby/3.4.0/rubygems.rb:1372:in 'Kernel#require_relative'
        from /usr/local/lib/ruby/3.4.0/rubygems.rb:1372:in '<top (required)>'
        from <internal:gem_prelude>:2:in 'Kernel#require'
        from <internal:gem_prelude>:2:in '<internal:gem_prelude>'
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
git: error while loading shared libraries: /lib/x86_64-linux-gnu/libpcre2-8.so.0: file too short
bootstrap failed with exit code 127
** 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.
078e7b891ce7ebf3454c59f2c0ab346d023d16539b4d8b4b33bf268f5109753b

안녕하세요 @embusa. 연락 주셔서 감사합니다.

오류를 확인해 보았습니다. 문제는 Discourse 애플리케이션 자체보다는 호스트/Docker 환경 수준에서 발생한 것으로 보입니다. 핵심 오류는 libpcre2-8.so.0: file too short이며, 이는 디스크 문제 이후 시스템 라이브러리가 손상되었음을 강력히 시사합니다.

아! 디스크 문제 때문이군요. 저는 컨테이너에서 발생한 줄 알았어요. 새 시스템에서 한 번 시도해 보겠습니다. 너무 오래 들여다보고 있어서 그 사실을 눈치채지 못했네요. 처음에 뜬 Ruby 오류에만 집중하고 있었거든요.

네, 정확합니다. Ruby 에러는 그저 주의 분산일 뿐이었어요 (libpcre2 에러는 디스크/시스템 문제를 가리킵니다). 깨끗한 시스템에서 테스트하면 빠르게 확인될 거예요.

추가 논의는 DM으로 주세요. 감사합니다

저라면 이렇게 해볼 거예요

cd /var/discourse
./launcher cleanup
docker image rm discourse/base:2.0.20260915-0028
./launcher rebuild app

왜 그들에게 감사하다고 말씀하시나요?