대시보드에서 3.2.0.beta4가 긴급 업그레이드라고 표시되어 진행했으나 빌드에 실패했습니다.
에러 메시지의 안내에 따라 다음 파일을 확인했습니다.
bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/rbtrace-0.5.1/mkmf.log
msgpack를 빌드하던 중 다음과 같은 오류가 발생했습니다:
LD_LIBRARY_PATH=.:/usr/local/lib "./configure --disable-dependency-tracking --disable-shared --with-pic --prefix=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/ --libdir=/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rbtrace-0.5.1/ext/dst/lib"
ls: cannot access '.': Operation not permitted
configure: error: working directory cannot be determined
도움 부탁드립니다! 백업에서 다시 빌드하는 것은 피하고 싶습니다.
수정:
git pull과 ./launcher rebuild app을 실행했습니다.
tests-passed에서 다시 빌드할 수 있으신가요, 혹은 의향이 있으신가요? 최신 beta 태그가 이미 최신 버전에서 해결된 이 “일시적” 의존성 오류의 영향을 받았을 것으로 추정됩니다. 아니면 다음 beta를 기다린 뒤 컨테이너를 재시작하고 그냥 앉아 있는 수밖에 없겠죠?
For the past few weeks or so, we cannot rebuild our Discourse forum software.
Each time, we get this Bundler error:
occurred while installing rbtrace (0.5.1), and Bundler cannot continue.
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #<Process::Status: pid 541 exit 5>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the pa…
tests-passed로 전환하는 방법은 무엇인가요?
한 번 시도해 볼 가치가 있었지만, 더 많은 조사가 필요합니다. 최근 이 지엄(gem)이 여러 번 빌드 실패에 관여한 것은 의심스럽습니다.
네, 현재 버전은 다음과 같습니다:
~/discourse$ gem info rbtrace
*** LOCAL GEMS ***
rbtrace (0.5.1, 0.5.0, 0.4.14)
음, rbtrace가 어떤 이유로 인해 최신 배경 OS에 의존하고 있는 것 같습니다. 다음 조언을 참고해 주세요:
Debian 9 has been superseded by Debian 10 (“buster”). Security updates have been discontinued as of July 6th, 2020.
You may want to take your backup and migrate to a new server running a current OS version.
따라서 OS 업그레이드를 빠르게 진행하기 위해 새 서버로 이전하라는 조언인 것으로 보입니다.
즉, 업데이트가 필요한 것은 이 이미지인가요, 아니면 기반 Ubuntu인가요?
저는 그걸 기본 Ubuntu로 이해했습니다.
참고로, 어떤 버전을 사용 중이신가요? (다른 분들에게 도움이 될 수 있습니다)
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-169-generic x86_64)
도움이 될지 확인해 보기 위해 릴리스 업그레이드를 진행하겠습니다.
신기하게도 Jammy에서 문제를 겪지 않았습니다 (@JammyDodger 아하)
:/var/discourse/containers# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
이 조언을 따랐고, 이제 다시 정상적으로 작동하고 있습니다. 도움을 주셔서 감사합니다 @merefield .